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 - OpenAI/Go 2.7.1
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_0d7efb113168df8301690fb603c0f881a1a5ecec45f910e875",
30 "object": "response",
31 "created_at": 1762637315,
32 "status": "completed",
33 "background": false,
34 "billing": {
35 "payer": "developer"
36 },
37 "error": null,
38 "incomplete_details": null,
39 "instructions": null,
40 "max_output_tokens": 4000,
41 "max_tool_calls": null,
42 "model": "gpt-5-2025-08-07",
43 "output": [
44 {
45 "id": "rs_0d7efb113168df8301690fb6041bb881a198a6e417f00bba70",
46 "type": "reasoning",
47 "summary": []
48 },
49 {
50 "id": "msg_0d7efb113168df8301690fb610bf2881a1be28a4885c1876ac",
51 "type": "message",
52 "status": "completed",
53 "content": [
54 {
55 "type": "output_text",
56 "annotations": [],
57 "logprobs": [],
58 "text": "{\"author\":{\"name\":\"J.R.R. Tolkien\",\"nationality\":\"British\"},\"genres\":[\"Fantasy\",\"Adventure\",\"Epic fantasy\",\"High fantasy\"],\"published_year\":1954,\"title\":\"The Lord of the Rings\"}"
59 }
60 ],
61 "role": "assistant"
62 }
63 ],
64 "parallel_tool_calls": true,
65 "previous_response_id": null,
66 "prompt_cache_key": null,
67 "prompt_cache_retention": null,
68 "reasoning": {
69 "effort": "medium",
70 "summary": null
71 },
72 "safety_identifier": null,
73 "service_tier": "default",
74 "store": false,
75 "temperature": 1.0,
76 "text": {
77 "format": {
78 "type": "json_schema",
79 "description": null,
80 "name": "Book",
81 "schema": {
82 "additionalProperties": false,
83 "properties": {
84 "author": {
85 "additionalProperties": false,
86 "properties": {
87 "name": {
88 "description": "Author's name",
89 "type": "string"
90 },
91 "nationality": {
92 "description": "Author's nationality",
93 "type": "string"
94 }
95 },
96 "required": [
97 "name",
98 "nationality"
99 ],
100 "type": "object"
101 },
102 "genres": {
103 "description": "List of genres",
104 "items": {
105 "type": "string"
106 },
107 "type": "array"
108 },
109 "published_year": {
110 "description": "Year the book was published",
111 "type": "integer"
112 },
113 "title": {
114 "description": "The book title",
115 "type": "string"
116 }
117 },
118 "required": [
119 "title",
120 "author",
121 "genres",
122 "published_year"
123 ],
124 "type": "object"
125 },
126 "strict": true
127 },
128 "verbosity": "medium"
129 },
130 "tool_choice": "auto",
131 "tools": [],
132 "top_logprobs": 0,
133 "top_p": 1.0,
134 "truncation": "disabled",
135 "usage": {
136 "input_tokens": 138,
137 "input_tokens_details": {
138 "cached_tokens": 0
139 },
140 "output_tokens": 885,
141 "output_tokens_details": {
142 "reasoning_tokens": 832
143 },
144 "total_tokens": 1023
145 },
146 "user": null,
147 "metadata": {}
148 }
149 headers:
150 Content-Type:
151 - application/json
152 status: 200 OK
153 code: 200
154 duration: 13.745367625s