Debian Codegraph @

tests/lib/tools/__inline_snapshot__/test_runners/TestSyncRunTools/a8ac789b-f856-48cd-9ff3-d5f36799e432.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": "390"
27 },
28 "body": {
29 "max_tokens": 1024,
30 "messages": [
31 {
32 "role": "user",
33 "content": "What's the weather in SF in Celsius?"
34 }
35 ],
36 "model": "claude-haiku-4-5",
37 "tools": [
38 {
39 "name": "get_weather",
40 "description": "",
41 "input_schema": {
42 "additionalProperties": false,
43 "properties": {
44 "location": {
45 "title": "Location",
46 "type": "string"
47 },
48 "units": {
49 "enum": [
50 "c",
51 "f"
52 ],
53 "title": "Units",
54 "type": "string"
55 }
56 },
57 "required": [
58 "location",
59 "units"
60 ],
61 "type": "object"
62 }
63 }
64 ]
65 }
66 },
67 "response": {
68 "status_code": 200,
69 "headers": {
70 "content-type": "application/json",
71 "connection": "keep-alive",
72 "strict-transport-security": "max-age=31536000; includeSubDomains; preload",
73 "server": "cloudflare",
74 "cf-cache-status": "DYNAMIC",
75 "x-robots-tag": "none",
76 "content-security-policy": "default-src 'none'; frame-ancestors 'none'"
77 },
78 "body": {
79 "model": "claude-haiku-4-5-20251001",
80 "id": "msg_01M4x4hiFuUdHzu44ih9eCGh",
81 "type": "message",
82 "role": "assistant",
83 "content": [
84 {
85 "type": "tool_use",
86 "id": "toolu_013DU6hV4C1M8dJ32ybQFAFi",
87 "name": "get_weather",
88 "input": {
89 "location": "SF",
90 "units": "c"
91 },
92 "caller": {
93 "type": "direct"
94 }
95 }
96 ],
97 "stop_reason": "tool_use",
98 "stop_sequence": null,
99 "usage": {
100 "input_tokens": 597,
101 "cache_creation_input_tokens": 0,
102 "cache_read_input_tokens": 0,
103 "cache_creation": {
104 "ephemeral_5m_input_tokens": 0,
105 "ephemeral_1h_input_tokens": 0
106 },
107 "output_tokens": 71,
108 "service_tier": "standard",
109 "inference_geo": "not_available"
110 }
111 }
112 }
113 },
114 {
115 "request": {
116 "method": "POST",
117 "url": "https://api.anthropic.com/v1/messages?beta=true",
118 "headers": {
119 "host": "api.anthropic.com",
120 "accept-encoding": "gzip, deflate",
121 "connection": "keep-alive",
122 "x-stainless-timeout": "600",
123 "accept": "application/json",
124 "content-type": "application/json",
125 "user-agent": "Anthropic/Python 0.82.0",
126 "x-stainless-lang": "python",
127 "x-stainless-package-version": "0.82.0",
128 "x-stainless-os": "MacOS",
129 "x-stainless-arch": "arm64",
130 "x-stainless-runtime": "CPython",
131 "x-stainless-runtime-version": "3.9.18",
132 "x-stainless-async": "false",
133 "anthropic-version": "2023-06-01",
134 "x-stainless-helper": "BetaToolRunner",
135 "anthropic-beta": "structured-outputs-2025-12-15",
136 "x-stainless-retry-count": "0",
137 "x-stainless-read-timeout": "600",
138 "content-length": "759"
139 },
140 "body": {
141 "max_tokens": 1024,
142 "messages": [
143 {
144 "role": "user",
145 "content": "What's the weather in SF in Celsius?"
146 },
147 {
148 "role": "assistant",
149 "content": [
150 {
151 "id": "toolu_013DU6hV4C1M8dJ32ybQFAFi",
152 "input": {
153 "location": "SF",
154 "units": "c"
155 },
156 "name": "get_weather",
157 "type": "tool_use",
158 "caller": {
159 "type": "direct"
160 }
161 }
162 ]
163 },
164 {
165 "role": "user",
166 "content": [
167 {
168 "type": "tool_result",
169 "tool_use_id": "toolu_013DU6hV4C1M8dJ32ybQFAFi",
170 "content": "{\"location\": \"SF\", \"temperature\": \"20\\u00b0C\", \"condition\": \"Sunny\"}"
171 }
172 ]
173 }
174 ],
175 "model": "claude-haiku-4-5",
176 "tools": [
177 {
178 "name": "get_weather",
179 "description": "",
180 "input_schema": {
181 "additionalProperties": false,
182 "properties": {
183 "location": {
184 "title": "Location",
185 "type": "string"
186 },
187 "units": {
188 "enum": [
189 "c",
190 "f"
191 ],
192 "title": "Units",
193 "type": "string"
194 }
195 },
196 "required": [
197 "location",
198 "units"
199 ],
200 "type": "object"
201 }
202 }
203 ]
204 }
205 },
206 "response": {
207 "status_code": 200,
208 "headers": {
209 "content-type": "application/json",
210 "connection": "keep-alive",
211 "strict-transport-security": "max-age=31536000; includeSubDomains; preload",
212 "server": "cloudflare",
213 "cf-cache-status": "DYNAMIC",
214 "x-robots-tag": "none",
215 "content-security-policy": "default-src 'none'; frame-ancestors 'none'"
216 },
217 "body": {
218 "model": "claude-haiku-4-5-20251001",
219 "id": "msg_01LzoWDaDa7jiMvVbBiguxJy",
220 "type": "message",
221 "role": "assistant",
222 "content": [
223 {
224 "type": "text",
225 "text": "The weather in SF is currently **20°C** (68°F) and **Sunny**!"
226 }
227 ],
228 "stop_reason": "end_turn",
229 "stop_sequence": null,
230 "usage": {
231 "input_tokens": 705,
232 "cache_creation_input_tokens": 0,
233 "cache_read_input_tokens": 0,
234 "cache_creation": {
235 "ephemeral_5m_input_tokens": 0,
236 "ephemeral_1h_input_tokens": 0
237 },
238 "output_tokens": 25,
239 "service_tier": "standard",
240 "inference_geo": "not_available"
241 }
242 }
243 }
244 }
245 ]