Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CliTool ¶
type CliTool struct {
// Def describes the base command configuration.
Def Definition
}
Tool exposes a configured CLI command as an invocable tool to the model. Name and description are derived from Definition. Users can provide additional argv, env, workdir, and timeout at call-time.
type CliToolRequest ¶
type Definition ¶
type Definition struct {
Name string
Command string
Desc string
Args []string // parsed from command
Env map[string]string // merged with envs from command, env map has higher precedence than envs from command.
}
Definition describes a CLI tool that can be exposed to the agent. Name must be unique across all tools. Command is executed without a shell by default via SubprocessExecutor.
func MustNewDefinition ¶
func MustNewDefinition(name, command, desc string, env map[string]string) Definition
func NewDefinition ¶
func NewDefinition(name, command, desc string, env map[string]string) (Definition, error)
Click to show internal directories.
Click to hide internal directories.