WeatherTool
Get current weather for any city using wttr.in (no API key required).
Constructor
WeatherTool(self)
Methods
get_schema
Return the tool call schema.
get_schema(self) -> str
get_usage_examples
Return example usage patterns.
get_usage_examples(self) -> List[str]
run
Get weather for a city. Args: city: City name (e.g., "San Francisco", "London", "Tokyo") Returns: Weather data including temperature, conditions, humidity
run(self, city: str) -> Dict[str, Any]
validate_and_run
Validate parameters then run the tool.
validate_and_run(self, **kwargs: Any) -> Dict[str, Any]