Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FileTree = FileTreeTool{ Name: "local_file_tree", Description: "List the filetree of some directory. Uses linux command 'tree'.", Inputs: InputSchema{ Type: "object", Properties: map[string]ParameterObject{ "directory": { Type: "string", Description: "The directory to list the filetree of.", }, "level": { Type: "integer", Description: "The depth of the tree to display.", }, }, Required: []string{"directory"}, }, }
Functions ¶
func NewValidationError ¶ added in v1.2.7
Types ¶
type AiTool ¶ added in v1.2.7
type AiTool interface { // Call the AI tool with the given Input. Returns output from the tool or an error // if the call returned an error-like. An error-like is either exit code non-zero or // restful response non 2xx. Call(Input) (string, error) // Return the UserFunction, later on used // by text queriers to send to their respective // models UserFunction() UserFunction }
type FileTreeTool ¶ added in v1.2.7
type FileTreeTool UserFunction
func (FileTreeTool) UserFunction ¶ added in v1.2.7
func (f FileTreeTool) UserFunction() UserFunction
type InputSchema ¶ added in v1.2.7
type InputSchema struct { Type string `json:"type"` Properties map[string]ParameterObject `json:"properties"` Required []string `json:"required"` }
type ParameterObject ¶ added in v1.2.7
type UserFunction ¶ added in v1.2.7
type UserFunction struct { Name string `json:"name"` Description string `json:"description"` Inputs InputSchema `json:"input_schema"` }
type ValidationError ¶ added in v1.2.7
type ValidationError struct {
// contains filtered or unexported fields
}
func (ValidationError) Error ¶ added in v1.2.7
func (v ValidationError) Error() string
Click to show internal directories.
Click to hide internal directories.