todo

package
v0.1.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTodo

func NewTodo(_ TodoConfig, deps TodoDeps) (agentkit.Tool, 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:"list to read the current plan; set to replace it; complete to mark ids done"`
	Items []TodoItemInput `json:"items,omitempty" jsonschema:"Full task list for set; for complete only the ids matter"`
	IDs   []string        `json:"ids,omitempty" jsonschema:"Task ids to mark done when op is complete"`
}

type TodoItemInput

type TodoItemInput struct {
	ID     string `json:"id,omitempty" jsonschema:"Stable id of the task; omit on set to derive it from the position"`
	Title  string `json:"title,omitempty" jsonschema:"What needs doing"`
	Status string `json:"status,omitempty" jsonschema:"pending | in_progress | done"`
}

type TodoOutput

type TodoOutput struct {
	Items       []session.Todo `json:"items"`
	Pending     int            `json:"pending"`
	Total       int            `json:"total"`
	Instruction string         `json:"instruction,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL