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: 486
10 host: ""
11 body: '{"max_output_tokens":4000,"store":false,"input":[{"content":"You are a helpful assistant","role":"developer"},{"content":[{"text":"What''s the weather in Florence,Italy?","type":"input_text"}],"role":"user"}],"model":"gpt-5","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"}]}'
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_07acbe0aaedca68d0169b319365d8481969b62465aff0f7bc8",
30 "object": "response",
31 "created_at": 1773345078,
32 "status": "completed",
33 "background": false,
34 "billing": {
35 "payer": "developer"
36 },
37 "completed_at": 1773345080,
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_07acbe0aaedca68d0169b31936b8c4819680474c33b1cd2067",
48 "type": "reasoning",
49 "summary": []
50 },
51 {
52 "id": "fc_07acbe0aaedca68d0169b31937d54081968957c8161482d509",
53 "type": "function_call",
54 "status": "completed",
55 "arguments": "{\"location\":\"Florence, Italy\"}",
56 "call_id": "call_d2Jw9Yi3xW2waCu4FfmMPBEn",
57 "name": "weather"
58 }
59 ],
60 "parallel_tool_calls": true,
61 "presence_penalty": 0.0,
62 "previous_response_id": null,
63 "prompt_cache_key": null,
64 "prompt_cache_retention": null,
65 "reasoning": {
66 "effort": "medium",
67 "summary": null
68 },
69 "safety_identifier": null,
70 "service_tier": "default",
71 "store": false,
72 "temperature": 1.0,
73 "text": {
74 "format": {
75 "type": "text"
76 },
77 "verbosity": "medium"
78 },
79 "tool_choice": "auto",
80 "tools": [
81 {
82 "type": "function",
83 "description": "Get weather information for a location",
84 "name": "weather",
85 "parameters": {
86 "properties": {
87 "location": {
88 "description": "the city",
89 "type": "string"
90 }
91 },
92 "required": [
93 "location"
94 ],
95 "type": "object"
96 },
97 "strict": false
98 }
99 ],
100 "top_logprobs": 0,
101 "top_p": 1.0,
102 "truncation": "disabled",
103 "usage": {
104 "input_tokens": 63,
105 "input_tokens_details": {
106 "cached_tokens": 0
107 },
108 "output_tokens": 93,
109 "output_tokens_details": {
110 "reasoning_tokens": 64
111 },
112 "total_tokens": 156
113 },
114 "user": null,
115 "metadata": {}
116 }
117 headers:
118 Content-Type:
119 - application/json
120 status: 200 OK
121 code: 200
122 duration: 2.367363417s
123- id: 1
124 request:
125 proto: HTTP/1.1
126 proto_major: 1
127 proto_minor: 1
128 content_length: 721
129 host: ""
130 body: '{"max_output_tokens":4000,"store":false,"input":[{"content":"You are a helpful assistant","role":"developer"},{"content":[{"text":"What''s the weather in Florence,Italy?","type":"input_text"}],"role":"user"},{"arguments":"\"{\\\"location\\\":\\\"Florence, Italy\\\"}\"","call_id":"call_d2Jw9Yi3xW2waCu4FfmMPBEn","name":"weather","type":"function_call"},{"call_id":"call_d2Jw9Yi3xW2waCu4FfmMPBEn","output":"40 C","type":"function_call_output"}],"model":"gpt-5","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"}]}'
131 headers:
132 Accept:
133 - application/json
134 Content-Type:
135 - application/json
136 User-Agent:
137 - Charm-Fantasy/0.12.2 (https://charm.land/fantasy)
138 url: https://api.openai.com/v1/responses
139 method: POST
140 response:
141 proto: HTTP/2.0
142 proto_major: 2
143 proto_minor: 0
144 content_length: -1
145 uncompressed: true
146 body: |-
147 {
148 "id": "resp_03d61eab4560a2c00169b3193990088194a38da4e4ddb306ec",
149 "object": "response",
150 "created_at": 1773345081,
151 "status": "completed",
152 "background": false,
153 "billing": {
154 "payer": "developer"
155 },
156 "completed_at": 1773345090,
157 "error": null,
158 "frequency_penalty": 0.0,
159 "incomplete_details": null,
160 "instructions": null,
161 "max_output_tokens": 4000,
162 "max_tool_calls": null,
163 "model": "gpt-5-2025-08-07",
164 "output": [
165 {
166 "id": "rs_03d61eab4560a2c00169b3193a33388194b4ac06cdbd59dbea",
167 "type": "reasoning",
168 "summary": []
169 },
170 {
171 "id": "msg_03d61eab4560a2c00169b31941cad881948f488c681492f5d6",
172 "type": "message",
173 "status": "completed",
174 "content": [
175 {
176 "type": "output_text",
177 "annotations": [],
178 "logprobs": [],
179 "text": "It\u2019s currently about 40\u00b0C (104\u00b0F) in Florence, Italy."
180 }
181 ],
182 "role": "assistant"
183 }
184 ],
185 "parallel_tool_calls": true,
186 "presence_penalty": 0.0,
187 "previous_response_id": null,
188 "prompt_cache_key": null,
189 "prompt_cache_retention": null,
190 "reasoning": {
191 "effort": "medium",
192 "summary": null
193 },
194 "safety_identifier": null,
195 "service_tier": "default",
196 "store": false,
197 "temperature": 1.0,
198 "text": {
199 "format": {
200 "type": "text"
201 },
202 "verbosity": "medium"
203 },
204 "tool_choice": "auto",
205 "tools": [
206 {
207 "type": "function",
208 "description": "Get weather information for a location",
209 "name": "weather",
210 "parameters": {
211 "properties": {
212 "location": {
213 "description": "the city",
214 "type": "string"
215 }
216 },
217 "required": [
218 "location"
219 ],
220 "type": "object"
221 },
222 "strict": false
223 }
224 ],
225 "top_logprobs": 0,
226 "top_p": 1.0,
227 "truncation": "disabled",
228 "usage": {
229 "input_tokens": 94,
230 "input_tokens_details": {
231 "cached_tokens": 0
232 },
233 "output_tokens": 219,
234 "output_tokens_details": {
235 "reasoning_tokens": 192
236 },
237 "total_tokens": 313
238 },
239 "user": null,
240 "metadata": {}
241 }
242 headers:
243 Content-Type:
244 - application/json
245 status: 200 OK
246 code: 200
247 duration: 10.431176s