Skip to main content
OpenWeatherTools enable an Agent to access weather data from the OpenWeatherMap API.

Prerequisites

The following example requires the requests and openai libraries and an API key which can be obtained from OpenWeatherMap. The API key activates a few hours after sign-up.

Example

The following agent will use OpenWeatherMap to get current weather information for Tokyo.
cookbook/91_tools/openweather_tools.py

Toolkit Params

Toolkit Functions

Developer Resources