---
version: 2
interactions:
- id: 0
  request:
    proto: HTTP/1.1
    proto_major: 1
    proto_minor: 1
    content_length: 503
    host: ""
    body: '{"max_output_tokens":4000,"store":false,"input":[{"content":"You are a helpful assistant","role":"system"},{"content":[{"text":"What''s the weather in Florence,Italy?","type":"input_text"}],"role":"user"}],"model":"gpt-4o-mini","tool_choice":"auto","tools":[{"strict":false,"parameters":{"properties":{"location":{"description":"the city","type":"string"}},"required":["location"],"type":"object"},"name":"weather","description":"Get weather information for a location","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/responses
    method: POST
  response:
    proto: HTTP/2.0
    proto_major: 2
    proto_minor: 0
    content_length: -1
    body: |+
      event: response.created
      data: {"type":"response.created","sequence_number":0,"response":{"id":"resp_0915a342b22b18d50168f237ece814819fbbac6dc48dd0edb2","object":"response","created_at":1760704492,"status":"in_progress","background":false,"error":null,"incomplete_details":null,"instructions":null,"max_output_tokens":4000,"max_tool_calls":null,"model":"gpt-4o-mini-2024-07-18","output":[],"parallel_tool_calls":true,"previous_response_id":null,"prompt_cache_key":null,"reasoning":{"effort":null,"summary":null},"safety_identifier":null,"service_tier":"auto","store":false,"temperature":1.0,"text":{"format":{"type":"text"},"verbosity":"medium"},"tool_choice":"auto","tools":[{"type":"function","description":"Get weather information for a location","name":"weather","parameters":{"properties":{"location":{"description":"the city","type":"string"}},"required":["location"],"type":"object"},"strict":false}],"top_logprobs":0,"top_p":1.0,"truncation":"disabled","usage":null,"user":null,"metadata":{}}}

      event: response.in_progress
      data: {"type":"response.in_progress","sequence_number":1,"response":{"id":"resp_0915a342b22b18d50168f237ece814819fbbac6dc48dd0edb2","object":"response","created_at":1760704492,"status":"in_progress","background":false,"error":null,"incomplete_details":null,"instructions":null,"max_output_tokens":4000,"max_tool_calls":null,"model":"gpt-4o-mini-2024-07-18","output":[],"parallel_tool_calls":true,"previous_response_id":null,"prompt_cache_key":null,"reasoning":{"effort":null,"summary":null},"safety_identifier":null,"service_tier":"auto","store":false,"temperature":1.0,"text":{"format":{"type":"text"},"verbosity":"medium"},"tool_choice":"auto","tools":[{"type":"function","description":"Get weather information for a location","name":"weather","parameters":{"properties":{"location":{"description":"the city","type":"string"}},"required":["location"],"type":"object"},"strict":false}],"top_logprobs":0,"top_p":1.0,"truncation":"disabled","usage":null,"user":null,"metadata":{}}}

      event: response.output_item.added
      data: {"type":"response.output_item.added","sequence_number":2,"output_index":0,"item":{"id":"fc_0915a342b22b18d50168f237ed7be4819fb7686ac852408033","type":"function_call","status":"in_progress","arguments":"","call_id":"call_ytBD13XK47ACiCTAyn4RZCSb","name":"weather"}}

      event: response.function_call_arguments.delta
      data: {"type":"response.function_call_arguments.delta","sequence_number":3,"item_id":"fc_0915a342b22b18d50168f237ed7be4819fb7686ac852408033","output_index":0,"delta":"{\"","obfuscation":"Hrtnjbqy71fTf2"}

      event: response.function_call_arguments.delta
      data: {"type":"response.function_call_arguments.delta","sequence_number":4,"item_id":"fc_0915a342b22b18d50168f237ed7be4819fb7686ac852408033","output_index":0,"delta":"location","obfuscation":"pzYupDDV"}

      event: response.function_call_arguments.delta
      data: {"type":"response.function_call_arguments.delta","sequence_number":5,"item_id":"fc_0915a342b22b18d50168f237ed7be4819fb7686ac852408033","output_index":0,"delta":"\":\"","obfuscation":"l8BCOLb4pKgPH"}

      event: response.function_call_arguments.delta
      data: {"type":"response.function_call_arguments.delta","sequence_number":6,"item_id":"fc_0915a342b22b18d50168f237ed7be4819fb7686ac852408033","output_index":0,"delta":"Flor","obfuscation":"XuNP9JDMdMXF"}

      event: response.function_call_arguments.delta
      data: {"type":"response.function_call_arguments.delta","sequence_number":7,"item_id":"fc_0915a342b22b18d50168f237ed7be4819fb7686ac852408033","output_index":0,"delta":"ence","obfuscation":"TFnsqDERhUnk"}

      event: response.function_call_arguments.delta
      data: {"type":"response.function_call_arguments.delta","sequence_number":8,"item_id":"fc_0915a342b22b18d50168f237ed7be4819fb7686ac852408033","output_index":0,"delta":",","obfuscation":"Ot0Lx95tLZ6T2MK"}

      event: response.function_call_arguments.delta
      data: {"type":"response.function_call_arguments.delta","sequence_number":9,"item_id":"fc_0915a342b22b18d50168f237ed7be4819fb7686ac852408033","output_index":0,"delta":" Italy","obfuscation":"6x0z1jEIf7"}

      event: response.function_call_arguments.delta
      data: {"type":"response.function_call_arguments.delta","sequence_number":10,"item_id":"fc_0915a342b22b18d50168f237ed7be4819fb7686ac852408033","output_index":0,"delta":"\"}","obfuscation":"XxvQGBcCf9Gh8t"}

      event: response.function_call_arguments.done
      data: {"type":"response.function_call_arguments.done","sequence_number":11,"item_id":"fc_0915a342b22b18d50168f237ed7be4819fb7686ac852408033","output_index":0,"arguments":"{\"location\":\"Florence, Italy\"}"}

      event: response.output_item.done
      data: {"type":"response.output_item.done","sequence_number":12,"output_index":0,"item":{"id":"fc_0915a342b22b18d50168f237ed7be4819fb7686ac852408033","type":"function_call","status":"completed","arguments":"{\"location\":\"Florence, Italy\"}","call_id":"call_ytBD13XK47ACiCTAyn4RZCSb","name":"weather"}}

      event: response.completed
      data: {"type":"response.completed","sequence_number":13,"response":{"id":"resp_0915a342b22b18d50168f237ece814819fbbac6dc48dd0edb2","object":"response","created_at":1760704492,"status":"completed","background":false,"error":null,"incomplete_details":null,"instructions":null,"max_output_tokens":4000,"max_tool_calls":null,"model":"gpt-4o-mini-2024-07-18","output":[{"id":"fc_0915a342b22b18d50168f237ed7be4819fb7686ac852408033","type":"function_call","status":"completed","arguments":"{\"location\":\"Florence, Italy\"}","call_id":"call_ytBD13XK47ACiCTAyn4RZCSb","name":"weather"}],"parallel_tool_calls":true,"previous_response_id":null,"prompt_cache_key":null,"reasoning":{"effort":null,"summary":null},"safety_identifier":null,"service_tier":"default","store":false,"temperature":1.0,"text":{"format":{"type":"text"},"verbosity":"medium"},"tool_choice":"auto","tools":[{"type":"function","description":"Get weather information for a location","name":"weather","parameters":{"properties":{"location":{"description":"the city","type":"string"}},"required":["location"],"type":"object"},"strict":false}],"top_logprobs":0,"top_p":1.0,"truncation":"disabled","usage":{"input_tokens":58,"input_tokens_details":{"cached_tokens":0},"output_tokens":17,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":75},"user":null,"metadata":{}}}

    headers:
      Content-Type:
      - text/event-stream; charset=utf-8
    status: 200 OK
    code: 200
    duration: 236.516125ms
- id: 1
  request:
    proto: HTTP/1.1
    proto_major: 1
    proto_minor: 1
    content_length: 738
    host: ""
    body: '{"max_output_tokens":4000,"store":false,"input":[{"content":"You are a helpful assistant","role":"system"},{"content":[{"text":"What''s the weather in Florence,Italy?","type":"input_text"}],"role":"user"},{"arguments":"\"{\\\"location\\\":\\\"Florence, Italy\\\"}\"","call_id":"call_ytBD13XK47ACiCTAyn4RZCSb","name":"weather","type":"function_call"},{"call_id":"call_ytBD13XK47ACiCTAyn4RZCSb","output":"40 C","type":"function_call_output"}],"model":"gpt-4o-mini","tool_choice":"auto","tools":[{"strict":false,"parameters":{"properties":{"location":{"description":"the city","type":"string"}},"required":["location"],"type":"object"},"name":"weather","description":"Get weather information for a location","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/responses
    method: POST
  response:
    proto: HTTP/2.0
    proto_major: 2
    proto_minor: 0
    content_length: -1
    body: |+
      event: response.created
      data: {"type":"response.created","sequence_number":0,"response":{"id":"resp_03b372deeab9afef0168f237edcaac8195a4aa3d164255738c","object":"response","created_at":1760704493,"status":"in_progress","background":false,"error":null,"incomplete_details":null,"instructions":null,"max_output_tokens":4000,"max_tool_calls":null,"model":"gpt-4o-mini-2024-07-18","output":[],"parallel_tool_calls":true,"previous_response_id":null,"prompt_cache_key":null,"reasoning":{"effort":null,"summary":null},"safety_identifier":null,"service_tier":"auto","store":false,"temperature":1.0,"text":{"format":{"type":"text"},"verbosity":"medium"},"tool_choice":"auto","tools":[{"type":"function","description":"Get weather information for a location","name":"weather","parameters":{"properties":{"location":{"description":"the city","type":"string"}},"required":["location"],"type":"object"},"strict":false}],"top_logprobs":0,"top_p":1.0,"truncation":"disabled","usage":null,"user":null,"metadata":{}}}

      event: response.in_progress
      data: {"type":"response.in_progress","sequence_number":1,"response":{"id":"resp_03b372deeab9afef0168f237edcaac8195a4aa3d164255738c","object":"response","created_at":1760704493,"status":"in_progress","background":false,"error":null,"incomplete_details":null,"instructions":null,"max_output_tokens":4000,"max_tool_calls":null,"model":"gpt-4o-mini-2024-07-18","output":[],"parallel_tool_calls":true,"previous_response_id":null,"prompt_cache_key":null,"reasoning":{"effort":null,"summary":null},"safety_identifier":null,"service_tier":"auto","store":false,"temperature":1.0,"text":{"format":{"type":"text"},"verbosity":"medium"},"tool_choice":"auto","tools":[{"type":"function","description":"Get weather information for a location","name":"weather","parameters":{"properties":{"location":{"description":"the city","type":"string"}},"required":["location"],"type":"object"},"strict":false}],"top_logprobs":0,"top_p":1.0,"truncation":"disabled","usage":null,"user":null,"metadata":{}}}

      event: response.output_item.added
      data: {"type":"response.output_item.added","sequence_number":2,"output_index":0,"item":{"id":"msg_03b372deeab9afef0168f237ee2e0881959296453175fdf7c1","type":"message","status":"in_progress","content":[],"role":"assistant"}}

      event: response.content_part.added
      data: {"type":"response.content_part.added","sequence_number":3,"item_id":"msg_03b372deeab9afef0168f237ee2e0881959296453175fdf7c1","output_index":0,"content_index":0,"part":{"type":"output_text","annotations":[],"logprobs":[],"text":""}}

      event: response.output_text.delta
      data: {"type":"response.output_text.delta","sequence_number":4,"item_id":"msg_03b372deeab9afef0168f237ee2e0881959296453175fdf7c1","output_index":0,"content_index":0,"delta":"The","logprobs":[],"obfuscation":"LbJ0zrf2Xlbtt"}

      event: response.output_text.delta
      data: {"type":"response.output_text.delta","sequence_number":5,"item_id":"msg_03b372deeab9afef0168f237ee2e0881959296453175fdf7c1","output_index":0,"content_index":0,"delta":" current","logprobs":[],"obfuscation":"gSB6Ljso"}

      event: response.output_text.delta
      data: {"type":"response.output_text.delta","sequence_number":6,"item_id":"msg_03b372deeab9afef0168f237ee2e0881959296453175fdf7c1","output_index":0,"content_index":0,"delta":" temperature","logprobs":[],"obfuscation":"6HSV"}

      event: response.output_text.delta
      data: {"type":"response.output_text.delta","sequence_number":7,"item_id":"msg_03b372deeab9afef0168f237ee2e0881959296453175fdf7c1","output_index":0,"content_index":0,"delta":" in","logprobs":[],"obfuscation":"2olcAesqOKi1y"}

      event: response.output_text.delta
      data: {"type":"response.output_text.delta","sequence_number":8,"item_id":"msg_03b372deeab9afef0168f237ee2e0881959296453175fdf7c1","output_index":0,"content_index":0,"delta":" Florence","logprobs":[],"obfuscation":"nbgdzjL"}

      event: response.output_text.delta
      data: {"type":"response.output_text.delta","sequence_number":9,"item_id":"msg_03b372deeab9afef0168f237ee2e0881959296453175fdf7c1","output_index":0,"content_index":0,"delta":",","logprobs":[],"obfuscation":"YoZssiZgz5zHS6h"}

      event: response.output_text.delta
      data: {"type":"response.output_text.delta","sequence_number":10,"item_id":"msg_03b372deeab9afef0168f237ee2e0881959296453175fdf7c1","output_index":0,"content_index":0,"delta":" Italy","logprobs":[],"obfuscation":"02oJoNSkie"}

      event: response.output_text.delta
      data: {"type":"response.output_text.delta","sequence_number":11,"item_id":"msg_03b372deeab9afef0168f237ee2e0881959296453175fdf7c1","output_index":0,"content_index":0,"delta":",","logprobs":[],"obfuscation":"pez2xfiPiFc29Ho"}

      event: response.output_text.delta
      data: {"type":"response.output_text.delta","sequence_number":12,"item_id":"msg_03b372deeab9afef0168f237ee2e0881959296453175fdf7c1","output_index":0,"content_index":0,"delta":" is","logprobs":[],"obfuscation":"MFk9ejbypODoX"}

      event: response.output_text.delta
      data: {"type":"response.output_text.delta","sequence_number":13,"item_id":"msg_03b372deeab9afef0168f237ee2e0881959296453175fdf7c1","output_index":0,"content_index":0,"delta":" ","logprobs":[],"obfuscation":"6XX7qV3SfkXCP3E"}

      event: response.output_text.delta
      data: {"type":"response.output_text.delta","sequence_number":14,"item_id":"msg_03b372deeab9afef0168f237ee2e0881959296453175fdf7c1","output_index":0,"content_index":0,"delta":"40","logprobs":[],"obfuscation":"staQ8SeYDAvuUZ"}

      event: response.output_text.delta
      data: {"type":"response.output_text.delta","sequence_number":15,"item_id":"msg_03b372deeab9afef0168f237ee2e0881959296453175fdf7c1","output_index":0,"content_index":0,"delta":"°C","logprobs":[],"obfuscation":"jS2kbp5xGRAQKR"}

      event: response.output_text.delta
      data: {"type":"response.output_text.delta","sequence_number":16,"item_id":"msg_03b372deeab9afef0168f237ee2e0881959296453175fdf7c1","output_index":0,"content_index":0,"delta":".","logprobs":[],"obfuscation":"GhbVrcMoP8Je3IX"}

      event: response.output_text.delta
      data: {"type":"response.output_text.delta","sequence_number":17,"item_id":"msg_03b372deeab9afef0168f237ee2e0881959296453175fdf7c1","output_index":0,"content_index":0,"delta":" If","logprobs":[],"obfuscation":"aRk18WTNA45gH"}

      event: response.output_text.delta
      data: {"type":"response.output_text.delta","sequence_number":18,"item_id":"msg_03b372deeab9afef0168f237ee2e0881959296453175fdf7c1","output_index":0,"content_index":0,"delta":" you","logprobs":[],"obfuscation":"kbEO7bKGPMTR"}

      event: response.output_text.delta
      data: {"type":"response.output_text.delta","sequence_number":19,"item_id":"msg_03b372deeab9afef0168f237ee2e0881959296453175fdf7c1","output_index":0,"content_index":0,"delta":" need","logprobs":[],"obfuscation":"k3UWS3v8OLR"}

      event: response.output_text.delta
      data: {"type":"response.output_text.delta","sequence_number":20,"item_id":"msg_03b372deeab9afef0168f237ee2e0881959296453175fdf7c1","output_index":0,"content_index":0,"delta":" more","logprobs":[],"obfuscation":"q3E8iPZa3bR"}

      event: response.output_text.delta
      data: {"type":"response.output_text.delta","sequence_number":21,"item_id":"msg_03b372deeab9afef0168f237ee2e0881959296453175fdf7c1","output_index":0,"content_index":0,"delta":" details","logprobs":[],"obfuscation":"4PXIjoSv"}

      event: response.output_text.delta
      data: {"type":"response.output_text.delta","sequence_number":22,"item_id":"msg_03b372deeab9afef0168f237ee2e0881959296453175fdf7c1","output_index":0,"content_index":0,"delta":" about","logprobs":[],"obfuscation":"QIjhgtABf3"}

      event: response.output_text.delta
      data: {"type":"response.output_text.delta","sequence_number":23,"item_id":"msg_03b372deeab9afef0168f237ee2e0881959296453175fdf7c1","output_index":0,"content_index":0,"delta":" the","logprobs":[],"obfuscation":"jJELxprdIxCs"}

      event: response.output_text.delta
      data: {"type":"response.output_text.delta","sequence_number":24,"item_id":"msg_03b372deeab9afef0168f237ee2e0881959296453175fdf7c1","output_index":0,"content_index":0,"delta":" weather","logprobs":[],"obfuscation":"2uDTEcSy"}

      event: response.output_text.delta
      data: {"type":"response.output_text.delta","sequence_number":25,"item_id":"msg_03b372deeab9afef0168f237ee2e0881959296453175fdf7c1","output_index":0,"content_index":0,"delta":" conditions","logprobs":[],"obfuscation":"8xVDS"}

      event: response.output_text.delta
      data: {"type":"response.output_text.delta","sequence_number":26,"item_id":"msg_03b372deeab9afef0168f237ee2e0881959296453175fdf7c1","output_index":0,"content_index":0,"delta":",","logprobs":[],"obfuscation":"TioHCr0j04ibL6K"}

      event: response.output_text.delta
      data: {"type":"response.output_text.delta","sequence_number":27,"item_id":"msg_03b372deeab9afef0168f237ee2e0881959296453175fdf7c1","output_index":0,"content_index":0,"delta":" feel","logprobs":[],"obfuscation":"KW1peE4VWsd"}

      event: response.output_text.delta
      data: {"type":"response.output_text.delta","sequence_number":28,"item_id":"msg_03b372deeab9afef0168f237ee2e0881959296453175fdf7c1","output_index":0,"content_index":0,"delta":" free","logprobs":[],"obfuscation":"es0c6QGaBJt"}

      event: response.output_text.delta
      data: {"type":"response.output_text.delta","sequence_number":29,"item_id":"msg_03b372deeab9afef0168f237ee2e0881959296453175fdf7c1","output_index":0,"content_index":0,"delta":" to","logprobs":[],"obfuscation":"aMZakoFmaTLnI"}

      event: response.output_text.delta
      data: {"type":"response.output_text.delta","sequence_number":30,"item_id":"msg_03b372deeab9afef0168f237ee2e0881959296453175fdf7c1","output_index":0,"content_index":0,"delta":" ask","logprobs":[],"obfuscation":"tcXPkxUY2xuP"}

      event: response.output_text.delta
      data: {"type":"response.output_text.delta","sequence_number":31,"item_id":"msg_03b372deeab9afef0168f237ee2e0881959296453175fdf7c1","output_index":0,"content_index":0,"delta":"!","logprobs":[],"obfuscation":"WwWEZBAyOpDhWvp"}

      event: response.output_text.done
      data: {"type":"response.output_text.done","sequence_number":32,"item_id":"msg_03b372deeab9afef0168f237ee2e0881959296453175fdf7c1","output_index":0,"content_index":0,"text":"The current temperature in Florence, Italy, is 40°C. If you need more details about the weather conditions, feel free to ask!","logprobs":[]}

      event: response.content_part.done
      data: {"type":"response.content_part.done","sequence_number":33,"item_id":"msg_03b372deeab9afef0168f237ee2e0881959296453175fdf7c1","output_index":0,"content_index":0,"part":{"type":"output_text","annotations":[],"logprobs":[],"text":"The current temperature in Florence, Italy, is 40°C. If you need more details about the weather conditions, feel free to ask!"}}

      event: response.output_item.done
      data: {"type":"response.output_item.done","sequence_number":34,"output_index":0,"item":{"id":"msg_03b372deeab9afef0168f237ee2e0881959296453175fdf7c1","type":"message","status":"completed","content":[{"type":"output_text","annotations":[],"logprobs":[],"text":"The current temperature in Florence, Italy, is 40°C. If you need more details about the weather conditions, feel free to ask!"}],"role":"assistant"}}

      event: response.completed
      data: {"type":"response.completed","sequence_number":35,"response":{"id":"resp_03b372deeab9afef0168f237edcaac8195a4aa3d164255738c","object":"response","created_at":1760704493,"status":"completed","background":false,"error":null,"incomplete_details":null,"instructions":null,"max_output_tokens":4000,"max_tool_calls":null,"model":"gpt-4o-mini-2024-07-18","output":[{"id":"msg_03b372deeab9afef0168f237ee2e0881959296453175fdf7c1","type":"message","status":"completed","content":[{"type":"output_text","annotations":[],"logprobs":[],"text":"The current temperature in Florence, Italy, is 40°C. If you need more details about the weather conditions, feel free to ask!"}],"role":"assistant"}],"parallel_tool_calls":true,"previous_response_id":null,"prompt_cache_key":null,"reasoning":{"effort":null,"summary":null},"safety_identifier":null,"service_tier":"default","store":false,"temperature":1.0,"text":{"format":{"type":"text"},"verbosity":"medium"},"tool_choice":"auto","tools":[{"type":"function","description":"Get weather information for a location","name":"weather","parameters":{"properties":{"location":{"description":"the city","type":"string"}},"required":["location"],"type":"object"},"strict":false}],"top_logprobs":0,"top_p":1.0,"truncation":"disabled","usage":{"input_tokens":83,"input_tokens_details":{"cached_tokens":0},"output_tokens":30,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":113},"user":null,"metadata":{}}}

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