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

Prerequisites

The following example requires the requests library and an API key which can be obtained from OpenWeatherMap. Once you sign up the mentioned api key will be activated in a few hours so please be patient.

Example

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

Toolkit Params

Toolkit Functions

Developer Resources