Skip to content

OpenWeatherClient

The OpenWeatherClient enables LLMs to use OpenWeatherMap.

import os
from griptape.structures import Agent
from griptape.tools import OpenWeatherClient

agent = Agent(
    tools=[
        OpenWeatherClient(
            api_key=os.environ["OPENWEATHER_API_KEY"],
        ),
    ]
)

agent.run("What's the weather currently like in San Francisco?")