Debian Codegraph @

toolrunner/testdata/cassettes/tool_runner_max_iterations.yaml

raw
1 ---
2 version: 1
3 interactions:
4 - request:
5 body: '{"max_tokens":512,"messages":[{"content":[{"text":"Check weather in SF
6 and NY, step by step","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"}]}'
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.16.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.16.0
28 X-Stainless-Retry-Count:
29 - "0"
30 X-Stainless-Runtime:
31 - go
32 X-Stainless-Runtime-Version:
33 - go1.24.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_01Q2mACVzNZQUHB5En8kt88w","type":"message","role":"assistant","content":[{"type":"text","text":"I''ll
40 check the weather in San Francisco and New York step by step.\n\nFirst, let
41 me check the weather in San Francisco:"},{"type":"tool_use","id":"toolu_01CHZ5yWb5v7HP4EavruQtj8","name":"get_weather","input":{"city":"San
42 Francisco"}}],"stop_reason":"tool_use","stop_sequence":null,"usage":{"input_tokens":400,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"cache_creation":{"ephemeral_5m_input_tokens":0,"ephemeral_1h_input_tokens":0},"output_tokens":82,"service_tier":"standard"}}'
43 headers:
44 Anthropic-Organization-Id:
45 - 1577a8a6-174a-4705-916c-6b22ae7a49e6
46 Anthropic-Ratelimit-Input-Tokens-Limit:
47 - "200000"
48 Anthropic-Ratelimit-Input-Tokens-Remaining:
49 - "200000"
50 Anthropic-Ratelimit-Input-Tokens-Reset:
51 - "2025-10-30T16:17:36Z"
52 Anthropic-Ratelimit-Output-Tokens-Limit:
53 - "80000"
54 Anthropic-Ratelimit-Output-Tokens-Remaining:
55 - "80000"
56 Anthropic-Ratelimit-Output-Tokens-Reset:
57 - "2025-10-30T16:17:37Z"
58 Anthropic-Ratelimit-Requests-Limit:
59 - "4000"
60 Anthropic-Ratelimit-Requests-Remaining:
61 - "3994"
62 Anthropic-Ratelimit-Requests-Reset:
63 - "2025-10-30T16:17:35Z"
64 Anthropic-Ratelimit-Tokens-Limit:
65 - "280000"
66 Anthropic-Ratelimit-Tokens-Remaining:
67 - "280000"
68 Anthropic-Ratelimit-Tokens-Reset:
69 - "2025-10-30T16:17:36Z"
70 Cf-Cache-Status:
71 - DYNAMIC
72 Cf-Ray:
73 - 996c3946fe5e5e6a-EWR
74 Content-Type:
75 - application/json
76 Date:
77 - Thu, 30 Oct 2025 16:17:37 GMT
78 Request-Id:
79 - req_011CUdgeEaEDRiyx96pje4xj
80 Server:
81 - cloudflare
82 Strict-Transport-Security:
83 - max-age=31536000; includeSubDomains; preload
84 X-Envoy-Upstream-Service-Time:
85 - "1748"
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":"Check weather in SF
93 and NY, step by step","type":"text"}],"role":"user"},{"content":[{"text":"I''ll
94 check the weather in San Francisco and New York step by step.\n\nFirst, let
95 me check the weather in San Francisco:","type":"text"},{"id":"toolu_01CHZ5yWb5v7HP4EavruQtj8","input":{"city":"San
96 Francisco"},"name":"get_weather","type":"tool_use"}],"role":"assistant"},{"content":[{"tool_use_id":"toolu_01CHZ5yWb5v7HP4EavruQtj8","content":[{"text":"The
97 weather in San Francisco is 20 degrees .","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"}]}'
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.16.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.16.0
119 X-Stainless-Retry-Count:
120 - "0"
121 X-Stainless-Runtime:
122 - go
123 X-Stainless-Runtime-Version:
124 - go1.24.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_01TF3a1zCD17o4pQHPZXJsdS","type":"message","role":"assistant","content":[{"type":"text","text":"Now,
131 let me check the weather in New York:"},{"type":"tool_use","id":"toolu_01FS9cCtrd1NyGHq5aHiBYTQ","name":"get_weather","input":{"city":"New
132 York"}}],"stop_reason":"tool_use","stop_sequence":null,"usage":{"input_tokens":504,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"cache_creation":{"ephemeral_5m_input_tokens":0,"ephemeral_1h_input_tokens":0},"output_tokens":67,"service_tier":"standard"}}'
133 headers:
134 Anthropic-Organization-Id:
135 - 1577a8a6-174a-4705-916c-6b22ae7a49e6
136 Anthropic-Ratelimit-Input-Tokens-Limit:
137 - "200000"
138 Anthropic-Ratelimit-Input-Tokens-Remaining:
139 - "200000"
140 Anthropic-Ratelimit-Input-Tokens-Reset:
141 - "2025-10-30T16:17:38Z"
142 Anthropic-Ratelimit-Output-Tokens-Limit:
143 - "80000"
144 Anthropic-Ratelimit-Output-Tokens-Remaining:
145 - "80000"
146 Anthropic-Ratelimit-Output-Tokens-Reset:
147 - "2025-10-30T16:17:39Z"
148 Anthropic-Ratelimit-Requests-Limit:
149 - "4000"
150 Anthropic-Ratelimit-Requests-Remaining:
151 - "3999"
152 Anthropic-Ratelimit-Requests-Reset:
153 - "2025-10-30T16:17:37Z"
154 Anthropic-Ratelimit-Tokens-Limit:
155 - "280000"
156 Anthropic-Ratelimit-Tokens-Remaining:
157 - "280000"
158 Anthropic-Ratelimit-Tokens-Reset:
159 - "2025-10-30T16:17:38Z"
160 Cf-Cache-Status:
161 - DYNAMIC
162 Cf-Ray:
163 - 996c39523b215e6a-EWR
164 Content-Type:
165 - application/json
166 Date:
167 - Thu, 30 Oct 2025 16:17:39 GMT
168 Request-Id:
169 - req_011CUdgeNJpSrFv7D5t4RV3m
170 Server:
171 - cloudflare
172 Strict-Transport-Security:
173 - max-age=31536000; includeSubDomains; preload
174 X-Envoy-Upstream-Service-Time:
175 - "1943"
176 X-Robots-Tag:
177 - none
178 status: 200 OK
179 code: 200
180 duration: ""