File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
packages/trigger-sdk/src/v3 Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ function toolFromTask<
6161 const toolDefinition = dynamicTool ( {
6262 description : task . description ,
6363 inputSchema : convertTaskSchemaToToolParameters ( task ) ,
64- execute : async ( input , options ) => {
64+ execute : async function execute ( input , options ) {
6565 const serializedOptions = options ? JSON . parse ( JSON . stringify ( options ) ) : undefined ;
6666
6767 return await task
@@ -112,6 +112,10 @@ function convertTaskSchemaToToolParameters(
112112 ) ;
113113}
114114
115+ /**
116+ * @deprecated Use `ai` from `@trigger.dev/ai` for new code.
117+ * `@trigger.dev/sdk/ai` is kept for backwards compatibility.
118+ */
115119export const ai = {
116120 tool : toolFromTask ,
117121 currentToolOptions : getToolOptionsFromMetadata ,
You can’t perform that action at this time.
0 commit comments