Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 687 Bytes

README.md

File metadata and controls

34 lines (25 loc) · 687 Bytes

Griptape OpenWeather Extension

Overview

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?")

Installation

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