Spaces:
Sleeping
Sleeping
Download tools.py from DanishShahzad/Sample_ChatBot: direct link, hf CLI and curl.
- Browser
- Download file 501 Bytes
-
https://huggingface.co/spaces/DanishShahzad/Sample_ChatBot/resolve/refs%2Fpr%2F1/tools.py
- Command line
-
hf download hf://spaces/DanishShahzad/Sample_ChatBot@refs/pr/1/tools.py
-
curl -L -o tools.py https://huggingface.co/spaces/DanishShahzad/Sample_ChatBot/resolve/refs%2Fpr%2F1/tools.py
501 Bytes
| # tools.py (optional if you want to enable tool calling) | |
| tools = [ | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "get_weather", | |
| "description": "Get the weather for a specific city.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "city": {"type": "string", "description": "The city to get weather for"} | |
| }, | |
| "required": ["city"] | |
| } | |
| } | |
| } | |
| ] | |