feat(agent): Add task manager. Agent feels pretty useful now?
This commit is contained in:
parent
60d36ab8f4
commit
7b127e5635
14 changed files with 634 additions and 55 deletions
|
|
@ -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: () => '',
|
||||
}),
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue