Skip to content

Commit 5a551eb

Browse files
authored
Merge pull request #15 from bianbianzhu/fix/add-the-missing-command-object-in-write-todos-tool
fix(tools): enforce returning Command object in writeTodos for graph state updates
2 parents 71a2a4f + ce68109 commit 5a551eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tools.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import { DeepAgentStateType } from "./types.js";
2323
*/
2424
export const writeTodos = tool(
2525
(input, config: ToolRunnableConfig) => {
26-
return {
26+
return new Command({
2727
update: {
2828
todos: input.todos,
2929
messages: [
@@ -33,7 +33,7 @@ export const writeTodos = tool(
3333
}),
3434
],
3535
},
36-
};
36+
});
3737
},
3838
{
3939
name: "write_todos",

0 commit comments

Comments
 (0)