Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CopilotTools = map[string]Tool{ "search": GoogleSearch, "python": PythonREPL, "trivy": Trivy, "kubectl": Kubectl, }
CopilotTools is a map of tool names to tools.
Functions ¶
func GoogleSearch ¶
GoogleSearch returns the results of a Google search for the given query.
func PythonREPL ¶
PythonREPL runs the given Python script and returns the output.
Types ¶
type ToolPrompt ¶
type ToolPrompt struct { Question string `json:"question"` Thought string `json:"thought,omitempty"` Action struct { Name string `json:"name"` Input string `json:"input"` } `json:"action,omitempty"` Observation string `json:"observation,omitempty"` FinalAnswer string `json:"final_answer,omitempty"` }
ToolPrompt is the JSON format for the prompt.
Click to show internal directories.
Click to hide internal directories.