tools

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2024 License: MIT Imports: 4 Imported by: 0

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."`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL