OpenWeatherMapAPIWrapper#
- class langchain_community.utilities.openweathermap.OpenWeatherMapAPIWrapper[source]#
Bases:
BaseModel
Wrapper for OpenWeatherMap API using PyOWM.
Docs for using:
Go to OpenWeatherMap and sign up for an API key
Save your API KEY into OPENWEATHERMAP_API_KEY env variable
pip install pyowm
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- param openweathermap_api_key: str | None = None#
- param owm: Any = None#
Examples using OpenWeatherMapAPIWrapper