todo

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: MIT Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package todo provides the built-in checklist tool todo_write: the model breaks a multi-step task into a checklist and updates its progress as it goes.

Each call passes the complete list, replacing the previous one. The tool keeps no state: the current list is the result of the latest successful call in the session history, and the normalized list is in the result's Details for the UI. For different behavior, leave it out and register your own tool instead.

Index

Constants

View Source
const ToolName = "todo_write"

ToolName is the name of the checklist tool.

Variables

This section is empty.

Functions

func Tool

func Tool() tool.Tool

Tool returns the checklist tool; add it to Agent.Tools to use it. The result's Details is the normalized []Item.

Types

type Item

type Item struct {
	Content string `json:"content" jsonschema:"description=A short imperative step, e.g. Run the tests."`
	Status  Status `json:"status" jsonschema:"enum=pending,enum=in_progress,enum=completed"`
}

Item is one item of the checklist.

type Status

type Status string

Status is the status of a checklist item.

const (
	Pending    Status = "pending"
	InProgress Status = "in_progress"
	Completed  Status = "completed"
)

Jump to

Keyboard shortcuts

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