todo

package
v0.1.21 Latest Latest
Warning

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

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

Documentation

Overview

Package todo exposes the run-scoped runtime todo list as a Leros tool.

Index

Constants

View Source
const (
	// ToolNameTodo is the stable runtime tool name for updating run progress.
	ToolNameTodo    = "todo"
	ToolDescription = `` /* 1455-byte string literal not displayed */

)

Variables

This section is empty.

Functions

func NewTools

func NewTools() []tools.Tool

NewTools returns all built-in runtime todo tools.

func Register

func Register(registry *tools.Registry) error

Register adds built-in runtime todo tools to the runtime registry.

Types

type Tool

type Tool struct {
	tools.BaseTool
}

Tool lets an internal Leros agent publish its current plan and progress.

func NewTool

func NewTool() *Tool

NewTool creates the runtime todo tool.

func (*Tool) Execute

func (t *Tool) Execute(ctx context.Context, rawInput json.RawMessage) (string, error)

Execute updates the run-scoped todo reporter.

func (*Tool) Validate

func (t *Tool) Validate(rawInput json.RawMessage) error

Validate checks todo tool input before execution.

Jump to

Keyboard shortcuts

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