File tree Expand file tree Collapse file tree 4 files changed +5
-3
lines changed Expand file tree Collapse file tree 4 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1010 "event" : " tsx eventAgent.ts"
1111 },
1212 "dependencies" : {
13- "@restackio/ai" : " ^0.0.109 " ,
13+ "@restackio/ai" : " ^0.0.121 " ,
1414 "@temporalio/workflow" : " 1.11.6" ,
1515 "dotenv" : " ^16.4.7" ,
1616 "openai" : " ^4.80.1" ,
Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ export async function agentTodo(): Promise<agentTodoOutput> {
6767 child : executeTodoWorkflow ,
6868 childId : workflowId ,
6969 input : JSON . parse ( toolCall . function . arguments ) ,
70+ taskQueue : "todo-workflows" ,
7071 } ) ;
7172
7273 agentMessages . push ( {
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ async function services() {
1818 } ) ,
1919 client . startService ( {
2020 workflowsPath : workflowsPath ,
21+ taskQueue : "todo-workflows" ,
2122 functions : { getRandom, getResult } ,
2223 } ) ,
2324 ] ) ;
Original file line number Diff line number Diff line change @@ -17,13 +17,13 @@ export async function executeTodoWorkflow({
1717 todoTitle,
1818 todoId,
1919} : Input ) : Promise < Output > {
20- const random = await step < typeof functions > ( { } ) . getRandom ( {
20+ const random = await step < typeof functions > ( { taskQueue : "todo-workflows" , } ) . getRandom ( {
2121 todoTitle,
2222 } ) ;
2323
2424 await sleep ( 2000 ) ;
2525
26- const result = await step < typeof functions > ( { } ) . getResult ( {
26+ const result = await step < typeof functions > ( { taskQueue : "todo-workflows" , } ) . getResult ( {
2727 todoTitle,
2828 todoId,
2929 } ) ;
You can’t perform that action at this time.
0 commit comments