complex_object.yaml

  1---
  2version: 2
  3interactions:
  4- id: 0
  5  request:
  6    proto: HTTP/1.1
  7    proto_major: 1
  8    proto_minor: 1
  9    content_length: 909
 10    host: ""
 11    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"}}}'
 12    headers:
 13      Accept:
 14      - application/json
 15      Content-Type:
 16      - application/json
 17      User-Agent:
 18      - Charm-Fantasy/0.12.2 (https://charm.land/fantasy)
 19    url: https://api.openai.com/v1/responses
 20    method: POST
 21  response:
 22    proto: HTTP/2.0
 23    proto_major: 2
 24    proto_minor: 0
 25    content_length: -1
 26    uncompressed: true
 27    body: |-
 28      {
 29        "id": "resp_0847b706422580fd0169b319aac66c81a0856e18fe5f42e169",
 30        "object": "response",
 31        "created_at": 1773345194,
 32        "status": "completed",
 33        "background": false,
 34        "billing": {
 35          "payer": "developer"
 36        },
 37        "completed_at": 1773345207,
 38        "error": null,
 39        "frequency_penalty": 0.0,
 40        "incomplete_details": null,
 41        "instructions": null,
 42        "max_output_tokens": 4000,
 43        "max_tool_calls": null,
 44        "model": "gpt-5-2025-08-07",
 45        "output": [
 46          {
 47            "id": "rs_0847b706422580fd0169b319ab2dc081a08b7a1951374c3ca6",
 48            "type": "reasoning",
 49            "summary": []
 50          },
 51          {
 52            "id": "msg_0847b706422580fd0169b319b6d08881a0ab5a70c7759e3ebb",
 53            "type": "message",
 54            "status": "completed",
 55            "content": [
 56              {
 57                "type": "output_text",
 58                "annotations": [],
 59                "logprobs": [],
 60                "text": "{\"author\":{\"name\":\"J.R.R. Tolkien\",\"nationality\":\"British\"},\"genres\":[\"Fantasy\",\"Adventure\",\"High fantasy\",\"Epic\"],\"published_year\":1954,\"title\":\"The Lord of the Rings\"}"
 61              }
 62            ],
 63            "role": "assistant"
 64          }
 65        ],
 66        "parallel_tool_calls": true,
 67        "presence_penalty": 0.0,
 68        "previous_response_id": null,
 69        "prompt_cache_key": null,
 70        "prompt_cache_retention": null,
 71        "reasoning": {
 72          "effort": "medium",
 73          "summary": null
 74        },
 75        "safety_identifier": null,
 76        "service_tier": "default",
 77        "store": false,
 78        "temperature": 1.0,
 79        "text": {
 80          "format": {
 81            "type": "json_schema",
 82            "description": null,
 83            "name": "Book",
 84            "schema": {
 85              "additionalProperties": false,
 86              "properties": {
 87                "author": {
 88                  "additionalProperties": false,
 89                  "properties": {
 90                    "name": {
 91                      "description": "Author's name",
 92                      "type": "string"
 93                    },
 94                    "nationality": {
 95                      "description": "Author's nationality",
 96                      "type": "string"
 97                    }
 98                  },
 99                  "required": [
100                    "name",
101                    "nationality"
102                  ],
103                  "type": "object"
104                },
105                "genres": {
106                  "description": "List of genres",
107                  "items": {
108                    "type": "string"
109                  },
110                  "type": "array"
111                },
112                "published_year": {
113                  "description": "Year the book was published",
114                  "type": "integer"
115                },
116                "title": {
117                  "description": "The book title",
118                  "type": "string"
119                }
120              },
121              "required": [
122                "title",
123                "author",
124                "genres",
125                "published_year"
126              ],
127              "type": "object"
128            },
129            "strict": true
130          },
131          "verbosity": "medium"
132        },
133        "tool_choice": "auto",
134        "tools": [],
135        "top_logprobs": 0,
136        "top_p": 1.0,
137        "truncation": "disabled",
138        "usage": {
139          "input_tokens": 138,
140          "input_tokens_details": {
141            "cached_tokens": 0
142          },
143          "output_tokens": 664,
144          "output_tokens_details": {
145            "reasoning_tokens": 576
146          },
147          "total_tokens": 802
148        },
149        "user": null,
150        "metadata": {}
151      }
152    headers:
153      Content-Type:
154      - application/json
155    status: 200 OK
156    code: 200
157    duration: 12.793636458s