Skip to content

Commit 7c0476c

Browse files
Use function declaration style in ai.tool execute callback
Co-authored-by: Eric Allam <eric@trigger.dev>
1 parent 092c2ba commit 7c0476c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/ai/src/ai.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function toolFromTask<
6969
const toolDefinition = dynamicTool({
7070
description: task.description,
7171
inputSchema: convertTaskSchemaToToolParameters(task),
72-
execute: async (input, options) => {
72+
execute: async function execute(input, options) {
7373
const serializedOptions = options ? JSON.parse(JSON.stringify(options)) : undefined;
7474

7575
return await task

0 commit comments

Comments
 (0)