interactions: - request: body: '{"max_tokens": 1024, "messages": [{"role": "user", "content": "what is the weather in san francisco?"}], "model": "claude-3-haiku-20240307", "temperature": 0.0, "tools": [{"name": "get_weather", "description": "Call to get the current weather.", "input_schema": {"type": "object", "properties": {"location": {"type": "string"}}, "required": ["location"]}}]}' headers: accept: - application/json accept-encoding: - gzip, deflate anthropic-version: - '2023-06-01' connection: - keep-alive content-length: - '357' content-type: - application/json host: - api.anthropic.com user-agent: - Anthropic/Python 0.34.2 x-stainless-arch: - arm64 x-stainless-async: - 'false' x-stainless-lang: - python x-stainless-os: - MacOS x-stainless-package-version: - 0.34.2 x-stainless-runtime: - CPython x-stainless-runtime-version: - 3.11.9 method: POST uri: https://api.anthropic.com/v1/messages response: body: string: !!binary | H4sIAAAAAAAAA0yPUUvDQBCE/4rM8wXSXlW8V2mRakWLxQeRcFzWJO3lrs3uUTTkv0siQh93dubb 2R5NCYOWqyKfrTebp9N5PX9d7/Qm7l5W25+O9lCQ7yONLmK2FUGhi34ULHPDYoNAoY0leRg4b1NJ mc5q2xxSNs/ni1znt1BwMQgFgfno/4kSoy8Sj8ipxzinIp8tH23d3u9nqdZL93yz3T7cdW/vUAi2 HXMVSXEmKzV1YzQck8D08NFZaWKAAdtw9dXZ4Bp2EcPwqcASj0VHlifDxelpwXRKFBzBhOS9Qppe Nf0fvZB4oMAwWmuFmORSu14Mwy8AAAD//wMArMXOmEkBAAA= headers: CF-Cache-Status: - DYNAMIC CF-RAY: - 8c2263363b61440b-EWR Connection: - keep-alive Content-Encoding: - gzip Content-Type: - application/json Date: - Thu, 12 Sep 2024 19:43:38 GMT Server: - cloudflare Transfer-Encoding: - chunked X-Robots-Tag: - none request-id: - req_01J7SzfmDXRsMeeAfafMEcGH via: - 1.1 google x-cloud-trace-context: - 0357f4516c50b24c12d9eeabc95ca5e0 status: code: 200 message: OK - request: body: '{"max_tokens": 1024, "messages": [{"role": "user", "content": "what is the weather in san francisco?"}, {"role": "assistant", "content": [{"type": "tool_use", "name": "get_weather", "input": {"location": "san francisco"}, "id": "toolu_01EKahmCj1uh3EcN6RRH9rTW"}]}, {"role": "user", "content": [{"type": "tool_result", "content": "Error: ValueError(''Input queries must be proper nouns'')\n Please fix your mistakes.", "tool_use_id": "toolu_01EKahmCj1uh3EcN6RRH9rTW", "is_error": false}]}], "model": "claude-3-haiku-20240307", "temperature": 0.0, "tools": [{"name": "get_weather", "description": "Call to get the current weather.", "input_schema": {"type": "object", "properties": {"location": {"type": "string"}}, "required": ["location"]}}]}' headers: accept: - application/json accept-encoding: - gzip, deflate anthropic-version: - '2023-06-01' connection: - keep-alive content-length: - '740' content-type: - application/json host: - api.anthropic.com user-agent: - Anthropic/Python 0.34.2 x-stainless-arch: - arm64 x-stainless-async: - 'false' x-stainless-lang: - python x-stainless-os: - MacOS x-stainless-package-version: - 0.34.2 x-stainless-runtime: - CPython x-stainless-runtime-version: - 3.11.9 method: POST uri: https://api.anthropic.com/v1/messages response: body: string: !!binary | H4sIAAAAAAAAA0xQ20oDQQz9lSHPU9m22uq8KSiCCl7wAiJL2MbdobOTdZOh1rL/LrMq9inkXJKT 7MCvwEErdVlMb8/url4ev64fNwt5voxP3R2fxAVY0G1HWUUiWBNY6DlkAEW8KEYFCy2vKICDKmBa 0WQ+adCv02RWzA6LebEECxVHpajgXnd/E5U+s3csDk47Dlx7Emu8msC8FhP8mow21JPZoBiMxosk MhuvTcbNhjDTozx1B+aa1LRktN8abVAN1ujjv7zruaPevHPfojoY7H8W5lAmyeeNP8l9KovpDZ8u t/PPxcNxXDUf91d8fnn0nFNHbLOvJi1/Q2Rr7JKC20HgCtVzBAcPGM1Fj7HyUjEMw5sFUe7KnlBG wd7qkRD6SBQrAhdTCBbS+Ha3+5leKq8pCrjD6dICJ93HjmfD8A0AAP//AwDdjumG1QEAAA== headers: CF-Cache-Status: - DYNAMIC CF-RAY: - 8c22633a0fa8440b-EWR Connection: - keep-alive Content-Encoding: - gzip Content-Type: - application/json Date: - Thu, 12 Sep 2024 19:43:39 GMT Server: - cloudflare Transfer-Encoding: - chunked X-Robots-Tag: - none request-id: - req_01Egd3FSktfHgrnioyQQvZ6R via: - 1.1 google x-cloud-trace-context: - 881d3e84ebe7b050412054160f81eb82 status: code: 200 message: OK - request: body: '{"max_tokens": 1024, "messages": [{"role": "user", "content": "what is the weather in san francisco?"}, {"role": "assistant", "content": [{"type": "tool_use", "name": "get_weather", "input": {"location": "san francisco"}, "id": "toolu_01EKahmCj1uh3EcN6RRH9rTW"}]}, {"role": "user", "content": [{"type": "tool_result", "content": "Error: ValueError(''Input queries must be proper nouns'')\n Please fix your mistakes.", "tool_use_id": "toolu_01EKahmCj1uh3EcN6RRH9rTW", "is_error": false}]}, {"role": "assistant", "content": [{"text": "Apologies, it looks like there was an issue with the weather lookup. Let me try that again with the proper format:", "type": "text"}, {"type": "tool_use", "name": "get_weather", "input": {"location": "San Francisco"}, "id": "toolu_01MoA7y3x6S8ndhqRKoEH5Wt"}]}, {"role": "user", "content": [{"type": "tool_result", "content": "It''s 60 degrees and foggy.", "tool_use_id": "toolu_01MoA7y3x6S8ndhqRKoEH5Wt", "is_error": false}]}], "model": "claude-3-haiku-20240307", "temperature": 0.0, "tools": [{"name": "get_weather", "description": "Call to get the current weather.", "input_schema": {"type": "object", "properties": {"location": {"type": "string"}}, "required": ["location"]}}]}' headers: accept: - application/json accept-encoding: - gzip, deflate anthropic-version: - '2023-06-01' connection: - keep-alive content-length: - '1210' content-type: - application/json host: - api.anthropic.com user-agent: - Anthropic/Python 0.34.2 x-stainless-arch: - arm64 x-stainless-async: - 'false' x-stainless-lang: - python x-stainless-os: - MacOS x-stainless-package-version: - 0.34.2 x-stainless-runtime: - CPython x-stainless-runtime-version: - 3.11.9 method: POST uri: https://api.anthropic.com/v1/messages response: body: string: !!binary | H4sIAAAAAAAAA0yPS0vDQBSF/8pw1lNJ09rQ2dXXxsemulEkDMk1HZrciXPvaEvpf5cWBVcHvvOA c0Bo4TBIVxfT+fXX4unq8WG3fr19ydWwui+r8QYWuh/plCIR3xEsUuxPwIsEUc8KiyG21MOh6X1u aTKbbHzY5klZlPNiVlSwaCIrscK9Hf4WlXan7lkcnjdkmpwSsZpv8rqhZAKbtWdzlzw3QZpogphF YVrqEpEYz635iF23v8Dx3UI0jnUiL5HhQNzWmhPj1xD6zMQNwXHue4t8fuMOCDxmrTVuiQXucrq0 iFn/s+nyePwBAAD//wMAOfNl/SwBAAA= headers: CF-Cache-Status: - DYNAMIC CF-RAY: - 8c22633f1ce1440b-EWR Connection: - keep-alive Content-Encoding: - gzip Content-Type: - application/json Date: - Thu, 12 Sep 2024 19:43:39 GMT Server: - cloudflare Transfer-Encoding: - chunked X-Robots-Tag: - none request-id: - req_01AAiJAy5nn9Hd1xMB8eEKQL via: - 1.1 google x-cloud-trace-context: - ed60946c3a365d3a41f2e73e7129fc72 status: code: 200 message: OK version: 1