Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatTodosForContext ¶
FormatTodosForContext formats todos for inclusion in agent context.
func MarshalTodos ¶
MarshalTodos marshals todos to JSON.
Types ¶
type TodoItem ¶
type TodoItem struct {
ID string `json:"id" jsonschema:"required,description=Unique identifier for the todo"`
Content string `json:"content" jsonschema:"required,description=Description of the task"`
Status string `json:"status" jsonschema:"required,description=Current status,enum=pending,enum=in_progress,enum=completed,enum=canceled"`
}
TodoItem represents a single todo item.
type TodoManager ¶
type TodoManager struct {
// contains filtered or unexported fields
}
TodoManager manages todo state across sessions. It provides both the tool and methods to query todos.
func (*TodoManager) GetTodos ¶
func (m *TodoManager) GetTodos(sessionID string) []TodoItem
GetTodos returns todos for a session.
func (*TodoManager) GetTodosSummary ¶
func (m *TodoManager) GetTodosSummary(sessionID string) string
GetTodosSummary returns a formatted summary of todos.
func (*TodoManager) Tool ¶
func (m *TodoManager) Tool() (tool.CallableTool, error)
Tool creates a todo_write tool using FunctionTool.
type TodoWriteArgs ¶
type TodoWriteArgs struct {
Overwrite bool `` /* 154-byte string literal not displayed */
Todos []TodoItem `` /* 177-byte string literal not displayed */
}
TodoWriteArgs defines the parameters for writing todos.
Click to show internal directories.
Click to hide internal directories.