---
version: 2
interactions:
- id: 0
  request:
    proto: HTTP/1.1
    proto_major: 1
    proto_minor: 1
    content_length: 527
    host: ""
    body: "{\"messages\":[{\"content\":\"You are a helpful assistant. Use the add tool to perform calculations.\",\"role\":\"system\"},{\"content\":\"What is 15 + 27?\",\"role\":\"user\"}],\"model\":\"gpt-4o\",\"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\"}],\"stream\":true}"
    headers:
      Accept:
      - application/json
      Content-Type:
      - application/json
      User-Agent:
      - OpenAI/Go 2.3.0
    url: https://api.openai.com/v1/chat/completions
    method: POST
  response:
    proto: HTTP/2.0
    proto_major: 2
    proto_minor: 0
    content_length: -1
    body: "data: {\"id\":\"chatcmpl-CC7KWfg68JP1ntmxrXmMcjeGwt2yf\",\"object\":\"chat.completion.chunk\",\"created\":1757004148,\"model\":\"gpt-4o-2024-08-06\",\"service_tier\":\"default\",\"system_fingerprint\":\"fp_f33640a400\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":null,\"tool_calls\":[{\"index\":0,\"id\":\"call_32EKgZToXJGCcoOsKGeKDBMG\",\"type\":\"function\",\"function\":{\"name\":\"add\",\"arguments\":\"\"}}],\"refusal\":null},\"logprobs\":null,\"finish_reason\":null}],\"usage\":null,\"obfuscation\":\"G\"}\n\ndata: {\"id\":\"chatcmpl-CC7KWfg68JP1ntmxrXmMcjeGwt2yf\",\"object\":\"chat.completion.chunk\",\"created\":1757004148,\"model\":\"gpt-4o-2024-08-06\",\"service_tier\":\"default\",\"system_fingerprint\":\"fp_f33640a400\",\"choices\":[{\"index\":0,\"delta\":{\"tool_calls\":[{\"index\":0,\"function\":{\"arguments\":\"{\\\"\"}}]},\"logprobs\":null,\"finish_reason\":null}],\"usage\":null,\"obfuscation\":\"o83\"}\n\ndata: {\"id\":\"chatcmpl-CC7KWfg68JP1ntmxrXmMcjeGwt2yf\",\"object\":\"chat.completion.chunk\",\"created\":1757004148,\"model\":\"gpt-4o-2024-08-06\",\"service_tier\":\"default\",\"system_fingerprint\":\"fp_f33640a400\",\"choices\":[{\"index\":0,\"delta\":{\"tool_calls\":[{\"index\":0,\"function\":{\"arguments\":\"a\"}}]},\"logprobs\":null,\"finish_reason\":null}],\"usage\":null,\"obfuscation\":\"Sqazb\"}\n\ndata: {\"id\":\"chatcmpl-CC7KWfg68JP1ntmxrXmMcjeGwt2yf\",\"object\":\"chat.completion.chunk\",\"created\":1757004148,\"model\":\"gpt-4o-2024-08-06\",\"service_tier\":\"default\",\"system_fingerprint\":\"fp_f33640a400\",\"choices\":[{\"index\":0,\"delta\":{\"tool_calls\":[{\"index\":0,\"function\":{\"arguments\":\"\\\":\"}}]},\"logprobs\":null,\"finish_reason\":null}],\"usage\":null,\"obfuscation\":\"ytC\"}\n\ndata: {\"id\":\"chatcmpl-CC7KWfg68JP1ntmxrXmMcjeGwt2yf\",\"object\":\"chat.completion.chunk\",\"created\":1757004148,\"model\":\"gpt-4o-2024-08-06\",\"service_tier\":\"default\",\"system_fingerprint\":\"fp_f33640a400\",\"choices\":[{\"index\":0,\"delta\":{\"tool_calls\":[{\"index\":0,\"function\":{\"arguments\":\"15\"}}]},\"logprobs\":null,\"finish_reason\":null}],\"usage\":null,\"obfuscation\":\"Jt63\"}\n\ndata: {\"id\":\"chatcmpl-CC7KWfg68JP1ntmxrXmMcjeGwt2yf\",\"object\":\"chat.completion.chunk\",\"created\":1757004148,\"model\":\"gpt-4o-2024-08-06\",\"service_tier\":\"default\",\"system_fingerprint\":\"fp_f33640a400\",\"choices\":[{\"index\":0,\"delta\":{\"tool_calls\":[{\"index\":0,\"function\":{\"arguments\":\",\\\"\"}}]},\"logprobs\":null,\"finish_reason\":null}],\"usage\":null,\"obfuscation\":\"UEV\"}\n\ndata: {\"id\":\"chatcmpl-CC7KWfg68JP1ntmxrXmMcjeGwt2yf\",\"object\":\"chat.completion.chunk\",\"created\":1757004148,\"model\":\"gpt-4o-2024-08-06\",\"service_tier\":\"default\",\"system_fingerprint\":\"fp_f33640a400\",\"choices\":[{\"index\":0,\"delta\":{\"tool_calls\":[{\"index\":0,\"function\":{\"arguments\":\"b\"}}]},\"logprobs\":null,\"finish_reason\":null}],\"usage\":null,\"obfuscation\":\"lGxRz\"}\n\ndata: {\"id\":\"chatcmpl-CC7KWfg68JP1ntmxrXmMcjeGwt2yf\",\"object\":\"chat.completion.chunk\",\"created\":1757004148,\"model\":\"gpt-4o-2024-08-06\",\"service_tier\":\"default\",\"system_fingerprint\":\"fp_f33640a400\",\"choices\":[{\"index\":0,\"delta\":{\"tool_calls\":[{\"index\":0,\"function\":{\"arguments\":\"\\\":\"}}]},\"logprobs\":null,\"finish_reason\":null}],\"usage\":null,\"obfuscation\":\"72d\"}\n\ndata: {\"id\":\"chatcmpl-CC7KWfg68JP1ntmxrXmMcjeGwt2yf\",\"object\":\"chat.completion.chunk\",\"created\":1757004148,\"model\":\"gpt-4o-2024-08-06\",\"service_tier\":\"default\",\"system_fingerprint\":\"fp_f33640a400\",\"choices\":[{\"index\":0,\"delta\":{\"tool_calls\":[{\"index\":0,\"function\":{\"arguments\":\"27\"}}]},\"logprobs\":null,\"finish_reason\":null}],\"usage\":null,\"obfuscation\":\"D0VY\"}\n\ndata: {\"id\":\"chatcmpl-CC7KWfg68JP1ntmxrXmMcjeGwt2yf\",\"object\":\"chat.completion.chunk\",\"created\":1757004148,\"model\":\"gpt-4o-2024-08-06\",\"service_tier\":\"default\",\"system_fingerprint\":\"fp_f33640a400\",\"choices\":[{\"index\":0,\"delta\":{\"tool_calls\":[{\"index\":0,\"function\":{\"arguments\":\"}\"}}]},\"logprobs\":null,\"finish_reason\":null}],\"usage\":null,\"obfuscation\":\"VyN2Q\"}\n\ndata: {\"id\":\"chatcmpl-CC7KWfg68JP1ntmxrXmMcjeGwt2yf\",\"object\":\"chat.completion.chunk\",\"created\":1757004148,\"model\":\"gpt-4o-2024-08-06\",\"service_tier\":\"default\",\"system_fingerprint\":\"fp_f33640a400\",\"choices\":[{\"index\":0,\"delta\":{},\"logprobs\":null,\"finish_reason\":\"tool_calls\"}],\"usage\":null,\"obfuscation\":\"lUEs\"}\n\ndata: {\"id\":\"chatcmpl-CC7KWfg68JP1ntmxrXmMcjeGwt2yf\",\"object\":\"chat.completion.chunk\",\"created\":1757004148,\"model\":\"gpt-4o-2024-08-06\",\"service_tier\":\"default\",\"system_fingerprint\":\"fp_f33640a400\",\"choices\":[],\"usage\":{\"prompt_tokens\":73,\"completion_tokens\":17,\"total_tokens\":90,\"prompt_tokens_details\":{\"cached_tokens\":0,\"audio_tokens\":0},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"audio_tokens\":0,\"accepted_prediction_tokens\":0,\"rejected_prediction_tokens\":0}},\"obfuscation\":\"u6D1A99gV8BIvOR\"}\n\ndata: [DONE]\n\n"
    headers:
      Content-Type:
      - text/event-stream; charset=utf-8
    status: 200 OK
    code: 200
    duration: 1.275977s
- id: 1
  request:
    proto: HTTP/1.1
    proto_major: 1
    proto_minor: 1
    content_length: 758
    host: ""
    body: "{\"messages\":[{\"content\":\"You are a helpful assistant. Use the add tool to perform calculations.\",\"role\":\"system\"},{\"content\":\"What is 15 + 27?\",\"role\":\"user\"},{\"tool_calls\":[{\"id\":\"call_32EKgZToXJGCcoOsKGeKDBMG\",\"function\":{\"arguments\":\"{\\\"a\\\":15,\\\"b\\\":27}\",\"name\":\"add\"},\"type\":\"function\"}],\"role\":\"assistant\"},{\"content\":\"42\",\"tool_call_id\":\"call_32EKgZToXJGCcoOsKGeKDBMG\",\"role\":\"tool\"}],\"model\":\"gpt-4o\",\"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\"}],\"stream\":true}"
    headers:
      Accept:
      - application/json
      Content-Type:
      - application/json
      User-Agent:
      - OpenAI/Go 2.3.0
    url: https://api.openai.com/v1/chat/completions
    method: POST
  response:
    proto: HTTP/2.0
    proto_major: 2
    proto_minor: 0
    content_length: -1
    body: "data: {\"id\":\"chatcmpl-CC7KYLaQy1yokH0JcpuncBILcIrSc\",\"object\":\"chat.completion.chunk\",\"created\":1757004150,\"model\":\"gpt-4o-2024-08-06\",\"service_tier\":\"default\",\"system_fingerprint\":\"fp_f33640a400\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"\",\"refusal\":null},\"logprobs\":null,\"finish_reason\":null}],\"usage\":null,\"obfuscation\":\"lHQy6EEWHTpR9e\"}\n\ndata: {\"id\":\"chatcmpl-CC7KYLaQy1yokH0JcpuncBILcIrSc\",\"object\":\"chat.completion.chunk\",\"created\":1757004150,\"model\":\"gpt-4o-2024-08-06\",\"service_tier\":\"default\",\"system_fingerprint\":\"fp_f33640a400\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"15\"},\"logprobs\":null,\"finish_reason\":null}],\"usage\":null,\"obfuscation\":\"4l3v3yNWlz6ezS\"}\n\ndata: {\"id\":\"chatcmpl-CC7KYLaQy1yokH0JcpuncBILcIrSc\",\"object\":\"chat.completion.chunk\",\"created\":1757004150,\"model\":\"gpt-4o-2024-08-06\",\"service_tier\":\"default\",\"system_fingerprint\":\"fp_f33640a400\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" +\"},\"logprobs\":null,\"finish_reason\":null}],\"usage\":null,\"obfuscation\":\"jBTpHdjr9xDqYh\"}\n\ndata: {\"id\":\"chatcmpl-CC7KYLaQy1yokH0JcpuncBILcIrSc\",\"object\":\"chat.completion.chunk\",\"created\":1757004150,\"model\":\"gpt-4o-2024-08-06\",\"service_tier\":\"default\",\"system_fingerprint\":\"fp_f33640a400\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" \"},\"logprobs\":null,\"finish_reason\":null}],\"usage\":null,\"obfuscation\":\"10oJvn7BeIA3iry\"}\n\ndata: {\"id\":\"chatcmpl-CC7KYLaQy1yokH0JcpuncBILcIrSc\",\"object\":\"chat.completion.chunk\",\"created\":1757004150,\"model\":\"gpt-4o-2024-08-06\",\"service_tier\":\"default\",\"system_fingerprint\":\"fp_f33640a400\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"27\"},\"logprobs\":null,\"finish_reason\":null}],\"usage\":null,\"obfuscation\":\"NFNSh8QNVa9Fl5\"}\n\ndata: {\"id\":\"chatcmpl-CC7KYLaQy1yokH0JcpuncBILcIrSc\",\"object\":\"chat.completion.chunk\",\"created\":1757004150,\"model\":\"gpt-4o-2024-08-06\",\"service_tier\":\"default\",\"system_fingerprint\":\"fp_f33640a400\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" is\"},\"logprobs\":null,\"finish_reason\":null}],\"usage\":null,\"obfuscation\":\"ayv5ohnA1tCWD\"}\n\ndata: {\"id\":\"chatcmpl-CC7KYLaQy1yokH0JcpuncBILcIrSc\",\"object\":\"chat.completion.chunk\",\"created\":1757004150,\"model\":\"gpt-4o-2024-08-06\",\"service_tier\":\"default\",\"system_fingerprint\":\"fp_f33640a400\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" \"},\"logprobs\":null,\"finish_reason\":null}],\"usage\":null,\"obfuscation\":\"B81ro7bFywRKLgj\"}\n\ndata: {\"id\":\"chatcmpl-CC7KYLaQy1yokH0JcpuncBILcIrSc\",\"object\":\"chat.completion.chunk\",\"created\":1757004150,\"model\":\"gpt-4o-2024-08-06\",\"service_tier\":\"default\",\"system_fingerprint\":\"fp_f33640a400\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"42\"},\"logprobs\":null,\"finish_reason\":null}],\"usage\":null,\"obfuscation\":\"lDVhH4mGOWHn0L\"}\n\ndata: {\"id\":\"chatcmpl-CC7KYLaQy1yokH0JcpuncBILcIrSc\",\"object\":\"chat.completion.chunk\",\"created\":1757004150,\"model\":\"gpt-4o-2024-08-06\",\"service_tier\":\"default\",\"system_fingerprint\":\"fp_f33640a400\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\".\"},\"logprobs\":null,\"finish_reason\":null}],\"usage\":null,\"obfuscation\":\"CUsaGMVGQyyqVbK\"}\n\ndata: {\"id\":\"chatcmpl-CC7KYLaQy1yokH0JcpuncBILcIrSc\",\"object\":\"chat.completion.chunk\",\"created\":1757004150,\"model\":\"gpt-4o-2024-08-06\",\"service_tier\":\"default\",\"system_fingerprint\":\"fp_f33640a400\",\"choices\":[{\"index\":0,\"delta\":{},\"logprobs\":null,\"finish_reason\":\"stop\"}],\"usage\":null,\"obfuscation\":\"1lVNWlWnms\"}\n\ndata: {\"id\":\"chatcmpl-CC7KYLaQy1yokH0JcpuncBILcIrSc\",\"object\":\"chat.completion.chunk\",\"created\":1757004150,\"model\":\"gpt-4o-2024-08-06\",\"service_tier\":\"default\",\"system_fingerprint\":\"fp_f33640a400\",\"choices\":[],\"usage\":{\"prompt_tokens\":98,\"completion_tokens\":9,\"total_tokens\":107,\"prompt_tokens_details\":{\"cached_tokens\":0,\"audio_tokens\":0},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"audio_tokens\":0,\"accepted_prediction_tokens\":0,\"rejected_prediction_tokens\":0}},\"obfuscation\":\"xStpLtBU1J2gDbA\"}\n\ndata: [DONE]\n\n"
    headers:
      Content-Type:
      - text/event-stream; charset=utf-8
    status: 200 OK
    code: 200
    duration: 1.835219083s
