Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WeatherTool ¶
type WeatherTool struct { toolkit.Tool[WeatherToolArgs] }
WeatherTool is a tool that greets a person +tool:name=weather_tool +tool:description=WeatherTool reports the current weather for a location
func NewWeatherTool ¶
func NewWeatherTool() *WeatherTool
func (*WeatherTool) Definition ¶
func (w *WeatherTool) Definition() openai.FunctionDefinition
func (*WeatherTool) Execute ¶
func (g *WeatherTool) Execute() string
type WeatherToolArgs ¶
type WeatherToolArgs struct {
Location string `json:"location" desc:"The location to get the weather for."`
}
Click to show internal directories.
Click to hide internal directories.