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