tool

package
v0.3.13 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Environment added in v0.3.2

type Environment struct {
	Date string

	OS   string
	Arch string

	Root    *os.Root
	Scratch *os.Root

	Plan       *plan.Plan
	PromptUser func(prompt string) (bool, error)
}

func (*Environment) ScratchDir added in v0.3.2

func (e *Environment) ScratchDir() string

func (*Environment) WorkingDir added in v0.3.2

func (e *Environment) WorkingDir() string

type Tool

type Tool struct {
	Name        string
	Description string
	Parameters  map[string]any
	Execute     func(ctx context.Context, env *Environment, args map[string]any) (string, error)
	Hidden      bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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