github.com/anthropics/anthropic-sdk-go@v1.70.1/toolrunner/testdata/cassettes/tool_runner_concurrent.yaml (about) 1 --- 2 version: 1 3 interactions: 4 - request: 5 body: '{"max_tokens":512,"messages":[{"content":[{"text":"What''s the weather 6 in San Francisco, New York, and London? Check all three cities at once.","type":"text"}],"role":"user"}],"model":"claude-3-7-sonnet-latest","tools":[{"input_schema":{"properties":{"city":{"type":"string"},"units":{"enum":["celsius","fahrenheit"],"type":"string"}},"required":["city"],"type":"object"},"name":"get_weather","description":"Get 7 weather for a city"}]}' 8 form: {} 9 headers: 10 Accept: 11 - application/json 12 Anthropic-Version: 13 - "2023-06-01" 14 Content-Type: 15 - application/json 16 User-Agent: 17 - Anthropic/Go 1.19.0 18 X-Api-Key: 19 - fake-api-key-for-testing-only 20 X-Stainless-Arch: 21 - arm64 22 X-Stainless-Lang: 23 - go 24 X-Stainless-Os: 25 - MacOS 26 X-Stainless-Package-Version: 27 - 1.19.0 28 X-Stainless-Retry-Count: 29 - "0" 30 X-Stainless-Runtime: 31 - go 32 X-Stainless-Runtime-Version: 33 - go1.25.5 34 X-Stainless-Timeout: 35 - "600" 36 url: https://api.anthropic.com/v1/messages?beta=true 37 method: POST 38 response: 39 body: '{"model":"claude-3-7-sonnet-20250219","id":"msg_01GhukHZbus69MS8zCp3tqTa","type":"message","role":"assistant","content":[{"type":"text","text":"I''d 40 be happy to check the weather for San Francisco, New York, and London for you. 41 I''ll need to look up each city individually."},{"type":"tool_use","id":"toolu_019dfQh1VSo4ykF3MUFvGpMg","name":"get_weather","input":{"city":"San 42 Francisco"}}],"stop_reason":"tool_use","stop_sequence":null,"usage":{"input_tokens":414,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"cache_creation":{"ephemeral_5m_input_tokens":0,"ephemeral_1h_input_tokens":0},"output_tokens":85,"service_tier":"standard"}}' 43 headers: 44 Anthropic-Organization-Id: 45 - 4b663dca-f14e-490d-9965-801817fd453d 46 Anthropic-Ratelimit-Input-Tokens-Limit: 47 - "40000" 48 Anthropic-Ratelimit-Input-Tokens-Remaining: 49 - "39000" 50 Anthropic-Ratelimit-Input-Tokens-Reset: 51 - "2026-01-23T07:42:01Z" 52 Anthropic-Ratelimit-Output-Tokens-Limit: 53 - "16000" 54 Anthropic-Ratelimit-Output-Tokens-Remaining: 55 - "16000" 56 Anthropic-Ratelimit-Output-Tokens-Reset: 57 - "2026-01-23T07:42:02Z" 58 Anthropic-Ratelimit-Requests-Limit: 59 - "1000" 60 Anthropic-Ratelimit-Requests-Remaining: 61 - "998" 62 Anthropic-Ratelimit-Requests-Reset: 63 - "2026-01-23T07:42:00Z" 64 Anthropic-Ratelimit-Tokens-Limit: 65 - "56000" 66 Anthropic-Ratelimit-Tokens-Remaining: 67 - "55000" 68 Anthropic-Ratelimit-Tokens-Reset: 69 - "2026-01-23T07:42:01Z" 70 Cf-Cache-Status: 71 - DYNAMIC 72 Cf-Ray: 73 - 9c25a6e2df5aa143-LAX 74 Content-Type: 75 - application/json 76 Date: 77 - Fri, 23 Jan 2026 07:42:01 GMT 78 Request-Id: 79 - req_011CXPw5fUs1tb4koxa1VUac 80 Server: 81 - cloudflare 82 Strict-Transport-Security: 83 - max-age=31536000; includeSubDomains; preload 84 X-Envoy-Upstream-Service-Time: 85 - "1637" 86 X-Robots-Tag: 87 - none 88 status: 200 OK 89 code: 200 90 duration: "" 91 - request: 92 body: '{"max_tokens":512,"messages":[{"content":[{"text":"What''s the weather 93 in San Francisco, New York, and London? Check all three cities at once.","type":"text"}],"role":"user"},{"content":[{"text":"I''d 94 be happy to check the weather for San Francisco, New York, and London for you. 95 I''ll need to look up each city individually.","type":"text"},{"id":"toolu_019dfQh1VSo4ykF3MUFvGpMg","input":{"city":"San 96 Francisco"},"name":"get_weather","type":"tool_use"}],"role":"assistant"},{"content":[{"tool_use_id":"toolu_019dfQh1VSo4ykF3MUFvGpMg","content":[{"text":"Weather 97 in San Francisco: Sunny 72°F","type":"text"}],"type":"tool_result"}],"role":"user"}],"model":"claude-3-7-sonnet-latest","tools":[{"input_schema":{"properties":{"city":{"type":"string"},"units":{"enum":["celsius","fahrenheit"],"type":"string"}},"required":["city"],"type":"object"},"name":"get_weather","description":"Get 98 weather for a city"}]}' 99 form: {} 100 headers: 101 Accept: 102 - application/json 103 Anthropic-Version: 104 - "2023-06-01" 105 Content-Type: 106 - application/json 107 User-Agent: 108 - Anthropic/Go 1.19.0 109 X-Api-Key: 110 - fake-api-key-for-testing-only 111 X-Stainless-Arch: 112 - arm64 113 X-Stainless-Lang: 114 - go 115 X-Stainless-Os: 116 - MacOS 117 X-Stainless-Package-Version: 118 - 1.19.0 119 X-Stainless-Retry-Count: 120 - "0" 121 X-Stainless-Runtime: 122 - go 123 X-Stainless-Runtime-Version: 124 - go1.25.5 125 X-Stainless-Timeout: 126 - "600" 127 url: https://api.anthropic.com/v1/messages?beta=true 128 method: POST 129 response: 130 body: '{"model":"claude-3-7-sonnet-20250219","id":"msg_0146jGKLKCa86wwR9aHbrEfe","type":"message","role":"assistant","content":[{"type":"tool_use","id":"toolu_015Sh8xNQBhJJnBCLz8x9F6f","name":"get_weather","input":{"city":"New 131 York"}}],"stop_reason":"tool_use","stop_sequence":null,"usage":{"input_tokens":521,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"cache_creation":{"ephemeral_5m_input_tokens":0,"ephemeral_1h_input_tokens":0},"output_tokens":55,"service_tier":"standard"}}' 132 headers: 133 Anthropic-Organization-Id: 134 - 4b663dca-f14e-490d-9965-801817fd453d 135 Anthropic-Ratelimit-Input-Tokens-Limit: 136 - "40000" 137 Anthropic-Ratelimit-Input-Tokens-Remaining: 138 - "40000" 139 Anthropic-Ratelimit-Input-Tokens-Reset: 140 - "2026-01-23T07:42:02Z" 141 Anthropic-Ratelimit-Output-Tokens-Limit: 142 - "16000" 143 Anthropic-Ratelimit-Output-Tokens-Remaining: 144 - "16000" 145 Anthropic-Ratelimit-Output-Tokens-Reset: 146 - "2026-01-23T07:42:03Z" 147 Anthropic-Ratelimit-Requests-Limit: 148 - "1000" 149 Anthropic-Ratelimit-Requests-Remaining: 150 - "999" 151 Anthropic-Ratelimit-Requests-Reset: 152 - "2026-01-23T07:42:02Z" 153 Anthropic-Ratelimit-Tokens-Limit: 154 - "56000" 155 Anthropic-Ratelimit-Tokens-Remaining: 156 - "56000" 157 Anthropic-Ratelimit-Tokens-Reset: 158 - "2026-01-23T07:42:02Z" 159 Cf-Cache-Status: 160 - DYNAMIC 161 Cf-Ray: 162 - 9c25a6edf8f7a143-LAX 163 Content-Type: 164 - application/json 165 Date: 166 - Fri, 23 Jan 2026 07:42:02 GMT 167 Request-Id: 168 - req_011CXPw5o5mF8wtv3QiE2tkd 169 Server: 170 - cloudflare 171 Strict-Transport-Security: 172 - max-age=31536000; includeSubDomains; preload 173 X-Envoy-Upstream-Service-Time: 174 - "1008" 175 X-Robots-Tag: 176 - none 177 status: 200 OK 178 code: 200 179 duration: "" 180 - request: 181 body: '{"max_tokens":512,"messages":[{"content":[{"text":"What''s the weather 182 in San Francisco, New York, and London? Check all three cities at once.","type":"text"}],"role":"user"},{"content":[{"text":"I''d 183 be happy to check the weather for San Francisco, New York, and London for you. 184 I''ll need to look up each city individually.","type":"text"},{"id":"toolu_019dfQh1VSo4ykF3MUFvGpMg","input":{"city":"San 185 Francisco"},"name":"get_weather","type":"tool_use"}],"role":"assistant"},{"content":[{"tool_use_id":"toolu_019dfQh1VSo4ykF3MUFvGpMg","content":[{"text":"Weather 186 in San Francisco: Sunny 72°F","type":"text"}],"type":"tool_result"}],"role":"user"},{"content":[{"id":"toolu_015Sh8xNQBhJJnBCLz8x9F6f","input":{"city":"New 187 York"},"name":"get_weather","type":"tool_use"}],"role":"assistant"},{"content":[{"tool_use_id":"toolu_015Sh8xNQBhJJnBCLz8x9F6f","content":[{"text":"Weather 188 in New York: Sunny 72°F","type":"text"}],"type":"tool_result"}],"role":"user"}],"model":"claude-3-7-sonnet-latest","tools":[{"input_schema":{"properties":{"city":{"type":"string"},"units":{"enum":["celsius","fahrenheit"],"type":"string"}},"required":["city"],"type":"object"},"name":"get_weather","description":"Get 189 weather for a city"}]}' 190 form: {} 191 headers: 192 Accept: 193 - application/json 194 Anthropic-Version: 195 - "2023-06-01" 196 Content-Type: 197 - application/json 198 User-Agent: 199 - Anthropic/Go 1.19.0 200 X-Api-Key: 201 - fake-api-key-for-testing-only 202 X-Stainless-Arch: 203 - arm64 204 X-Stainless-Lang: 205 - go 206 X-Stainless-Os: 207 - MacOS 208 X-Stainless-Package-Version: 209 - 1.19.0 210 X-Stainless-Retry-Count: 211 - "0" 212 X-Stainless-Runtime: 213 - go 214 X-Stainless-Runtime-Version: 215 - go1.25.5 216 X-Stainless-Timeout: 217 - "600" 218 url: https://api.anthropic.com/v1/messages?beta=true 219 method: POST 220 response: 221 body: '{"model":"claude-3-7-sonnet-20250219","id":"msg_018RyYEDtaKf3WyN2AVY7DVZ","type":"message","role":"assistant","content":[{"type":"tool_use","id":"toolu_019FKPTDNUQxrGzdjFtpP9Yp","name":"get_weather","input":{"city":"London"}}],"stop_reason":"tool_use","stop_sequence":null,"usage":{"input_tokens":598,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"cache_creation":{"ephemeral_5m_input_tokens":0,"ephemeral_1h_input_tokens":0},"output_tokens":54,"service_tier":"standard"}}' 222 headers: 223 Anthropic-Organization-Id: 224 - 4b663dca-f14e-490d-9965-801817fd453d 225 Anthropic-Ratelimit-Input-Tokens-Limit: 226 - "40000" 227 Anthropic-Ratelimit-Input-Tokens-Remaining: 228 - "40000" 229 Anthropic-Ratelimit-Input-Tokens-Reset: 230 - "2026-01-23T07:42:04Z" 231 Anthropic-Ratelimit-Output-Tokens-Limit: 232 - "16000" 233 Anthropic-Ratelimit-Output-Tokens-Remaining: 234 - "16000" 235 Anthropic-Ratelimit-Output-Tokens-Reset: 236 - "2026-01-23T07:42:04Z" 237 Anthropic-Ratelimit-Requests-Limit: 238 - "1000" 239 Anthropic-Ratelimit-Requests-Remaining: 240 - "999" 241 Anthropic-Ratelimit-Requests-Reset: 242 - "2026-01-23T07:42:03Z" 243 Anthropic-Ratelimit-Tokens-Limit: 244 - "56000" 245 Anthropic-Ratelimit-Tokens-Remaining: 246 - "56000" 247 Anthropic-Ratelimit-Tokens-Reset: 248 - "2026-01-23T07:42:04Z" 249 Cf-Cache-Status: 250 - DYNAMIC 251 Cf-Ray: 252 - 9c25a6f52a45a143-LAX 253 Content-Type: 254 - application/json 255 Date: 256 - Fri, 23 Jan 2026 07:42:04 GMT 257 Request-Id: 258 - req_011CXPw5t2fvWR46n9QUQ9Qm 259 Server: 260 - cloudflare 261 Strict-Transport-Security: 262 - max-age=31536000; includeSubDomains; preload 263 X-Envoy-Upstream-Service-Time: 264 - "945" 265 X-Robots-Tag: 266 - none 267 status: 200 OK 268 code: 200 269 duration: "" 270 - request: 271 body: '{"max_tokens":512,"messages":[{"content":[{"text":"What''s the weather 272 in San Francisco, New York, and London? Check all three cities at once.","type":"text"}],"role":"user"},{"content":[{"text":"I''d 273 be happy to check the weather for San Francisco, New York, and London for you. 274 I''ll need to look up each city individually.","type":"text"},{"id":"toolu_019dfQh1VSo4ykF3MUFvGpMg","input":{"city":"San 275 Francisco"},"name":"get_weather","type":"tool_use"}],"role":"assistant"},{"content":[{"tool_use_id":"toolu_019dfQh1VSo4ykF3MUFvGpMg","content":[{"text":"Weather 276 in San Francisco: Sunny 72°F","type":"text"}],"type":"tool_result"}],"role":"user"},{"content":[{"id":"toolu_015Sh8xNQBhJJnBCLz8x9F6f","input":{"city":"New 277 York"},"name":"get_weather","type":"tool_use"}],"role":"assistant"},{"content":[{"tool_use_id":"toolu_015Sh8xNQBhJJnBCLz8x9F6f","content":[{"text":"Weather 278 in New York: Sunny 72°F","type":"text"}],"type":"tool_result"}],"role":"user"},{"content":[{"id":"toolu_019FKPTDNUQxrGzdjFtpP9Yp","input":{"city":"London"},"name":"get_weather","type":"tool_use"}],"role":"assistant"},{"content":[{"tool_use_id":"toolu_019FKPTDNUQxrGzdjFtpP9Yp","content":[{"text":"Weather 279 in London: Sunny 72°F","type":"text"}],"type":"tool_result"}],"role":"user"}],"model":"claude-3-7-sonnet-latest","tools":[{"input_schema":{"properties":{"city":{"type":"string"},"units":{"enum":["celsius","fahrenheit"],"type":"string"}},"required":["city"],"type":"object"},"name":"get_weather","description":"Get 280 weather for a city"}]}' 281 form: {} 282 headers: 283 Accept: 284 - application/json 285 Anthropic-Version: 286 - "2023-06-01" 287 Content-Type: 288 - application/json 289 User-Agent: 290 - Anthropic/Go 1.19.0 291 X-Api-Key: 292 - fake-api-key-for-testing-only 293 X-Stainless-Arch: 294 - arm64 295 X-Stainless-Lang: 296 - go 297 X-Stainless-Os: 298 - MacOS 299 X-Stainless-Package-Version: 300 - 1.19.0 301 X-Stainless-Retry-Count: 302 - "0" 303 X-Stainless-Runtime: 304 - go 305 X-Stainless-Runtime-Version: 306 - go1.25.5 307 X-Stainless-Timeout: 308 - "600" 309 url: https://api.anthropic.com/v1/messages?beta=true 310 method: POST 311 response: 312 body: '{"model":"claude-3-7-sonnet-20250219","id":"msg_01U2itU4GfWtWJXqw43f4XB1","type":"message","role":"assistant","content":[{"type":"text","text":"Here''s 313 the current weather for all three cities:\n\n- San Francisco: Sunny 72°F\n- 314 New York: Sunny 72°F\n- London: Sunny 72°F\n\nWould you like me to check any 315 other cities or get the weather in Celsius instead?"}],"stop_reason":"end_turn","stop_sequence":null,"usage":{"input_tokens":673,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"cache_creation":{"ephemeral_5m_input_tokens":0,"ephemeral_1h_input_tokens":0},"output_tokens":65,"service_tier":"standard"}}' 316 headers: 317 Anthropic-Organization-Id: 318 - 4b663dca-f14e-490d-9965-801817fd453d 319 Anthropic-Ratelimit-Input-Tokens-Limit: 320 - "40000" 321 Anthropic-Ratelimit-Input-Tokens-Remaining: 322 - "40000" 323 Anthropic-Ratelimit-Input-Tokens-Reset: 324 - "2026-01-23T07:42:05Z" 325 Anthropic-Ratelimit-Output-Tokens-Limit: 326 - "16000" 327 Anthropic-Ratelimit-Output-Tokens-Remaining: 328 - "16000" 329 Anthropic-Ratelimit-Output-Tokens-Reset: 330 - "2026-01-23T07:42:05Z" 331 Anthropic-Ratelimit-Requests-Limit: 332 - "1000" 333 Anthropic-Ratelimit-Requests-Remaining: 334 - "999" 335 Anthropic-Ratelimit-Requests-Reset: 336 - "2026-01-23T07:42:04Z" 337 Anthropic-Ratelimit-Tokens-Limit: 338 - "56000" 339 Anthropic-Ratelimit-Tokens-Remaining: 340 - "56000" 341 Anthropic-Ratelimit-Tokens-Reset: 342 - "2026-01-23T07:42:05Z" 343 Cf-Cache-Status: 344 - DYNAMIC 345 Cf-Ray: 346 - 9c25a6fbfae2a143-LAX 347 Content-Type: 348 - application/json 349 Date: 350 - Fri, 23 Jan 2026 07:42:05 GMT 351 Request-Id: 352 - req_011CXPw5xhTv4tqQceCdq8iZ 353 Server: 354 - cloudflare 355 Strict-Transport-Security: 356 - max-age=31536000; includeSubDomains; preload 357 X-Envoy-Upstream-Service-Time: 358 - "1320" 359 X-Robots-Tag: 360 - none 361 status: 200 OK 362 code: 200 363 duration: ""