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.
1 parent b53b61b commit d02edc3Copy full SHA for d02edc3
1 file changed
packages/trigger-sdk/src/v3/ai.ts
@@ -61,7 +61,7 @@ function toolFromTask<
61
const toolDefinition = dynamicTool({
62
description: task.description,
63
inputSchema: convertTaskSchemaToToolParameters(task),
64
- execute: async (input, options) => {
+ execute: async function execute(input, options) {
65
const serializedOptions = options ? JSON.parse(JSON.stringify(options)) : undefined;
66
67
return await task
@@ -112,6 +112,10 @@ function convertTaskSchemaToToolParameters(
112
);
113
}
114
115
+/**
116
+ * @deprecated Use `ai` from `@trigger.dev/ai` for new code.
117
+ * `@trigger.dev/sdk/ai` is kept for backwards compatibility.
118
+ */
119
export const ai = {
120
tool: toolFromTask,
121
currentToolOptions: getToolOptionsFromMetadata,
0 commit comments