---
version: 2
interactions:
- id: 0
  request:
    proto: HTTP/1.1
    proto_major: 1
    proto_minor: 1
    content_length: 486
    host: ""
    body: '{"max_output_tokens":4000,"store":false,"input":[{"content":"You are a helpful assistant","role":"developer"},{"content":[{"text":"What''s the weather in Florence,Italy?","type":"input_text"}],"role":"user"}],"model":"gpt-5","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"}]}'
    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
    uncompressed: true
    body: |-
      {
        "id": "resp_07acbe0aaedca68d0169b319365d8481969b62465aff0f7bc8",
        "object": "response",
        "created_at": 1773345078,
        "status": "completed",
        "background": false,
        "billing": {
          "payer": "developer"
        },
        "completed_at": 1773345080,
        "error": null,
        "frequency_penalty": 0.0,
        "incomplete_details": null,
        "instructions": null,
        "max_output_tokens": 4000,
        "max_tool_calls": null,
        "model": "gpt-5-2025-08-07",
        "output": [
          {
            "id": "rs_07acbe0aaedca68d0169b31936b8c4819680474c33b1cd2067",
            "type": "reasoning",
            "summary": []
          },
          {
            "id": "fc_07acbe0aaedca68d0169b31937d54081968957c8161482d509",
            "type": "function_call",
            "status": "completed",
            "arguments": "{\"location\":\"Florence, Italy\"}",
            "call_id": "call_d2Jw9Yi3xW2waCu4FfmMPBEn",
            "name": "weather"
          }
        ],
        "parallel_tool_calls": true,
        "presence_penalty": 0.0,
        "previous_response_id": null,
        "prompt_cache_key": null,
        "prompt_cache_retention": null,
        "reasoning": {
          "effort": "medium",
          "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": 63,
          "input_tokens_details": {
            "cached_tokens": 0
          },
          "output_tokens": 93,
          "output_tokens_details": {
            "reasoning_tokens": 64
          },
          "total_tokens": 156
        },
        "user": null,
        "metadata": {}
      }
    headers:
      Content-Type:
      - application/json
    status: 200 OK
    code: 200
    duration: 2.367363417s
- id: 1
  request:
    proto: HTTP/1.1
    proto_major: 1
    proto_minor: 1
    content_length: 721
    host: ""
    body: '{"max_output_tokens":4000,"store":false,"input":[{"content":"You are a helpful assistant","role":"developer"},{"content":[{"text":"What''s the weather in Florence,Italy?","type":"input_text"}],"role":"user"},{"arguments":"\"{\\\"location\\\":\\\"Florence, Italy\\\"}\"","call_id":"call_d2Jw9Yi3xW2waCu4FfmMPBEn","name":"weather","type":"function_call"},{"call_id":"call_d2Jw9Yi3xW2waCu4FfmMPBEn","output":"40 C","type":"function_call_output"}],"model":"gpt-5","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"}]}'
    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
    uncompressed: true
    body: |-
      {
        "id": "resp_03d61eab4560a2c00169b3193990088194a38da4e4ddb306ec",
        "object": "response",
        "created_at": 1773345081,
        "status": "completed",
        "background": false,
        "billing": {
          "payer": "developer"
        },
        "completed_at": 1773345090,
        "error": null,
        "frequency_penalty": 0.0,
        "incomplete_details": null,
        "instructions": null,
        "max_output_tokens": 4000,
        "max_tool_calls": null,
        "model": "gpt-5-2025-08-07",
        "output": [
          {
            "id": "rs_03d61eab4560a2c00169b3193a33388194b4ac06cdbd59dbea",
            "type": "reasoning",
            "summary": []
          },
          {
            "id": "msg_03d61eab4560a2c00169b31941cad881948f488c681492f5d6",
            "type": "message",
            "status": "completed",
            "content": [
              {
                "type": "output_text",
                "annotations": [],
                "logprobs": [],
                "text": "It\u2019s currently about 40\u00b0C (104\u00b0F) in Florence, Italy."
              }
            ],
            "role": "assistant"
          }
        ],
        "parallel_tool_calls": true,
        "presence_penalty": 0.0,
        "previous_response_id": null,
        "prompt_cache_key": null,
        "prompt_cache_retention": null,
        "reasoning": {
          "effort": "medium",
          "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": 94,
          "input_tokens_details": {
            "cached_tokens": 0
          },
          "output_tokens": 219,
          "output_tokens_details": {
            "reasoning_tokens": 192
          },
          "total_tokens": 313
        },
        "user": null,
        "metadata": {}
      }
    headers:
      Content-Type:
      - application/json
    status: 200 OK
    code: 200
    duration: 10.431176s
