Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
requests
export OPENWEATHER_API_KEY=***
from agno.agent import Agent from agno.tools.openweather import OpenWeatherTools # 创建一个包含 OpenWeatherTools 的 Agent agent = Agent( tools=[ OpenWeatherTools( units="imperial", # 可选值:'standard', 'metric', 'imperial' ) ], markdown=True, ) # 获取某个地点的当前天气 agent.print_response("What's the current weather in Tokyo?", markdown=True)
api_key
str
None
units
metric
current_weather
bool
True
forecast
air_pollution
geocoding
get_current_weather
get_forecast
get_air_pollution
geocode_location