todo

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package todo is the session's checklist. The model rewrites it whole with todo_write, so the current list is the last accepted call in the history; nothing else is stored.

Index

Constants

View Source
const ToolName = "todo_write"

Variables

This section is empty.

Functions

func Counts

func Counts(items []Item) (pending, inProgress, completed int)

Types

type Item

type Item struct {
	Content string `json:"content"`
	Status  Status `json:"status"`
}

func FromHistory

func FromHistory(msgs []agentcore.Message) []Item

FromHistory returns nil if todo_write never succeeded or compaction summarized the calls away.

func Parse

func Parse(args json.RawMessage) ([]Item, error)

type Status

type Status string
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