Debian Codegraph @

tests/lib/tools/__inline_snapshot__/test_runners/TestSyncRunTools/e075a6c2-de4d-4125-9709-f0e178058190.json

raw
1 [
2 {
3 "request": {
4 "method": "POST",
5 "url": "https://api.anthropic.com/v1/messages?beta=true",
6 "headers": {
7 "host": "api.anthropic.com",
8 "accept-encoding": "gzip, deflate",
9 "connection": "keep-alive",
10 "x-stainless-timeout": "600",
11 "accept": "application/json",
12 "content-type": "application/json",
13 "user-agent": "Anthropic/Python 0.82.0",
14 "x-stainless-lang": "python",
15 "x-stainless-package-version": "0.82.0",
16 "x-stainless-os": "MacOS",
17 "x-stainless-arch": "arm64",
18 "x-stainless-runtime": "CPython",
19 "x-stainless-runtime-version": "3.9.18",
20 "x-stainless-async": "false",
21 "anthropic-version": "2023-06-01",
22 "x-stainless-helper": "BetaToolRunner",
23 "anthropic-beta": "structured-outputs-2025-12-15",
24 "x-stainless-retry-count": "0",
25 "x-stainless-read-timeout": "600",
26 "content-length": "779"
27 },
28 "body": {
29 "max_tokens": 1024,
30 "messages": [
31 {
32 "role": "user",
33 "content": "What's the weather in San Francisco, New York, London, Tokyo and Paris?If you need to use tools, call only one tool at a time. Wait for the tool'sresponse before making another call. Never call multiple tools at once."
34 }
35 ],
36 "model": "claude-haiku-4-5",
37 "tools": [
38 {
39 "name": "get_weather",
40 "description": "Lookup the weather for a given city in either celsius or fahrenheit",
41 "input_schema": {
42 "additionalProperties": false,
43 "properties": {
44 "location": {
45 "description": "The city and state, e.g. San Francisco, CA",
46 "title": "Location",
47 "type": "string"
48 },
49 "units": {
50 "description": "Unit for the output, either 'c' for celsius or 'f' for fahrenheit",
51 "enum": [
52 "c",
53 "f"
54 ],
55 "title": "Units",
56 "type": "string"
57 }
58 },
59 "required": [
60 "location",
61 "units"
62 ],
63 "type": "object"
64 }
65 }
66 ]
67 }
68 },
69 "response": {
70 "status_code": 200,
71 "headers": {
72 "content-type": "application/json",
73 "connection": "keep-alive",
74 "strict-transport-security": "max-age=31536000; includeSubDomains; preload",
75 "server": "cloudflare",
76 "cf-cache-status": "DYNAMIC",
77 "x-robots-tag": "none",
78 "content-security-policy": "default-src 'none'; frame-ancestors 'none'"
79 },
80 "body": {
81 "model": "claude-haiku-4-5-20251001",
82 "id": "msg_01UBZt9MX63Tk3v1gKvgxk3A",
83 "type": "message",
84 "role": "assistant",
85 "content": [
86 {
87 "type": "text",
88 "text": "I'll get the weather for each of those cities. Let me start by checking San Francisco."
89 },
90 {
91 "type": "tool_use",
92 "id": "toolu_01LRanfq6DmHn1yDTB4d1SAh",
93 "name": "get_weather",
94 "input": {
95 "location": "San Francisco, CA",
96 "units": "f"
97 },
98 "caller": {
99 "type": "direct"
100 }
101 }
102 ],
103 "stop_reason": "tool_use",
104 "stop_sequence": null,
105 "usage": {
106 "input_tokens": 701,
107 "cache_creation_input_tokens": 0,
108 "cache_read_input_tokens": 0,
109 "cache_creation": {
110 "ephemeral_5m_input_tokens": 0,
111 "ephemeral_1h_input_tokens": 0
112 },
113 "output_tokens": 93,
114 "service_tier": "standard",
115 "inference_geo": "not_available"
116 }
117 }
118 }
119 },
120 {
121 "request": {
122 "method": "POST",
123 "url": "https://api.anthropic.com/v1/messages?beta=true",
124 "headers": {
125 "host": "api.anthropic.com",
126 "accept-encoding": "gzip, deflate",
127 "connection": "keep-alive",
128 "x-stainless-timeout": "600",
129 "accept": "application/json",
130 "content-type": "application/json",
131 "user-agent": "Anthropic/Python 0.82.0",
132 "x-stainless-lang": "python",
133 "x-stainless-package-version": "0.82.0",
134 "x-stainless-os": "MacOS",
135 "x-stainless-arch": "arm64",
136 "x-stainless-runtime": "CPython",
137 "x-stainless-runtime-version": "3.9.18",
138 "x-stainless-async": "false",
139 "anthropic-version": "2023-06-01",
140 "x-stainless-helper": "BetaToolRunner",
141 "anthropic-beta": "structured-outputs-2025-12-15",
142 "x-stainless-retry-count": "0",
143 "x-stainless-read-timeout": "600",
144 "content-length": "1290"
145 },
146 "body": {
147 "max_tokens": 1024,
148 "messages": [
149 {
150 "role": "user",
151 "content": "What's the weather in San Francisco, New York, London, Tokyo and Paris?If you need to use tools, call only one tool at a time. Wait for the tool'sresponse before making another call. Never call multiple tools at once."
152 },
153 {
154 "role": "assistant",
155 "content": [
156 {
157 "text": "I'll get the weather for each of those cities. Let me start by checking San Francisco.",
158 "type": "text"
159 },
160 {
161 "id": "toolu_01LRanfq6DmHn1yDTB4d1SAh",
162 "input": {
163 "location": "San Francisco, CA",
164 "units": "f"
165 },
166 "name": "get_weather",
167 "type": "tool_use",
168 "caller": {
169 "type": "direct"
170 }
171 }
172 ]
173 },
174 {
175 "role": "user",
176 "content": [
177 {
178 "type": "tool_result",
179 "tool_use_id": "toolu_01LRanfq6DmHn1yDTB4d1SAh",
180 "content": "{\"location\": \"San Francisco, CA\", \"temperature\": \"68\\u00b0F\", \"condition\": \"Sunny\"}"
181 }
182 ]
183 }
184 ],
185 "model": "claude-haiku-4-5",
186 "tools": [
187 {
188 "name": "get_weather",
189 "description": "Lookup the weather for a given city in either celsius or fahrenheit",
190 "input_schema": {
191 "additionalProperties": false,
192 "properties": {
193 "location": {
194 "description": "The city and state, e.g. San Francisco, CA",
195 "title": "Location",
196 "type": "string"
197 },
198 "units": {
199 "description": "Unit for the output, either 'c' for celsius or 'f' for fahrenheit",
200 "enum": [
201 "c",
202 "f"
203 ],
204 "title": "Units",
205 "type": "string"
206 }
207 },
208 "required": [
209 "location",
210 "units"
211 ],
212 "type": "object"
213 }
214 }
215 ]
216 }
217 },
218 "response": {
219 "status_code": 200,
220 "headers": {
221 "content-type": "application/json",
222 "connection": "keep-alive",
223 "x-robots-tag": "none",
224 "strict-transport-security": "max-age=31536000; includeSubDomains; preload",
225 "server": "cloudflare",
226 "content-security-policy": "default-src 'none'; frame-ancestors 'none'",
227 "cf-cache-status": "DYNAMIC"
228 },
229 "body": {
230 "model": "claude-haiku-4-5-20251001",
231 "id": "msg_01BAceCxj9VxXR9GhBedwTm2",
232 "type": "message",
233 "role": "assistant",
234 "content": [
235 {
236 "type": "text",
237 "text": "Now let me check New York."
238 },
239 {
240 "type": "tool_use",
241 "id": "toolu_01RWdcDdE8NAFDgZ8F9Xk2K7",
242 "name": "get_weather",
243 "input": {
244 "location": "New York, NY",
245 "units": "f"
246 },
247 "caller": {
248 "type": "direct"
249 }
250 }
251 ],
252 "stop_reason": "tool_use",
253 "stop_sequence": null,
254 "usage": {
255 "input_tokens": 834,
256 "cache_creation_input_tokens": 0,
257 "cache_read_input_tokens": 0,
258 "cache_creation": {
259 "ephemeral_5m_input_tokens": 0,
260 "ephemeral_1h_input_tokens": 0
261 },
262 "output_tokens": 81,
263 "service_tier": "standard",
264 "inference_geo": "not_available"
265 }
266 }
267 }
268 }
269 ]