1---
2version: 2
3interactions:
4- id: 0
5 request:
6 proto: HTTP/1.1
7 proto_major: 1
8 proto_minor: 1
9 content_length: 457
10 host: ""
11 body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"}],"model":"zai-org/GLM-4.6","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"weather","strict":false,"description":"Get weather information for a location","parameters":{"properties":{"location":{"description":"the city","type":"string"}},"required":["location"],"type":"object"}},"type":"function"}]}'
12 headers:
13 Accept:
14 - application/json
15 Content-Type:
16 - application/json
17 User-Agent:
18 - OpenAI/Go 2.7.1
19 url: https://router.huggingface.co/v1/chat/completions
20 method: POST
21 response:
22 proto: HTTP/2.0
23 proto_major: 2
24 proto_minor: 0
25 content_length: -1
26 body: '{"choices":[{"finish_reason":"tool_calls","index":0,"message":{"reasoning_content":"The user is asking for weather information for Florence, Italy. I have access to a weather function that can get weather information for a location. The function requires a \"location\" parameter, and the user has specified \"Florence, Italy\". I should use this exact location as provided.","role":"assistant","tool_calls":[{"function":{"arguments":"{\"location\":\"Florence, Italy\"}","name":"weather"},"id":"call_-8223417061878062283","index":0,"type":"function"}]}}],"created":1761231465,"id":"202510232257390a7bee5750d548f6","model":"glm-4.6","request_id":"202510232257390a7bee5750d548f6","usage":{"completion_tokens":90,"prompt_tokens":179,"prompt_tokens_details":{"cached_tokens":43},"total_tokens":269}}'
27 headers:
28 Content-Type:
29 - application/json; charset=UTF-8
30 status: 200 OK
31 code: 200
32 duration: 6.273608s
33- id: 1
34 request:
35 proto: HTTP/1.1
36 proto_major: 1
37 proto_minor: 1
38 content_length: 701
39 host: ""
40 body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"tool_calls":[{"id":"call_-8223417061878062283","function":{"arguments":"{\"location\":\"Florence, Italy\"}","name":"weather"},"type":"function"}],"role":"assistant"},{"content":"40 C","tool_call_id":"call_-8223417061878062283","role":"tool"}],"model":"zai-org/GLM-4.6","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"weather","strict":false,"description":"Get weather information for a location","parameters":{"properties":{"location":{"description":"the city","type":"string"}},"required":["location"],"type":"object"}},"type":"function"}]}'
41 headers:
42 Accept:
43 - application/json
44 Content-Type:
45 - application/json
46 User-Agent:
47 - OpenAI/Go 2.7.1
48 url: https://router.huggingface.co/v1/chat/completions
49 method: POST
50 response:
51 proto: HTTP/2.0
52 proto_major: 2
53 proto_minor: 0
54 content_length: -1
55 body: '{"choices":[{"finish_reason":"stop","index":0,"message":{"content":"\n\nThe weather in Florence, Italy is currently 40°C (104°F). That''s quite hot! Make sure to stay hydrated and seek shade if you''re planning to be outdoors.","reasoning_content":"The weather function returned \"40 C\" for Florence, Italy. This is quite hot! I should provide this information to the user in a helpful way.","role":"assistant"}}],"created":1761231468,"id":"2025102322574633726e00fa7444e6","model":"glm-4.6","request_id":"2025102322574633726e00fa7444e6","usage":{"completion_tokens":72,"prompt_tokens":207,"prompt_tokens_details":{"cached_tokens":43},"total_tokens":279}}'
56 headers:
57 Content-Type:
58 - application/json; charset=UTF-8
59 status: 200 OK
60 code: 200
61 duration: 3.454468916s