WeatherWhiz

Vand ID: vand-1b84e76a-8068-43f5-80ee-133b5c74bc44

Learn how to easily use the WeatherWhiz tool with the OpenAI API.

Get weather information for a given location and time option.

OpenAI function calls:

{
  "name": "getWeatherByLocation",
  "description": "Get weather information for a given location and time option",
  "parameters": {
    "type": "object",
    "properties": {
      "location": {
        "type": "string",
        "description": "The location for which to get the weather information"
      },
      "time": {
        "type": "string",
        "description": "The time option for the weather forecast (\u0027current\u0027, \u0027minutely\u0027, \u0027hourly\u0027, \u0027daily\u0027)"
      }
    },
    "required": [
      "location",
      "time"
    ]
  }
}

Auth Type

none

Servers

https://redantai.pythonanywhere.com

OpenAPI:

{
  "openapi": "3.0.2",
  "info": {
    "title": "WeatherWhiz",
    "description": "Get weather information for a given location and time option.",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://redantai.pythonanywhere.com"
    }
  ],
  "paths": {
    "/weather/": {
      "get": {
        "operationId": "getWeatherByLocation",
        "summary": "Get weather information for a given location and time option",
        "parameters": [
          {
            "in": "query",
            "name": "location",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The location for which to get the weather information"
          },
          {
            "in": "query",
            "name": "time",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The time option for the weather forecast (\u0027current\u0027, \u0027minutely\u0027, \u0027hourly\u0027, \u0027daily\u0027)"
          }
        ],
        "responses": {
          "200": {
            "description": "A JSON object containing weather information for the specified location and time option"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "example": "Invalid input. Please provide a valid location and time option."
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}