tools

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GlobTool

type GlobTool struct {
	RootDir string
}

GlobTool finds files matching a pattern

func (*GlobTool) Call

func (t *GlobTool) Call(ctx context.Context, input string) (string, error)

func (*GlobTool) Description

func (t *GlobTool) Description() string

func (*GlobTool) Name

func (t *GlobTool) Name() string

type LsTool

type LsTool struct {
	RootDir string
}

LsTool lists files in a directory

func (*LsTool) Call

func (t *LsTool) Call(ctx context.Context, input string) (string, error)

func (*LsTool) Description

func (t *LsTool) Description() string

func (*LsTool) Name

func (t *LsTool) Name() string

type ReadFileTool

type ReadFileTool struct {
	RootDir string
}

ReadFileTool reads a file

func (*ReadFileTool) Call

func (t *ReadFileTool) Call(ctx context.Context, input string) (string, error)

func (*ReadFileTool) Description

func (t *ReadFileTool) Description() string

func (*ReadFileTool) Name

func (t *ReadFileTool) Name() string

type ReadTodosTool

type ReadTodosTool struct {
	Manager *TodoManager
}

ReadTodosTool reads the current todo list

func (*ReadTodosTool) Call

func (t *ReadTodosTool) Call(ctx context.Context, input string) (string, error)

func (*ReadTodosTool) Description

func (t *ReadTodosTool) Description() string

func (*ReadTodosTool) Name

func (t *ReadTodosTool) Name() string

type SubAgentHandler

type SubAgentHandler func(ctx context.Context, task string) (string, error)

SubAgentHandler is a function that handles a subagent task

type TaskTool

type TaskTool struct {
	Handler SubAgentHandler
}

TaskTool delegates a task to a subagent

func (*TaskTool) Call

func (t *TaskTool) Call(ctx context.Context, input string) (string, error)

func (*TaskTool) Description

func (t *TaskTool) Description() string

func (*TaskTool) Name

func (t *TaskTool) Name() string

type TodoManager

type TodoManager struct {
	// contains filtered or unexported fields
}

TodoManager manages a list of todos

func NewTodoManager

func NewTodoManager() *TodoManager

type WriteFileTool

type WriteFileTool struct {
	RootDir string
}

WriteFileTool writes to a file

func (*WriteFileTool) Call

func (t *WriteFileTool) Call(ctx context.Context, input string) (string, error)

func (*WriteFileTool) Description

func (t *WriteFileTool) Description() string

func (*WriteFileTool) Name

func (t *WriteFileTool) Name() string

type WriteTodosTool

type WriteTodosTool struct {
	Manager *TodoManager
}

WriteTodosTool writes a list of todos

func (*WriteTodosTool) Call

func (t *WriteTodosTool) Call(ctx context.Context, input string) (string, error)

func (*WriteTodosTool) Description

func (t *WriteTodosTool) Description() string

func (*WriteTodosTool) Name

func (t *WriteTodosTool) Name() string

Jump to

Keyboard shortcuts

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