Skip to content

Commit 18838f3

Browse files
Merge pull request #137 from restackio/bumpTodos
Agent Todos Bump add task queues
2 parents 6798e97 + 9e09cd5 commit 18838f3

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

agent-todo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
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",

agent-todo/src/agents/agent.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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({

agent-todo/src/services.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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
]);

agent-todo/src/workflows/executeTodo.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
});

0 commit comments

Comments
 (0)