---
version: 2
interactions:
- id: 0
  request:
    proto: HTTP/1.1
    proto_major: 1
    proto_minor: 1
    content_length: 818
    host: ""
    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":"glm-4.7-flash","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"}]}'
    headers:
      Accept:
      - application/json
      Content-Type:
      - application/json
      User-Agent:
      - Charm-Fantasy/0.12.2 (https://charm.land/fantasy)
    url: https://api.z.ai/api/coding/paas/v4/chat/completions
    method: POST
  response:
    proto: HTTP/2.0
    proto_major: 2
    proto_minor: 0
    content_length: -1
    uncompressed: true
    body: '{"choices":[{"finish_reason":"tool_calls","index":0,"message":{"content":"I''ll add and multiply 2 and 3 at the same time as requested.","reasoning_content":"The user is asking me to add and multiply the numbers 2 and 3. They specifically said \"ALWAYS use both add and multiply at the same time\", so I should call both functions at the same time.\n\nI need to:\n1. Call add with a=2 and b=3\n2. Call multiply with a=2 and b=3\n3. Both calls should be made simultaneously","role":"assistant","tool_calls":[{"function":{"arguments":"{\"a\":2,\"b\":3}","name":"add"},"id":"call_-7807255211226955507","index":0,"type":"function"},{"function":{"arguments":"{\"a\":2,\"b\":3}","name":"multiply"},"id":"call_-7807255211226955506","index":1,"type":"function"}]}}],"created":1773349477,"id":"20260313050319b142e8fbd458451b","model":"glm-4.7-flash","object":"chat.completion","request_id":"20260313050319b142e8fbd458451b","usage":{"completion_tokens":131,"completion_tokens_details":{"reasoning_tokens":82},"prompt_tokens":279,"prompt_tokens_details":{"cached_tokens":43},"total_tokens":410}}'
    headers:
      Content-Type:
      - application/json; charset=UTF-8
    status: 200 OK
    code: 200
    duration: 1m18.00699275s
- id: 1
  request:
    proto: HTTP/1.1
    proto_major: 1
    proto_minor: 1
    content_length: 1637
    host: ""
    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"},{"content":"I''ll add and multiply 2 and 3 at the same time as requested.","tool_calls":[{"id":"call_-7807255211226955507","function":{"arguments":"{\"a\":2,\"b\":3}","name":"add"},"type":"function"},{"id":"call_-7807255211226955506","function":{"arguments":"{\"a\":2,\"b\":3}","name":"multiply"},"type":"function"}],"role":"assistant","reasoning_content":"The user is asking me to add and multiply the numbers 2 and 3. They specifically said \"ALWAYS use both add and multiply at the same time\", so I should call both functions at the same time.\n\nI need to:\n1. Call add with a=2 and b=3\n2. Call multiply with a=2 and b=3\n3. Both calls should be made simultaneously"},{"content":"5","tool_call_id":"call_-7807255211226955507","role":"tool"},{"content":"6","tool_call_id":"call_-7807255211226955506","role":"tool"}],"model":"glm-4.7-flash","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"}]}'
    headers:
      Accept:
      - application/json
      Content-Type:
      - application/json
      User-Agent:
      - Charm-Fantasy/0.12.2 (https://charm.land/fantasy)
    url: https://api.z.ai/api/coding/paas/v4/chat/completions
    method: POST
  response:
    proto: HTTP/2.0
    proto_major: 2
    proto_minor: 0
    content_length: -1
    uncompressed: true
    body: '{"choices":[{"finish_reason":"stop","index":0,"message":{"content":"I''ve added and multiplied the numbers 2 and 3:\n\n**Addition:** 2 + 3 = 5  \n**Multiplication:** 2 × 3 = 6","reasoning_content":"Perfect! I got the results:\n- Addition: 2 + 3 = 5\n- Multiplication: 2 × 3 = 6\n\nBoth functions were called simultaneously as requested.","role":"assistant"}}],"created":1773349487,"id":"20260313050437098d451573e045e7","model":"glm-4.7-flash","object":"chat.completion","request_id":"20260313050437098d451573e045e7","usage":{"completion_tokens":80,"completion_tokens_details":{"reasoning_tokens":40},"prompt_tokens":418,"prompt_tokens_details":{"cached_tokens":279},"total_tokens":498}}'
    headers:
      Content-Type:
      - application/json; charset=UTF-8
    status: 200 OK
    code: 200
    duration: 10.919362667s
