interactions:
- request:
    body: '{"max_tokens": 500, "messages": [{"role": "user", "content": "What is the
      weather in San Francisco, CA?"}, {"role": "assistant", "content": [{"text":
      "<thinking>\nThe get_weather tool is directly relevant for answering the user''s
      question about the weather in a specific location. The tool requires a single
      parameter:\nlocation (string): The user has provided the location of \"San Francisco,
      CA\", so we have the necessary information to make the API call.\nNo other tools
      are needed, as the get_weather tool should provide a complete answer to the
      user''s question.\n</thinking>", "type": "text"}, {"id": "toolu_01UiyhG7tywQKaqdgxyqa8z9",
      "input": {"location": "San Francisco, CA"}, "name": "get_weather", "type": "tool_use"}]},
      {"role": "user", "content": [{"type": "tool_result", "tool_use_id": "toolu_01DYJo37oETVsCdLTTcCWcdq",
      "content": [{"type": "text", "text": "The weather is 73f"}]}]}], "model": "claude-3-opus-20240229",
      "tools": [{"name": "get_weather", "description": "Get the weather for a specific
      location", "input_schema": {"type": "object", "properties": {"location": {"type":
      "string"}}}}], "stream": true}'
    headers:
      accept:
      - application/json
      accept-encoding:
      - gzip, deflate
      anthropic-version:
      - '2023-06-01'
      connection:
      - keep-alive
      content-length:
      - '1126'
      content-type:
      - application/json
      host:
      - api.anthropic.com
      user-agent:
      - AsyncAnthropic/Python 0.28.0
      x-stainless-arch:
      - arm64
      x-stainless-async:
      - async:asyncio
      x-stainless-lang:
      - python
      x-stainless-os:
      - MacOS
      x-stainless-package-version:
      - 0.28.0
      x-stainless-runtime:
      - CPython
      x-stainless-runtime-version:
      - 3.10.13
      x-stainless-stream-helper:
      - messages
    method: POST
    uri: https://api.anthropic.com/v1/messages
  response:
    body:
      string: "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"msg_012tuiNWSFbzYgVhnsKgqwug\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"claude-3-opus-20240229\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":762,\"output_tokens\":2}}
        \              }\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}
        \       }\n\nevent: ping\ndata: {\"type\": \"ping\"}\n\nevent: content_block_delta\ndata:
        {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"\\n\\nThe\"}
        \          }\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"
        current\"}            }\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"
        weather\"}        }\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"
        in\"}             }\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"
        San\"}              }\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"
        Francisco\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\",\"}
        \  }\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"
        CA\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"
        is\"}   }\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"
        \"}           }\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"73\"}
        \      }\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"\xB0\"}
        \     }\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"F\"}
        \  }\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\".\"}
        \      }\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0
        \            }\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"output_tokens\":18}
        \              }\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"
        \        }\n\n"
    headers:
      CF-Cache-Status:
      - DYNAMIC
      CF-RAY:
      - 892be37bc9038ca2-EWR
      Cache-Control:
      - no-cache
      Connection:
      - keep-alive
      Content-Type:
      - text/event-stream; charset=utf-8
      Date:
      - Wed, 12 Jun 2024 18:26:21 GMT
      Server:
      - cloudflare
      Transfer-Encoding:
      - chunked
      anthropic-ratelimit-requests-limit:
      - '4000'
      anthropic-ratelimit-requests-remaining:
      - '3999'
      anthropic-ratelimit-requests-reset:
      - '2024-06-12T18:26:35Z'
      anthropic-ratelimit-tokens-limit:
      - '400000'
      anthropic-ratelimit-tokens-remaining:
      - '399000'
      anthropic-ratelimit-tokens-reset:
      - '2024-06-12T18:26:35Z'
      request-id:
      - req_016pFtbMGvJXNjF9t876GCf3
      via:
      - 1.1 google
    status:
      code: 200
      message: OK
version: 1
