Documentation
¶
Overview ¶
Package todo is the agent's todo list: its items, their validation and how they are shown to the model.
Index ¶
Constants ¶
const MaxItemLength = 300
MaxItemLength bounds an item's content and active form, in characters.
const MaxItems = 50
MaxItems bounds a list so it stays a plan of the work, not a log of it.
const ToolName = "todo_write"
ToolName is the tool that replaces a session's todo list.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Item ¶
type Item struct {
Content string `json:"content"`
ActiveForm string `json:"active_form,omitempty"`
Status Status `json:"status"`
}
Item is one piece of work; ActiveForm names it while it is in progress.
type List ¶
type List struct {
SessionID string `json:"session_id"`
Items []Item `json:"items"`
ChainRunID string `json:"chain_run_id,omitempty"`
UpdatedRunID string `json:"updated_run_id,omitempty"`
UpdatedAt time.Time `json:"updated_at,omitzero"`
}
List is a session's todo list. ChainRunID is the first run of the run chain that wrote it, UpdatedRunID the run that wrote it last.