Spaces:
Sleeping
Sleeping
| WEATHER_FUNCTIONS = [ | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "get_weather_alerts", | |
| "description": "Get weather alerts for one or more locations in India. Can search by city, state, district, or region name.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "locations": { | |
| "type": "array", | |
| "items": { | |
| "type": "string" | |
| }, | |
| "description": "List of locations to search for (up to 5). Can be city names, state names, districts, etc.", | |
| "maxItems": 5, | |
| "minItems": 1 | |
| }, | |
| "include_details": { | |
| "type": "boolean", | |
| "description": "Whether to include detailed alert information like warning messages and coordinates", | |
| "default": True | |
| } | |
| }, | |
| "required": ["locations"] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "get_alert_summary", | |
| "description": "Get a summary of all current weather alerts by severity level", | |
| "parameters": { | |
| "type": "object", | |
| "properties": {}, | |
| "required": [] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "get_available_locations", | |
| "description": "Get a list of all locations that currently have weather alerts", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "limit": { | |
| "type": "integer", | |
| "description": "Maximum number of locations to return", | |
| "default": 50, | |
| "minimum": 1, | |
| "maximum": 200 | |
| } | |
| }, | |
| "required": [] | |
| } | |
| } | |
| } | |
| ] |