---
version: 2
interactions:
- id: 0
  request:
    proto: HTTP/1.1
    proto_major: 1
    proto_minor: 1
    content_length: 498
    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","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:
      - Charm-Fantasy/0.12.2 (https://charm.land/fantasy)
    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","response":{"id":"resp_04ca22e2be25fcad0169b301565a408192ac42b6c97404f9c3","object":"response","created_at":1773338966,"status":"in_progress","background":false,"completed_at":null,"error":null,"frequency_penalty":0.0,"incomplete_details":null,"instructions":null,"max_output_tokens":4000,"max_tool_calls":null,"model":"gpt-4o-2024-08-06","output":[],"parallel_tool_calls":true,"presence_penalty":0.0,"previous_response_id":null,"prompt_cache_key":null,"prompt_cache_retention":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":{}},"sequence_number":0}

      event: response.in_progress
      data: {"type":"response.in_progress","response":{"id":"resp_04ca22e2be25fcad0169b301565a408192ac42b6c97404f9c3","object":"response","created_at":1773338966,"status":"in_progress","background":false,"completed_at":null,"error":null,"frequency_penalty":0.0,"incomplete_details":null,"instructions":null,"max_output_tokens":4000,"max_tool_calls":null,"model":"gpt-4o-2024-08-06","output":[],"parallel_tool_calls":true,"presence_penalty":0.0,"previous_response_id":null,"prompt_cache_key":null,"prompt_cache_retention":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":{}},"sequence_number":1}

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

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

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

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

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

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

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

      event: response.function_call_arguments.delta
      data: {"type":"response.function_call_arguments.delta","delta":" Italy","item_id":"fc_04ca22e2be25fcad0169b30157ebdc8192b56c02cce5635715","obfuscation":"717ARz1XUH","output_index":0,"sequence_number":9}

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

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

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

      event: response.completed
      data: {"type":"response.completed","response":{"id":"resp_04ca22e2be25fcad0169b301565a408192ac42b6c97404f9c3","object":"response","created_at":1773338966,"status":"completed","background":false,"completed_at":1773338968,"error":null,"frequency_penalty":0.0,"incomplete_details":null,"instructions":null,"max_output_tokens":4000,"max_tool_calls":null,"model":"gpt-4o-2024-08-06","output":[{"id":"fc_04ca22e2be25fcad0169b30157ebdc8192b56c02cce5635715","type":"function_call","status":"completed","arguments":"{\"location\":\"Florence, Italy\"}","call_id":"call_ucvCl5l598TOPnppSOm9008r","name":"weather"}],"parallel_tool_calls":true,"presence_penalty":0.0,"previous_response_id":null,"prompt_cache_key":null,"prompt_cache_retention":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":{}},"sequence_number":13}

    headers:
      Content-Type:
      - text/event-stream; charset=utf-8
    status: 200 OK
    code: 200
    duration: 1.031451917s
- id: 1
  request:
    proto: HTTP/1.1
    proto_major: 1
    proto_minor: 1
    content_length: 733
    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_ucvCl5l598TOPnppSOm9008r","name":"weather","type":"function_call"},{"call_id":"call_ucvCl5l598TOPnppSOm9008r","output":"40 C","type":"function_call_output"}],"model":"gpt-4o","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:
      - Charm-Fantasy/0.12.2 (https://charm.land/fantasy)
    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","response":{"id":"resp_0bda4590417bd1510169b301585a34819f9f99b79659a2484b","object":"response","created_at":1773338968,"status":"in_progress","background":false,"completed_at":null,"error":null,"frequency_penalty":0.0,"incomplete_details":null,"instructions":null,"max_output_tokens":4000,"max_tool_calls":null,"model":"gpt-4o-2024-08-06","output":[],"parallel_tool_calls":true,"presence_penalty":0.0,"previous_response_id":null,"prompt_cache_key":null,"prompt_cache_retention":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":{}},"sequence_number":0}

      event: response.in_progress
      data: {"type":"response.in_progress","response":{"id":"resp_0bda4590417bd1510169b301585a34819f9f99b79659a2484b","object":"response","created_at":1773338968,"status":"in_progress","background":false,"completed_at":null,"error":null,"frequency_penalty":0.0,"incomplete_details":null,"instructions":null,"max_output_tokens":4000,"max_tool_calls":null,"model":"gpt-4o-2024-08-06","output":[],"parallel_tool_calls":true,"presence_penalty":0.0,"previous_response_id":null,"prompt_cache_key":null,"prompt_cache_retention":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":{}},"sequence_number":1}

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

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

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

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

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

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

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

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

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

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

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

      event: response.output_text.delta
      data: {"type":"response.output_text.delta","content_index":0,"delta":"40","item_id":"msg_0bda4590417bd1510169b30158beb0819f81fd20565650adb9","logprobs":[],"obfuscation":"YabRyTRDUYfx7d","output_index":0,"sequence_number":13}

      event: response.output_text.delta
      data: {"type":"response.output_text.delta","content_index":0,"delta":"°C","item_id":"msg_0bda4590417bd1510169b30158beb0819f81fd20565650adb9","logprobs":[],"obfuscation":"gNlqwvjlaBVFK6","output_index":0,"sequence_number":14}

      event: response.output_text.delta
      data: {"type":"response.output_text.delta","content_index":0,"delta":".","item_id":"msg_0bda4590417bd1510169b30158beb0819f81fd20565650adb9","logprobs":[],"obfuscation":"GDmzWwlC2CZkvF6","output_index":0,"sequence_number":15}

      event: response.output_text.done
      data: {"type":"response.output_text.done","content_index":0,"item_id":"msg_0bda4590417bd1510169b30158beb0819f81fd20565650adb9","logprobs":[],"output_index":0,"sequence_number":16,"text":"The current temperature in Florence, Italy is 40°C."}

      event: response.content_part.done
      data: {"type":"response.content_part.done","content_index":0,"item_id":"msg_0bda4590417bd1510169b30158beb0819f81fd20565650adb9","output_index":0,"part":{"type":"output_text","annotations":[],"logprobs":[],"text":"The current temperature in Florence, Italy is 40°C."},"sequence_number":17}

      event: response.output_item.done
      data: {"type":"response.output_item.done","item":{"id":"msg_0bda4590417bd1510169b30158beb0819f81fd20565650adb9","type":"message","status":"completed","content":[{"type":"output_text","annotations":[],"logprobs":[],"text":"The current temperature in Florence, Italy is 40°C."}],"role":"assistant"},"output_index":0,"sequence_number":18}

      event: response.completed
      data: {"type":"response.completed","response":{"id":"resp_0bda4590417bd1510169b301585a34819f9f99b79659a2484b","object":"response","created_at":1773338968,"status":"completed","background":false,"completed_at":1773338968,"error":null,"frequency_penalty":0.0,"incomplete_details":null,"instructions":null,"max_output_tokens":4000,"max_tool_calls":null,"model":"gpt-4o-2024-08-06","output":[{"id":"msg_0bda4590417bd1510169b30158beb0819f81fd20565650adb9","type":"message","status":"completed","content":[{"type":"output_text","annotations":[],"logprobs":[],"text":"The current temperature in Florence, Italy is 40°C."}],"role":"assistant"}],"parallel_tool_calls":true,"presence_penalty":0.0,"previous_response_id":null,"prompt_cache_key":null,"prompt_cache_retention":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":14,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":97},"user":null,"metadata":{}},"sequence_number":19}

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