when:
  path: /v1/messages
  method: POST
  query_param: []
  header:
  - name: accept
    value: '*/*'
  - name: content-type
    value: application/json
  - name: anthropic-version
    value: 2023-06-01
  body: '{"max_tokens":64000,"messages":[{"content":[{"source":{"data":"The Rust Programming Language\n\nRust is a systems programming language focused on three goals: safety, speed,\nand concurrency. It accomplishes these goals without a garbage collector.\n\nKey Features:\n- Zero-cost abstractions\n- Move semantics\n- Guaranteed memory safety\n- Threads without data races","media_type":"text/plain","type":"text"},"type":"document"}],"role":"user"}],"model":"claude-sonnet-4-6","system":[{"text":"You are a helpful assistant that analyzes documents.","type":"text"}],"temperature":0.5}'
then:
  status: 200
  header:
  - name: content-type
    value: application/json
  body: '{"content":[{"text":"## Document Analysis: The Rust Programming Language\n\n### Overview\nThe document is a **brief introduction to Rust**, a systems programming language, highlighting its core philosophy and key features.\n\n---\n\n### Core Goals\nRust is designed around **three primary objectives**:\n1. **Safety** – preventing common programming errors\n2. **Speed** – high performance execution\n3. **Concurrency** – handling multiple tasks simultaneously\n\n> Notably, these goals are achieved **without a garbage collector**, which distinguishes Rust from many other memory-safe languages.\n\n---\n\n### Key Features Listed\n| Feature | Significance |\n|---|---|\n| Zero-cost abstractions | High-level code with no runtime overhead |\n| Move semantics | Efficient memory management through ownership |\n| Guaranteed memory safety | Eliminates common bugs like null pointers/buffer overflows |\n| Threads without data races | Safe concurrent programming |\n\n---\n\n### Summary\nThe document serves as a **high-level overview**, likely an introduction or opening section of a larger text. It positions Rust as a language that bridges the gap between **low-level performance** (like C/C++) and **high-level safety guarantees**, making it suitable for systems programming where both speed and reliability are critical.","type":"text"}],"id":"msg_REDACTED_1","model":"claude-sonnet-4-6","role":"assistant","stop_details":null,"stop_reason":"end_turn","stop_sequence":null,"type":"message","usage":{"cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"inference_geo":"global","input_tokens":121,"output_tokens":276,"service_tier":"standard"}}'
