feat(agent): Add task manager. Agent feels pretty useful now?

This commit is contained in:
Willie Zutz 2025-06-21 16:12:19 -06:00
parent 60d36ab8f4
commit 7b127e5635
14 changed files with 634 additions and 55 deletions

View file

@ -46,4 +46,16 @@ export const AgentState = Annotation.Root({
reducer: (x, y) => (y ?? 0) + x,
default: () => 0,
}),
tasks: Annotation<string[]>({
reducer: (x, y) => y ?? x,
default: () => [],
}),
currentTaskIndex: Annotation<number>({
reducer: (x, y) => y ?? x,
default: () => 0,
}),
originalQuery: Annotation<string>({
reducer: (x, y) => y ?? x,
default: () => '',
}),
});