Documentation
¶
Overview ¶
Package tool defines tool handlers and the built-in local tools used by agentkit runtimes.
Index ¶
- type BashInput
- type Call
- type Definition
- func Bash(root string) Definition
- func Edit(root string) Definition
- func Func[T any](name, description string, schema map[string]any, ...) Definition
- func Glob(root string) Definition
- func Grep(root string) Definition
- func Raw(name, description string, schema map[string]any, handler Handler) Definition
- func Read(root string) Definition
- func ReadOnly(definition Definition) Definition
- func Text[T any](name, description string, schema map[string]any, ...) Definition
- func WithTimeout(definition Definition, timeout time.Duration) Definition
- func Write(root string) Definition
- type EditInput
- type GlobInput
- type GrepInput
- type Handler
- type HandlerFunc
- type ReadInput
- type Result
- type WriteInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Definition ¶
type Definition struct {
Name string
Description string
InputSchema map[string]any
ReadOnly bool
Timeout time.Duration
Handler Handler
}
func Bash ¶
func Bash(root string) Definition
func Edit ¶
func Edit(root string) Definition
func Glob ¶
func Glob(root string) Definition
func Grep ¶
func Grep(root string) Definition
func Read ¶
func Read(root string) Definition
func ReadOnly ¶
func ReadOnly(definition Definition) Definition
func WithTimeout ¶
func WithTimeout(definition Definition, timeout time.Duration) Definition
func Write ¶
func Write(root string) Definition
type HandlerFunc ¶
type WriteInput ¶
Click to show internal directories.
Click to hide internal directories.