---
version: 2
interactions:
- id: 0
  request:
    proto: HTTP/1.1
    proto_major: 1
    proto_minor: 1
    content_length: 484
    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"}]}'
    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
    uncompressed: true
    body: |-
      {
        "id": "resp_05f862a82ed768dc0168f237df9eac81a09b83a647320323a6",
        "object": "response",
        "created_at": 1760704479,
        "status": "completed",
        "background": false,
        "billing": {
          "payer": "developer"
        },
        "error": null,
        "incomplete_details": null,
        "instructions": null,
        "max_output_tokens": 4000,
        "max_tool_calls": null,
        "model": "gpt-4o-2024-08-06",
        "output": [
          {
            "id": "fc_05f862a82ed768dc0168f237e0123c81a090b0b89afe5c9f72",
            "type": "function_call",
            "status": "completed",
            "arguments": "{\"location\":\"Florence, Italy\"}",
            "call_id": "call_jPXpCiiHqnkbYK8RbeLZfkLR",
            "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:
      - application/json
    status: 200 OK
    code: 200
    duration: 777.148541ms
- id: 1
  request:
    proto: HTTP/1.1
    proto_major: 1
    proto_minor: 1
    content_length: 719
    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_jPXpCiiHqnkbYK8RbeLZfkLR","name":"weather","type":"function_call"},{"call_id":"call_jPXpCiiHqnkbYK8RbeLZfkLR","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"}]}'
    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
    uncompressed: true
    body: |-
      {
        "id": "resp_0122dddaaa9675250168f237e06e9481948f2a870e82765495",
        "object": "response",
        "created_at": 1760704480,
        "status": "completed",
        "background": false,
        "billing": {
          "payer": "developer"
        },
        "error": null,
        "incomplete_details": null,
        "instructions": null,
        "max_output_tokens": 4000,
        "max_tool_calls": null,
        "model": "gpt-4o-2024-08-06",
        "output": [
          {
            "id": "msg_0122dddaaa9675250168f237e16ed481948bdad89376f1431a",
            "type": "message",
            "status": "completed",
            "content": [
              {
                "type": "output_text",
                "annotations": [],
                "logprobs": [],
                "text": "The current temperature in Florence, Italy is 40\u00b0C. Stay cool and hydrated!"
              }
            ],
            "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": 19,
          "output_tokens_details": {
            "reasoning_tokens": 0
          },
          "total_tokens": 102
        },
        "user": null,
        "metadata": {}
      }
    headers:
      Content-Type:
      - application/json
    status: 200 OK
    code: 200
    duration: 1.512680875s
