---
version: 2
interactions:
- id: 0
  request:
    proto: HTTP/1.1
    proto_major: 1
    proto_minor: 1
    content_length: 859
    host: ""
    body: '{"messages":[{"content":"You are a helpful assistant. Always use both add and multiply at the same time.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"}],"model":"qwen-3-coder-480b","max_tokens":4000,"stream_options":{"include_usage":true},"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"}],"stream":true}'
    headers:
      Accept:
      - application/json
      Content-Type:
      - application/json
      User-Agent:
      - OpenAI/Go 2.7.1
    url: https://api.cerebras.ai/v1/chat/completions
    method: POST
  response:
    proto: HTTP/2.0
    proto_major: 2
    proto_minor: 0
    content_length: -1
    body: |+
      data: {"id":"chatcmpl-5c5013db-58c5-4c0b-9e7e-10eccacdc535","choices":[{"delta":{"role":"assistant"},"index":0}],"created":1761231236,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"}

      data: {"id":"chatcmpl-5c5013db-58c5-4c0b-9e7e-10eccacdc535","choices":[{"delta":{"tool_calls":[{"function":{"name":"add","arguments":"{\"a\": 2, \"b\": 3}"},"type":"function","id":"ab8048658","index":0},{"function":{"name":"multiply","arguments":"{\"a\": 2, \"b\": 3}"},"type":"function","id":"b249e0b3f","index":1}]},"index":0}],"created":1761231236,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"}

      data: {"id":"chatcmpl-5c5013db-58c5-4c0b-9e7e-10eccacdc535","choices":[{"delta":{},"finish_reason":"tool_calls","index":0}],"created":1761231236,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk","usage":{"prompt_tokens":408,"completion_tokens":59,"total_tokens":467,"prompt_tokens_details":{"cached_tokens":0}},"time_info":{"queue_time":0.000163361,"prompt_time":0.014535933,"completion_time":0.030461228,"total_time":0.046776533126831055,"created":1761231236.3815937}}

    headers:
      Content-Type:
      - text/event-stream; charset=utf-8
    status: 200 OK
    code: 200
    duration: 415.440041ms
- id: 1
  request:
    proto: HTTP/1.1
    proto_major: 1
    proto_minor: 1
    content_length: 1210
    host: ""
    body: '{"messages":[{"content":"You are a helpful assistant. Always use both add and multiply at the same time.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"},{"tool_calls":[{"id":"ab8048658","function":{"arguments":"{\"a\": 2, \"b\": 3}","name":"add"},"type":"function"},{"id":"b249e0b3f","function":{"arguments":"{\"a\": 2, \"b\": 3}","name":"multiply"},"type":"function"}],"role":"assistant"},{"content":"5","tool_call_id":"ab8048658","role":"tool"},{"content":"6","tool_call_id":"b249e0b3f","role":"tool"}],"model":"qwen-3-coder-480b","max_tokens":4000,"stream_options":{"include_usage":true},"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"}],"stream":true}'
    headers:
      Accept:
      - application/json
      Content-Type:
      - application/json
      User-Agent:
      - OpenAI/Go 2.7.1
    url: https://api.cerebras.ai/v1/chat/completions
    method: POST
  response:
    proto: HTTP/2.0
    proto_major: 2
    proto_minor: 0
    content_length: -1
    body: |+
      data: {"id":"chatcmpl-3de2c971-cc92-43b7-91b0-caf8543a7819","choices":[{"delta":{"role":"assistant"},"index":0}],"created":1761231234,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"}

      data: {"id":"chatcmpl-3de2c971-cc92-43b7-91b0-caf8543a7819","choices":[{"delta":{"content":"The"},"index":0}],"created":1761231234,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"}

      data: {"id":"chatcmpl-3de2c971-cc92-43b7-91b0-caf8543a7819","choices":[{"delta":{"content":" sum"},"index":0}],"created":1761231234,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"}

      data: {"id":"chatcmpl-3de2c971-cc92-43b7-91b0-caf8543a7819","choices":[{"delta":{"content":" of"},"index":0}],"created":1761231234,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"}

      data: {"id":"chatcmpl-3de2c971-cc92-43b7-91b0-caf8543a7819","choices":[{"delta":{"content":" "},"index":0}],"created":1761231234,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"}

      data: {"id":"chatcmpl-3de2c971-cc92-43b7-91b0-caf8543a7819","choices":[{"delta":{"content":"2"},"index":0}],"created":1761231234,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"}

      data: {"id":"chatcmpl-3de2c971-cc92-43b7-91b0-caf8543a7819","choices":[{"delta":{"content":" and"},"index":0}],"created":1761231234,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"}

      data: {"id":"chatcmpl-3de2c971-cc92-43b7-91b0-caf8543a7819","choices":[{"delta":{"content":" "},"index":0}],"created":1761231234,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"}

      data: {"id":"chatcmpl-3de2c971-cc92-43b7-91b0-caf8543a7819","choices":[{"delta":{"content":"3"},"index":0}],"created":1761231234,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"}

      data: {"id":"chatcmpl-3de2c971-cc92-43b7-91b0-caf8543a7819","choices":[{"delta":{"content":" is"},"index":0}],"created":1761231234,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"}

      data: {"id":"chatcmpl-3de2c971-cc92-43b7-91b0-caf8543a7819","choices":[{"delta":{"content":" "},"index":0}],"created":1761231234,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"}

      data: {"id":"chatcmpl-3de2c971-cc92-43b7-91b0-caf8543a7819","choices":[{"delta":{"content":"5"},"index":0}],"created":1761231234,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"}

      data: {"id":"chatcmpl-3de2c971-cc92-43b7-91b0-caf8543a7819","choices":[{"delta":{"content":","},"index":0}],"created":1761231234,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"}

      data: {"id":"chatcmpl-3de2c971-cc92-43b7-91b0-caf8543a7819","choices":[{"delta":{"content":" and"},"index":0}],"created":1761231234,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"}

      data: {"id":"chatcmpl-3de2c971-cc92-43b7-91b0-caf8543a7819","choices":[{"delta":{"content":" the"},"index":0}],"created":1761231234,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"}

      data: {"id":"chatcmpl-3de2c971-cc92-43b7-91b0-caf8543a7819","choices":[{"delta":{"content":" product"},"index":0}],"created":1761231234,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"}

      data: {"id":"chatcmpl-3de2c971-cc92-43b7-91b0-caf8543a7819","choices":[{"delta":{"content":" of"},"index":0}],"created":1761231234,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"}

      data: {"id":"chatcmpl-3de2c971-cc92-43b7-91b0-caf8543a7819","choices":[{"delta":{"content":" "},"index":0}],"created":1761231234,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"}

      data: {"id":"chatcmpl-3de2c971-cc92-43b7-91b0-caf8543a7819","choices":[{"delta":{"content":"2"},"index":0}],"created":1761231234,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"}

      data: {"id":"chatcmpl-3de2c971-cc92-43b7-91b0-caf8543a7819","choices":[{"delta":{"content":" and"},"index":0}],"created":1761231234,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"}

      data: {"id":"chatcmpl-3de2c971-cc92-43b7-91b0-caf8543a7819","choices":[{"delta":{"content":" "},"index":0}],"created":1761231234,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"}

      data: {"id":"chatcmpl-3de2c971-cc92-43b7-91b0-caf8543a7819","choices":[{"delta":{"content":"3"},"index":0}],"created":1761231234,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"}

      data: {"id":"chatcmpl-3de2c971-cc92-43b7-91b0-caf8543a7819","choices":[{"delta":{"content":" is"},"index":0}],"created":1761231234,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"}

      data: {"id":"chatcmpl-3de2c971-cc92-43b7-91b0-caf8543a7819","choices":[{"delta":{"content":" "},"index":0}],"created":1761231234,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"}

      data: {"id":"chatcmpl-3de2c971-cc92-43b7-91b0-caf8543a7819","choices":[{"delta":{"content":"6"},"index":0}],"created":1761231234,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"}

      data: {"id":"chatcmpl-3de2c971-cc92-43b7-91b0-caf8543a7819","choices":[{"delta":{"content":"."},"index":0}],"created":1761231234,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"}

      data: {"id":"chatcmpl-3de2c971-cc92-43b7-91b0-caf8543a7819","choices":[{"delta":{},"index":0}],"created":1761231234,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk"}

      data: {"id":"chatcmpl-3de2c971-cc92-43b7-91b0-caf8543a7819","choices":[{"delta":{},"finish_reason":"stop","index":0}],"created":1761231234,"model":"qwen-3-coder-480b","system_fingerprint":"fp_386b539e7b02ce3613b7","object":"chat.completion.chunk","usage":{"prompt_tokens":488,"completion_tokens":26,"total_tokens":514,"prompt_tokens_details":{"cached_tokens":0}},"time_info":{"queue_time":0.00009602,"prompt_time":0.026647695,"completion_time":0.014833488,"total_time":0.04320025444030762,"created":1761231234.2838135}}

    headers:
      Content-Type:
      - text/event-stream; charset=utf-8
    status: 200 OK
    code: 200
    duration: 410.382375ms
