Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTodo ¶
func NewTodo(_ TodoConfig, deps TodoDeps) (agentkit.ToolPack, error)
NewTodo registers tool/todo: Durable task list; the signal an autonomous run uses to decide whether work remains.
Best practices:
- op=set replaces the whole list, op=complete closes ids, op=list reads it.
- Pair with tool/finish: an empty pending list alone does not end a run.
Types ¶
type TodoConfig ¶
type TodoConfig struct{}
type TodoDeps ¶
type TodoDeps struct {
SessionStore agentkit.SessionStore `json:"sessionStore"`
}
type TodoInput ¶
type TodoInput struct {
Op string `json:"op" jsonschema:"required,description=list to read the current plan; set to replace it; complete to mark ids done"`
Items []TodoItemInput `json:"items" jsonschema:"description=Full task list for set; for complete only the ids matter"`
IDs []string `json:"ids" jsonschema:"description=Task ids to mark done when op is complete"`
}
type TodoItemInput ¶
Click to show internal directories.
Click to hide internal directories.