Documentation
¶
Overview ¶
Package exectool runs command-line tools declared in a YAML manifest.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manifest ¶
type Manifest struct {
Tools []*Tool
}
Manifest is a parsed tool manifest.
func Parse ¶
Parse decodes and validates a manifest. Every problem found is reported, not only the first.
func (*Manifest) ExecuteTool ¶
ExecuteTool runs the named tool with JSON arguments. It satisfies steerloop.ToolExecutor.
type Tool ¶
type Tool struct {
Name string
Description string
Parameters map[string]any
Command []string
Timeout time.Duration
Workdir string
MaxOutputBytes int
Confirm bool
// AllowFlagValues lets an argument value begin with "-". Off by default,
// so a model cannot turn a value into a command-line option.
AllowFlagValues bool
// contains filtered or unexported fields
}
Tool is one declared command-line tool.
Click to show internal directories.
Click to hide internal directories.