Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisplayName ¶ added in v0.5.1
Types ¶
type FunctionCall ¶
type FunctionDefinition ¶
type FunctionDefinition struct {
Name string `json:"name"`
Description string `json:"description,omitempty"`
Strict bool `json:"strict,omitempty"`
Parameters FunctionParamaters `json:"parameters"`
Annotations ToolAnnotation `json:"annotations"`
}
type FunctionParamaters ¶
type Tool ¶
type Tool struct {
Function *FunctionDefinition `json:"function,omitempty"`
Handler ToolHandler `json:"handler,omitempty"`
}
type ToolAnnotation ¶
type ToolCall ¶
type ToolCall struct {
Index *int `json:"index,omitempty"`
ID string `json:"id,omitempty"`
Type ToolType `json:"type"`
Function FunctionCall `json:"function"`
}
type ToolCallResult ¶
type ToolCallResult struct {
Output string `json:"output"`
}
type ToolHandler ¶
type ToolHandler = func(ctx context.Context, toolCall ToolCall) (*ToolCallResult, error)
Click to show internal directories.
Click to hide internal directories.