Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RunToolsWithJavascriptArgs ¶
type RunToolsWithJavascriptArgs struct {
Script string `json:"script" jsonschema:"Script to execute"`
}
type ScriptResult ¶
type ScriptResult struct {
Value string `json:"value" jsonschema:"The value returned by the script"`
StdOut string `json:"stdout" jsonschema:"The standard output of the console"`
StdErr string `json:"stderr" jsonschema:"The standard error of the console"`
ToolCalls []ToolCallInfo `json:"tool_calls,omitempty" jsonschema:"The list of tool calls made during script execution, only included on failure"`
}
type ToolCallInfo ¶ added in v1.8.2
type ToolCallInfo struct {
Name string `json:"name" jsonschema:"The name of the tool that was called"`
Arguments any `json:"arguments" jsonschema:"The arguments passed to the tool"`
Result string `json:"result,omitempty" jsonschema:"The raw response returned by the tool"`
Error string `json:"error,omitempty" jsonschema:"The error message, if the tool call failed"`
}
ToolCallInfo contains information about a tool call made during script execution.
Click to show internal directories.
Click to hide internal directories.