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: 820
10 host: ""
11 body: '{"messages":[{"content":"You are a helpful assistant. CRITICAL: Always use both add and multiply at the same time ALWAYS.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"}],"model":"zai-org/GLM-4.6","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"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 wants me to add and multiply the numbers 2 and 3. According to the critical instruction, I need to use both add and multiply functions at the same time. \n\nFor add: a=2, b=3\nFor multiply: a=2, b=3\n\nI''ll call both functions.","role":"assistant","tool_calls":[{"function":{"arguments":"{\"a\":2,\"b\":3}","name":"add"},"id":"call_-8223416512122051790","index":0,"type":"function"},{"function":{"arguments":"{\"a\":2,\"b\":3}","name":"multiply"},"id":"call_-8223416512122051789","index":1,"type":"function"}]}}],"created":1761231486,"id":"20251023225801db6b652dc9124c7f","model":"glm-4.6","request_id":"20251023225801db6b652dc9124c7f","usage":{"completion_tokens":126,"prompt_tokens":286,"prompt_tokens_details":{"cached_tokens":43},"total_tokens":412}}'
27 headers:
28 Content-Type:
29 - application/json; charset=UTF-8
30 status: 200 OK
31 code: 200
32 duration: 5.27517675s
33- id: 1
34 request:
35 proto: HTTP/1.1
36 proto_major: 1
37 proto_minor: 1
38 content_length: 1229
39 host: ""
40 body: '{"messages":[{"content":"You are a helpful assistant. CRITICAL: Always use both add and multiply at the same time ALWAYS.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"},{"tool_calls":[{"id":"call_-8223416512122051790","function":{"arguments":"{\"a\":2,\"b\":3}","name":"add"},"type":"function"},{"id":"call_-8223416512122051789","function":{"arguments":"{\"a\":2,\"b\":3}","name":"multiply"},"type":"function"}],"role":"assistant"},{"content":"5","tool_call_id":"call_-8223416512122051790","role":"tool"},{"content":"6","tool_call_id":"call_-8223416512122051789","role":"tool"}],"model":"zai-org/GLM-4.6","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"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\nHere are the results for adding and multiplying 2 and 3:\n\n**Addition:** 2 + 3 = 5\n**Multiplication:** 2 × 3 = 6","reasoning_content":"Perfect! I''ve used both the add and multiply functions as requested. The results show:\n- Adding 2 and 3 gives 5\n- Multiplying 2 and 3 gives 6\n\nI should present these results clearly to the user.","role":"assistant"}}],"created":1761231489,"id":"2025102322580765e2965aefdb4735","model":"glm-4.6","request_id":"2025102322580765e2965aefdb4735","usage":{"completion_tokens":95,"prompt_tokens":345,"prompt_tokens_details":{"cached_tokens":43},"total_tokens":440}}'
56 headers:
57 Content-Type:
58 - application/json; charset=UTF-8
59 status: 200 OK
60 code: 200
61 duration: 3.554623834s