We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ai.tool
1 parent 4995e16 commit 0c44c9aCopy full SHA for 0c44c9a
packages/trigger-sdk/src/v3/ai.ts
@@ -38,12 +38,12 @@ function toolFromTask<
38
);
39
}
40
41
- const serializedOptions = options ? JSON.parse(JSON.stringify(options)) : undefined;
42
-
43
return tool({
44
description: task.description,
45
parameters: convertTaskSchemaToToolParameters(task.schema),
46
execute: async (args, options) => {
+ const serializedOptions = options ? JSON.parse(JSON.stringify(options)) : undefined;
+
47
return await task
48
.triggerAndWait(args, {
49
metadata: {
0 commit comments