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: 488
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":"o4-mini","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 - OpenAI/Go 2.3.0
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_063e69ebba23c6e60168f238176014819580347bfecdcc350e",
30 "object": "response",
31 "created_at": 1760704535,
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": "o4-mini-2025-04-16",
43 "output": [
44 {
45 "id": "rs_063e69ebba23c6e60168f2381811ac8195bb719fa83683583a",
46 "type": "reasoning",
47 "summary": []
48 },
49 {
50 "id": "fc_063e69ebba23c6e60168f238191b248195a04018e0d0c747bb",
51 "type": "function_call",
52 "status": "completed",
53 "arguments": "{\"location\":\"Florence, Italy\"}",
54 "call_id": "call_3gTKulKFbPDpkRO7k5I0ffH2",
55 "name": "weather"
56 }
57 ],
58 "parallel_tool_calls": true,
59 "previous_response_id": null,
60 "prompt_cache_key": null,
61 "reasoning": {
62 "effort": "medium",
63 "summary": null
64 },
65 "safety_identifier": null,
66 "service_tier": "default",
67 "store": false,
68 "temperature": 1.0,
69 "text": {
70 "format": {
71 "type": "text"
72 },
73 "verbosity": "medium"
74 },
75 "tool_choice": "auto",
76 "tools": [
77 {
78 "type": "function",
79 "description": "Get weather information for a location",
80 "name": "weather",
81 "parameters": {
82 "properties": {
83 "location": {
84 "description": "the city",
85 "type": "string"
86 }
87 },
88 "required": [
89 "location"
90 ],
91 "type": "object"
92 },
93 "strict": false
94 }
95 ],
96 "top_logprobs": 0,
97 "top_p": 1.0,
98 "truncation": "disabled",
99 "usage": {
100 "input_tokens": 60,
101 "input_tokens_details": {
102 "cached_tokens": 0
103 },
104 "output_tokens": 150,
105 "output_tokens_details": {
106 "reasoning_tokens": 128
107 },
108 "total_tokens": 210
109 },
110 "user": null,
111 "metadata": {}
112 }
113 headers:
114 Content-Type:
115 - application/json
116 status: 200 OK
117 code: 200
118 duration: 2.194950333s
119- id: 1
120 request:
121 proto: HTTP/1.1
122 proto_major: 1
123 proto_minor: 1
124 content_length: 723
125 host: ""
126 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_3gTKulKFbPDpkRO7k5I0ffH2","name":"weather","type":"function_call"},{"call_id":"call_3gTKulKFbPDpkRO7k5I0ffH2","output":"40 C","type":"function_call_output"}],"model":"o4-mini","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"}]}'
127 headers:
128 Accept:
129 - application/json
130 Content-Type:
131 - application/json
132 User-Agent:
133 - OpenAI/Go 2.3.0
134 url: https://api.openai.com/v1/responses
135 method: POST
136 response:
137 proto: HTTP/2.0
138 proto_major: 2
139 proto_minor: 0
140 content_length: -1
141 uncompressed: true
142 body: |-
143 {
144 "id": "resp_0bed20b0e88328550168f238198a5c81a0947a649d11fb2237",
145 "object": "response",
146 "created_at": 1760704537,
147 "status": "completed",
148 "background": false,
149 "billing": {
150 "payer": "developer"
151 },
152 "error": null,
153 "incomplete_details": null,
154 "instructions": null,
155 "max_output_tokens": 4000,
156 "max_tool_calls": null,
157 "model": "o4-mini-2025-04-16",
158 "output": [
159 {
160 "id": "msg_0bed20b0e88328550168f23819fad081a090a3ce83d605449e",
161 "type": "message",
162 "status": "completed",
163 "content": [
164 {
165 "type": "output_text",
166 "annotations": [],
167 "logprobs": [],
168 "text": "The current temperature in Florence, Italy is 40\u00b0C. It\u2019s quite hot! Make sure to stay hydrated, wear light clothing, and seek shade or air-conditioned places when possible. If you plan to be outdoors, consider going early in the morning or later in the evening to avoid peak heat."
169 }
170 ],
171 "role": "assistant"
172 }
173 ],
174 "parallel_tool_calls": true,
175 "previous_response_id": null,
176 "prompt_cache_key": null,
177 "reasoning": {
178 "effort": "medium",
179 "summary": null
180 },
181 "safety_identifier": null,
182 "service_tier": "default",
183 "store": false,
184 "temperature": 1.0,
185 "text": {
186 "format": {
187 "type": "text"
188 },
189 "verbosity": "medium"
190 },
191 "tool_choice": "auto",
192 "tools": [
193 {
194 "type": "function",
195 "description": "Get weather information for a location",
196 "name": "weather",
197 "parameters": {
198 "properties": {
199 "location": {
200 "description": "the city",
201 "type": "string"
202 }
203 },
204 "required": [
205 "location"
206 ],
207 "type": "object"
208 },
209 "strict": false
210 }
211 ],
212 "top_logprobs": 0,
213 "top_p": 1.0,
214 "truncation": "disabled",
215 "usage": {
216 "input_tokens": 91,
217 "input_tokens_details": {
218 "cached_tokens": 0
219 },
220 "output_tokens": 64,
221 "output_tokens_details": {
222 "reasoning_tokens": 0
223 },
224 "total_tokens": 155
225 },
226 "user": null,
227 "metadata": {}
228 }
229 headers:
230 Content-Type:
231 - application/json
232 status: 200 OK
233 code: 200
234 duration: 1.272683542s