in pkg/tools/bash_tool.go [59:82]
func (t *BashTool) FunctionDefinition() *gollm.FunctionDefinition {
return &gollm.FunctionDefinition{
Name: t.Name(),
Description: t.Description(),
Parameters: &gollm.Schema{
Type: gollm.TypeObject,
Properties: map[string]*gollm.Schema{
"command": {
Type: gollm.TypeString,
Description: `The bash command to execute.`,
},
"modifies_resource": {
Type: gollm.TypeString,
Description: `Whether the command modifies a kubernetes resource.
Possible values:
- "yes" if the command modifies a resource
- "no" if the command does not modify a resource
- "unknown" if the command's effect on the resource is unknown
`,
},
},
},
}
}