---
version: 2
interactions:
- id: 0
  request:
    proto: HTTP/1.1
    proto_major: 1
    proto_minor: 1
    content_length: 909
    host: ""
    body: '{"max_output_tokens":4000,"store":false,"input":[{"content":[{"text":"Generate information about ''The Lord of the Rings'' book by J.R.R. Tolkien, including genres like fantasy and adventure, and its publication year (1954).","type":"input_text"}],"role":"user"}],"model":"gpt-5","text":{"format":{"name":"Book","schema":{"additionalProperties":false,"properties":{"author":{"additionalProperties":false,"properties":{"name":{"description":"Author''s name","type":"string"},"nationality":{"description":"Author''s nationality","type":"string"}},"required":["name","nationality"],"type":"object"},"genres":{"description":"List of genres","items":{"type":"string"},"type":"array"},"published_year":{"description":"Year the book was published","type":"integer"},"title":{"description":"The book title","type":"string"}},"required":["title","author","genres","published_year"],"type":"object"},"type":"json_schema"}}}'
    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_0847b706422580fd0169b319aac66c81a0856e18fe5f42e169",
        "object": "response",
        "created_at": 1773345194,
        "status": "completed",
        "background": false,
        "billing": {
          "payer": "developer"
        },
        "completed_at": 1773345207,
        "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_0847b706422580fd0169b319ab2dc081a08b7a1951374c3ca6",
            "type": "reasoning",
            "summary": []
          },
          {
            "id": "msg_0847b706422580fd0169b319b6d08881a0ab5a70c7759e3ebb",
            "type": "message",
            "status": "completed",
            "content": [
              {
                "type": "output_text",
                "annotations": [],
                "logprobs": [],
                "text": "{\"author\":{\"name\":\"J.R.R. Tolkien\",\"nationality\":\"British\"},\"genres\":[\"Fantasy\",\"Adventure\",\"High fantasy\",\"Epic\"],\"published_year\":1954,\"title\":\"The Lord of the Rings\"}"
              }
            ],
            "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": "json_schema",
            "description": null,
            "name": "Book",
            "schema": {
              "additionalProperties": false,
              "properties": {
                "author": {
                  "additionalProperties": false,
                  "properties": {
                    "name": {
                      "description": "Author's name",
                      "type": "string"
                    },
                    "nationality": {
                      "description": "Author's nationality",
                      "type": "string"
                    }
                  },
                  "required": [
                    "name",
                    "nationality"
                  ],
                  "type": "object"
                },
                "genres": {
                  "description": "List of genres",
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                "published_year": {
                  "description": "Year the book was published",
                  "type": "integer"
                },
                "title": {
                  "description": "The book title",
                  "type": "string"
                }
              },
              "required": [
                "title",
                "author",
                "genres",
                "published_year"
              ],
              "type": "object"
            },
            "strict": true
          },
          "verbosity": "medium"
        },
        "tool_choice": "auto",
        "tools": [],
        "top_logprobs": 0,
        "top_p": 1.0,
        "truncation": "disabled",
        "usage": {
          "input_tokens": 138,
          "input_tokens_details": {
            "cached_tokens": 0
          },
          "output_tokens": 664,
          "output_tokens_details": {
            "reasoning_tokens": 576
          },
          "total_tokens": 802
        },
        "user": null,
        "metadata": {}
      }
    headers:
      Content-Type:
      - application/json
    status: 200 OK
    code: 200
    duration: 12.793636458s
