Download examples/tool_call_chat.json from berkbirkan/custom-chat-template: direct link, hf CLI and curl.
- Browser
- Download file 1.29 kB
-
https://huggingface.co/berkbirkan/custom-chat-template/resolve/main/examples/tool_call_chat.json
- Command line
-
hf download hf://berkbirkan/custom-chat-template/examples/tool_call_chat.json
-
curl -L -o tool_call_chat.json https://huggingface.co/berkbirkan/custom-chat-template/resolve/main/examples/tool_call_chat.json
1.29 kB
| { | |
| "tools": [ | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "get_weather", | |
| "description": "Bir şehrin güncel hava durumunu getirir.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "city": { | |
| "type": "string", | |
| "description": "Şehir adı" | |
| } | |
| }, | |
| "required": ["city"] | |
| } | |
| } | |
| } | |
| ], | |
| "messages": [ | |
| { | |
| "role": "system", | |
| "content": "Sen gerçek verilere dayalı yanıt veren bir asistansın." | |
| }, | |
| { | |
| "role": "user", | |
| "content": "İstanbul'da hava nasıl?" | |
| }, | |
| { | |
| "role": "assistant", | |
| "content": "", | |
| "tool_calls": [ | |
| { | |
| "id": "call_001", | |
| "type": "function", | |
| "function": { | |
| "name": "get_weather", | |
| "arguments": { | |
| "city": "İstanbul" | |
| } | |
| } | |
| } | |
| ] | |
| }, | |
| { | |
| "role": "tool", | |
| "tool_call_id": "call_001", | |
| "name": "get_weather", | |
| "content": "{\"city\":\"İstanbul\",\"temperature_c\":24,\"condition\":\"Güneşli\"}" | |
| }, | |
| { | |
| "role": "assistant", | |
| "content": "İstanbul'da hava güneşli ve sıcaklık 24 °C." | |
| } | |
| ], | |
| "add_generation_prompt": false | |
| } | |