--- version: 1 interactions: - request: body: '{"max_tokens":512,"messages":[{"content":[{"text":"Weather in San Francisco?","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 weather"}]}' form: {} headers: Accept: - application/json Anthropic-Version: - "2023-06-01" Content-Type: - application/json User-Agent: - Anthropic/Go 1.16.0 X-Api-Key: - fake-api-key-for-testing-only X-Stainless-Arch: - arm64 X-Stainless-Lang: - go X-Stainless-Os: - MacOS X-Stainless-Package-Version: - 1.16.0 X-Stainless-Retry-Count: - "0" X-Stainless-Runtime: - go X-Stainless-Runtime-Version: - go1.24.5 X-Stainless-Timeout: - "600" url: https://api.anthropic.com/v1/messages?beta=true method: POST response: body: '{"model":"claude-3-7-sonnet-20250219","id":"msg_014tfMBTf8yzH6aC9ohZ94k3","type":"message","role":"assistant","content":[{"type":"text","text":"I''ll check the current weather in San Francisco for you."},{"type":"tool_use","id":"toolu_01XKSJ1fM9PHM9vpwH1p7PDT","name":"get_weather","input":{"city":"San Francisco"}}],"stop_reason":"tool_use","stop_sequence":null,"usage":{"input_tokens":395,"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"}}' headers: Anthropic-Organization-Id: - 1577a8a6-174a-4705-916c-6b22ae7a49e6 Anthropic-Ratelimit-Input-Tokens-Limit: - "200000" Anthropic-Ratelimit-Input-Tokens-Remaining: - "199000" Anthropic-Ratelimit-Input-Tokens-Reset: - "2025-10-30T16:17:36Z" Anthropic-Ratelimit-Output-Tokens-Limit: - "80000" Anthropic-Ratelimit-Output-Tokens-Remaining: - "80000" Anthropic-Ratelimit-Output-Tokens-Reset: - "2025-10-30T16:17:37Z" Anthropic-Ratelimit-Requests-Limit: - "4000" Anthropic-Ratelimit-Requests-Remaining: - "3999" Anthropic-Ratelimit-Requests-Reset: - "2025-10-30T16:17:35Z" Anthropic-Ratelimit-Tokens-Limit: - "280000" Anthropic-Ratelimit-Tokens-Remaining: - "279000" Anthropic-Ratelimit-Tokens-Reset: - "2025-10-30T16:17:36Z" Cf-Cache-Status: - DYNAMIC Cf-Ray: - 996c3946fe615e6a-EWR Content-Type: - application/json Date: - Thu, 30 Oct 2025 16:17:37 GMT Request-Id: - req_011CUdgeEYzbWH4BW7aH5Dbx Server: - cloudflare Strict-Transport-Security: - max-age=31536000; includeSubDomains; preload X-Envoy-Upstream-Service-Time: - "1378" X-Robots-Tag: - none status: 200 OK code: 200 duration: "" - request: body: '{"max_tokens":512,"messages":[{"content":[{"text":"Weather in San Francisco?","type":"text"}],"role":"user"},{"content":[{"text":"I''ll check the current weather in San Francisco for you.","type":"text"},{"id":"toolu_01XKSJ1fM9PHM9vpwH1p7PDT","input":{"city":"San Francisco"},"name":"get_weather","type":"tool_use"}],"role":"assistant"},{"content":[{"tool_use_id":"toolu_01XKSJ1fM9PHM9vpwH1p7PDT","is_error":true,"content":[{"text":"Error: Unexpected error, try again","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 weather"}]}' form: {} headers: Accept: - application/json Anthropic-Version: - "2023-06-01" Content-Type: - application/json User-Agent: - Anthropic/Go 1.16.0 X-Api-Key: - fake-api-key-for-testing-only X-Stainless-Arch: - arm64 X-Stainless-Lang: - go X-Stainless-Os: - MacOS X-Stainless-Package-Version: - 1.16.0 X-Stainless-Retry-Count: - "0" X-Stainless-Runtime: - go X-Stainless-Runtime-Version: - go1.24.5 X-Stainless-Timeout: - "600" url: https://api.anthropic.com/v1/messages?beta=true method: POST response: body: '{"model":"claude-3-7-sonnet-20250219","id":"msg_01WkcabYzR3oCnHMEPgBcSAa","type":"message","role":"assistant","content":[{"type":"text","text":"I apologize for the error. Let me try checking the weather in San Francisco again."},{"type":"tool_use","id":"toolu_01LELQc5n8mDyvS1bApN4qPi","name":"get_weather","input":{"city":"San Francisco"}}],"stop_reason":"tool_use","stop_sequence":null,"usage":{"input_tokens":489,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"cache_creation":{"ephemeral_5m_input_tokens":0,"ephemeral_1h_input_tokens":0},"output_tokens":74,"service_tier":"standard"}}' headers: Anthropic-Organization-Id: - 1577a8a6-174a-4705-916c-6b22ae7a49e6 Anthropic-Ratelimit-Input-Tokens-Limit: - "200000" Anthropic-Ratelimit-Input-Tokens-Remaining: - "199000" Anthropic-Ratelimit-Input-Tokens-Reset: - "2025-10-30T16:17:37Z" Anthropic-Ratelimit-Output-Tokens-Limit: - "80000" Anthropic-Ratelimit-Output-Tokens-Remaining: - "80000" Anthropic-Ratelimit-Output-Tokens-Reset: - "2025-10-30T16:17:38Z" Anthropic-Ratelimit-Requests-Limit: - "4000" Anthropic-Ratelimit-Requests-Remaining: - "3998" Anthropic-Ratelimit-Requests-Reset: - "2025-10-30T16:17:37Z" Anthropic-Ratelimit-Tokens-Limit: - "280000" Anthropic-Ratelimit-Tokens-Remaining: - "279000" Anthropic-Ratelimit-Tokens-Reset: - "2025-10-30T16:17:37Z" Cf-Cache-Status: - DYNAMIC Cf-Ray: - 996c394fd8575e6a-EWR Content-Type: - application/json Date: - Thu, 30 Oct 2025 16:17:38 GMT Request-Id: - req_011CUdgeLfMAoXNWKXy99k2B Server: - cloudflare Strict-Transport-Security: - max-age=31536000; includeSubDomains; preload X-Envoy-Upstream-Service-Time: - "1260" X-Robots-Tag: - none status: 200 OK code: 200 duration: "" - request: body: '{"max_tokens":512,"messages":[{"content":[{"text":"Weather in San Francisco?","type":"text"}],"role":"user"},{"content":[{"text":"I''ll check the current weather in San Francisco for you.","type":"text"},{"id":"toolu_01XKSJ1fM9PHM9vpwH1p7PDT","input":{"city":"San Francisco"},"name":"get_weather","type":"tool_use"}],"role":"assistant"},{"content":[{"tool_use_id":"toolu_01XKSJ1fM9PHM9vpwH1p7PDT","is_error":true,"content":[{"text":"Error: Unexpected error, try again","type":"text"}],"type":"tool_result"}],"role":"user"},{"content":[{"text":"I apologize for the error. Let me try checking the weather in San Francisco again.","type":"text"},{"id":"toolu_01LELQc5n8mDyvS1bApN4qPi","input":{"city":"San Francisco"},"name":"get_weather","type":"tool_use"}],"role":"assistant"},{"content":[{"tool_use_id":"toolu_01LELQc5n8mDyvS1bApN4qPi","content":[{"text":"Sunny 68°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 weather"}]}' form: {} headers: Accept: - application/json Anthropic-Version: - "2023-06-01" Content-Type: - application/json User-Agent: - Anthropic/Go 1.16.0 X-Api-Key: - fake-api-key-for-testing-only X-Stainless-Arch: - arm64 X-Stainless-Lang: - go X-Stainless-Os: - MacOS X-Stainless-Package-Version: - 1.16.0 X-Stainless-Retry-Count: - "0" X-Stainless-Runtime: - go X-Stainless-Runtime-Version: - go1.24.5 X-Stainless-Timeout: - "600" url: https://api.anthropic.com/v1/messages?beta=true method: POST response: body: '{"model":"claude-3-7-sonnet-20250219","id":"msg_01BT54to51fGtyrvodmSUuUw","type":"message","role":"assistant","content":[{"type":"text","text":"The current weather in San Francisco is sunny with a temperature of 68°F."}],"stop_reason":"end_turn","stop_sequence":null,"usage":{"input_tokens":580,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"cache_creation":{"ephemeral_5m_input_tokens":0,"ephemeral_1h_input_tokens":0},"output_tokens":21,"service_tier":"standard"}}' headers: Anthropic-Organization-Id: - 1577a8a6-174a-4705-916c-6b22ae7a49e6 Anthropic-Ratelimit-Input-Tokens-Limit: - "200000" Anthropic-Ratelimit-Input-Tokens-Remaining: - "200000" Anthropic-Ratelimit-Input-Tokens-Reset: - "2025-10-30T16:17:38Z" Anthropic-Ratelimit-Output-Tokens-Limit: - "80000" Anthropic-Ratelimit-Output-Tokens-Remaining: - "80000" Anthropic-Ratelimit-Output-Tokens-Reset: - "2025-10-30T16:17:39Z" Anthropic-Ratelimit-Requests-Limit: - "4000" Anthropic-Ratelimit-Requests-Remaining: - "3999" Anthropic-Ratelimit-Requests-Reset: - "2025-10-30T16:17:38Z" Anthropic-Ratelimit-Tokens-Limit: - "280000" Anthropic-Ratelimit-Tokens-Remaining: - "280000" Anthropic-Ratelimit-Tokens-Reset: - "2025-10-30T16:17:38Z" Cf-Cache-Status: - DYNAMIC Cf-Ray: - 996c39580aab5e6a-EWR Content-Type: - application/json Date: - Thu, 30 Oct 2025 16:17:39 GMT Request-Id: - req_011CUdgeSDTmEigNbh79UCJo Server: - cloudflare Strict-Transport-Security: - max-age=31536000; includeSubDomains; preload X-Envoy-Upstream-Service-Time: - "605" X-Robots-Tag: - none status: 200 OK code: 200 duration: ""