This extension provides a Tool for OpenWeather.
import os
from griptape.structures import Agent
from griptape.open_weather.tools import OpenWeatherTool
agent = Agent(
tools=[
OpenWeatherTool(
api_key=os.environ["OPENWEATHER_API_KEY"],
),
]
)
agent.run("What's the weather currently like in San Francisco?")
Poetry:
poetry add https://github.com/griptape-ai/griptape-open-weather.git
Pip:
pip install git+https://github.com/griptape-ai/griptape-open-weather.git