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":128000,"messages":[{"content":[{"text":"In one or two sentences, explain what Rust programming language is and why memory safety matters.","type":"text"}],"role":"user"}],"model":"claude-opus-4-7","system":[{"text":"You are a concise assistant. Answer directly.","type":"text"}]}'
then:
  status: 200
  header:
  - name: content-type
    value: application/json
  body: '{"content":[{"text":"Rust is a systems programming language that delivers C/C++-level performance while enforcing memory safety at compile time through its ownership and borrowing model, eliminating entire classes of bugs without needing a garbage collector. Memory safety matters because issues like buffer overflows, use-after-free, and data races are among the leading causes of software crashes and security vulnerabilities in critical systems.","type":"text"}],"id":"msg_REDACTED_1","model":"claude-opus-4-7","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":54,"output_tokens":127,"service_tier":"standard"}}'
