Skip to content

Commit 9f0acbb

Browse files
committed
remove apply call in resolver
1 parent 23332b4 commit 9f0acbb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/event-handler/src/bedrock-agent-function/BedrockAgentFunctionResolver.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,7 @@ export class BedrockAgentFunctionResolver {
213213

214214
try {
215215
// TODO: use apply to ensure that `this` is bound properly when used as decorator
216-
const res = await tool.handler.apply(this, [toolParams, event, context]);
217-
// const res = await tool.handler(toolParams, event, context);
216+
const res = await tool.handler(toolParams, event, context);
218217
const body = res == null ? '' : JSON.stringify(res);
219218
return this.#buildResponse({
220219
actionGroup,

0 commit comments

Comments
 (0)