interactions:
- request:
    body: '{"max_tokens": 100, "messages": [{"role": "user", "content": "What are
      the key principles for designing scalable systems?"}], "model": "claude-sonnet-4-20250514",
      "stream": true, "system": [{"type": "text", "text": "Software engineering best
      practices guide: goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye goodbye
      goodbye goodbye goodbye goodbye goodbye goodbye ", "cache_control": {"type":
      "ephemeral"}}], "temperature": 0.1}'
    headers:
      accept:
      - application/json
      accept-encoding:
      - gzip, deflate
      anthropic-beta:
      - prompt-caching-2024-07-31
      anthropic-version:
      - '2023-06-01'
      connection:
      - keep-alive
      content-length:
      - '8515'
      content-type:
      - application/json
      host:
      - api.anthropic.com
      user-agent:
      - Anthropic/Python 0.28.1
      x-stainless-arch:
      - arm64
      x-stainless-async:
      - 'false'
      x-stainless-lang:
      - python
      x-stainless-os:
      - MacOS
      x-stainless-package-version:
      - 0.28.1
      x-stainless-runtime:
      - CPython
      x-stainless-runtime-version:
      - 3.10.13
    method: POST
    uri: https://api.anthropic.com/v1/messages
  response:
    body:
      string: 'event: message_start

        data: {"type":"message_start","message":{"id":"msg_01N1s2vim6CWk85jtJPHcuea","type":"message","role":"assistant","model":"claude-sonnet-4-20250514","content":[],"stop_reason":null,"stop_sequence":null,"usage":{"input_tokens":18,"cache_creation_input_tokens":1031,"cache_read_input_tokens":0,"output_tokens":1,"service_tier":"standard"}}    }


        event: content_block_start

        data: {"type":"content_block_start","index":0,"content_block":{"type":"text","text":""}          }


        event: ping

        data: {"type": "ping"}


        event: content_block_delta

        data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"Here"}          }


        event: content_block_delta

        data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"
        are the key principles for designing scalable systems:\n\n##"}           }


        event: content_block_delta

        data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"
        1. **Horizontal Scaling (Scale Out)**\n-"}      }


        event: content_block_delta

        data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"
        Add more servers rather than upgrading existing hardware\n- Design stateless
        services that can run"}  }


        event: content_block_delta

        data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"
        on multiple instances\n- Use load balancers to distribute traffic across instances"}   }


        event: content_block_delta

        data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"\n\n##
        2. **Loose Coupling & High Cohesion**\n- Design"} }


        event: content_block_delta

        data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"
        independent, modular components\n- Use APIs and message queues for communication\n-
        Minimize"}      }


        event: content_block_delta

        data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"
        dependencies"}          }


        event: content_block_stop

        data: {"type":"content_block_stop","index":0       }


        event: message_delta

        data: {"type":"message_delta","delta":{"stop_reason":"max_tokens","stop_sequence":null},"usage":{"output_tokens":100}            }


        event: message_stop

        data: {"type":"message_stop"              }


        '
    headers:
      CF-RAY:
      - 959862565fcfc427-EWR
      Cache-Control:
      - no-cache
      Connection:
      - keep-alive
      Content-Type:
      - text/event-stream; charset=utf-8
      Date:
      - Thu, 03 Jul 2025 18:18:14 GMT
      Server:
      - cloudflare
      Transfer-Encoding:
      - chunked
      X-Robots-Tag:
      - none
      anthropic-organization-id:
      - 4257e925-ee99-4ee8-9c62-8e53716d5203
      anthropic-ratelimit-input-tokens-limit:
      - '20000000'
      anthropic-ratelimit-input-tokens-remaining:
      - '19998000'
      anthropic-ratelimit-input-tokens-reset:
      - '2025-07-03T18:18:12Z'
      anthropic-ratelimit-output-tokens-limit:
      - '2500000'
      anthropic-ratelimit-output-tokens-remaining:
      - '2500000'
      anthropic-ratelimit-output-tokens-reset:
      - '2025-07-03T18:18:12Z'
      anthropic-ratelimit-tokens-limit:
      - '22500000'
      anthropic-ratelimit-tokens-remaining:
      - '22498000'
      anthropic-ratelimit-tokens-reset:
      - '2025-07-03T18:18:12Z'
      cf-cache-status:
      - DYNAMIC
      request-id:
      - req_011CQkYajyQnyY9eu2Fgbk1o
      strict-transport-security:
      - max-age=31536000; includeSubDomains; preload
      via:
      - 1.1 google
    status:
      code: 200
      message: OK
version: 1
