---
version: 2
interactions:
- id: 0
  request:
    proto: HTTP/1.1
    proto_major: 1
    proto_minor: 1
    content_length: 489
    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"}]}'
    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_0589cd5cec6943ec0169b3191fa6288190ba41bc84bbb13455",
        "object": "response",
        "created_at": 1773345055,
        "status": "completed",
        "background": false,
        "billing": {
          "payer": "developer"
        },
        "completed_at": 1773345056,
        "error": null,
        "frequency_penalty": 0.0,
        "incomplete_details": null,
        "instructions": null,
        "max_output_tokens": 4000,
        "max_tool_calls": null,
        "model": "gpt-4o-mini-2024-07-18",
        "output": [
          {
            "id": "fc_0589cd5cec6943ec0169b3192048b48190b7a029b212da3cf0",
            "type": "function_call",
            "status": "completed",
            "arguments": "{\"location\":\"Florence, Italy\"}",
            "call_id": "call_fvLU8DzDYjJa5V2k9Nsvq3ls",
            "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": {}
      }
    headers:
      Content-Type:
      - application/json
    status: 200 OK
    code: 200
    duration: 2.063641541s
- id: 1
  request:
    proto: HTTP/1.1
    proto_major: 1
    proto_minor: 1
    content_length: 724
    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_fvLU8DzDYjJa5V2k9Nsvq3ls","name":"weather","type":"function_call"},{"call_id":"call_fvLU8DzDYjJa5V2k9Nsvq3ls","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"}]}'
    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_015a0cae6d9789840169b319218ff881a281cc1f960f86416b",
        "object": "response",
        "created_at": 1773345057,
        "status": "completed",
        "background": false,
        "billing": {
          "payer": "developer"
        },
        "completed_at": 1773345058,
        "error": null,
        "frequency_penalty": 0.0,
        "incomplete_details": null,
        "instructions": null,
        "max_output_tokens": 4000,
        "max_tool_calls": null,
        "model": "gpt-4o-mini-2024-07-18",
        "output": [
          {
            "id": "msg_015a0cae6d9789840169b31922616c81a28c661e338d69de27",
            "type": "message",
            "status": "completed",
            "content": [
              {
                "type": "output_text",
                "annotations": [],
                "logprobs": [],
                "text": "The current temperature in Florence, Italy, is 40\u00b0C. If you need more details about the weather, feel free to ask!"
              }
            ],
            "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": 29,
          "output_tokens_details": {
            "reasoning_tokens": 0
          },
          "total_tokens": 112
        },
        "user": null,
        "metadata": {}
      }
    headers:
      Content-Type:
      - application/json
    status: 200 OK
    code: 200
    duration: 2.210815041s
