Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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"` }
func (*Tool) DisplayName ¶ added in v0.7.0
type ToolAnnotation ¶
type ToolCall ¶
type ToolCall struct { 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.