AgentsSkills

weather_api

View as MarkdownOpen in Claude

Get current weather conditions for locations worldwide using WeatherAPI.com.

Tools: get_weather

Requirements: WeatherAPI.com API key (free tier available)

api_key
strRequired

WeatherAPI.com API key. Falls back to the WEATHER_API_KEY environment variable.

tool_name
strDefaults to get_weather

Custom function name.

temperature_unit
strDefaults to fahrenheit

Temperature unit: "fahrenheit" or "celsius".

from signalwire import AgentBase
class MyAgent(AgentBase):
def __init__(self):
super().__init__(name="assistant", route="/assistant")
self.set_prompt_text("You are a helpful assistant.")
self.add_skill("weather_api", {"api_key": "YOUR_WEATHER_API_KEY"})
agent = MyAgent()
agent.serve()