Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions examples/tools-streaming-jsonschema/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ type GetTemperatureUnitInput struct {
var GetTemperatureUnitInputSchema = GenerateSchema[GetTemperatureUnitInput]()

func GetTemperatureUnit(country string) string {
return "farenheit"
return "fahrenheit"
}

// Get Weather
Expand All @@ -180,8 +180,8 @@ type GetWeatherResponse struct {

func GetWeather(lat, long float64, unit string) GetWeatherResponse {
return GetWeatherResponse{
Unit: "farenheit",
Temperature: 122,
Unit: unit,
Temperature: 72,
}
}

Expand Down
8 changes: 4 additions & 4 deletions examples/tools-streaming/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func main() {
Properties: map[string]any{
"lat": map[string]any{
"type": "number",
"description": "The lattitude of the location to check weather.",
"description": "The latitude of the location to check weather.",
},
"long": map[string]any{
"type": "number",
Expand Down Expand Up @@ -181,7 +181,7 @@ func GetCoordinates(location string) CoordinateResponse {
}

func GetTemperatureUnit(country string) string {
return "farenheit"
return "fahrenheit"
}

type WeatherResponse struct {
Expand All @@ -191,8 +191,8 @@ type WeatherResponse struct {

func GetWeather(lat, long float64, unit string) WeatherResponse {
return WeatherResponse{
Unit: "farenheit",
Temperature: 122,
Unit: unit,
Temperature: 72,
}
}

Expand Down
8 changes: 4 additions & 4 deletions examples/tools/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func main() {
Properties: map[string]any{
"lat": map[string]any{
"type": "number",
"description": "The lattitude of the location to check weather.",
"description": "The latitude of the location to check weather.",
},
"long": map[string]any{
"type": "number",
Expand Down Expand Up @@ -172,7 +172,7 @@ func GetCoordinates(location string) CoordinateResponse {
}

func GetTemperatureUnit(country string) string {
return "farenheit"
return "fahrenheit"
}

type WeatherResponse struct {
Expand All @@ -182,8 +182,8 @@ type WeatherResponse struct {

func GetWeather(lat, long float64, unit string) WeatherResponse {
return WeatherResponse{
Unit: "farenheit",
Temperature: 122,
Unit: unit,
Temperature: 72,
}
}

Expand Down