http_interactions:
- request:
    method: POST
    uri: https://api.anthropic.com/v1/messages
    body:
      string: '{"model":"claude-sonnet-4-5-20250929","system":[{"type":"text","text":"\n  You
        are an expert R programmer who prefers the tidyverse.\n  Just give me the
        code. I don''t want any explanation or sample data.\n\n  Follow the tidyverse
        style guide:\n  * Spread long function calls across multiple lines.\n  * Where
        needed, always indent function calls with two spaces.\n  * Only name arguments
        that are less commonly used.\n  * Always use double quotes for strings.\n  *
        Use the base pipe, `|>`, not the magrittr pipe `%>%`.\n","cache_control":{"type":"ephemeral","ttl":"5m"}}],"messages":[{"role":"user","content":[{"type":"text","text":"\n  How
        can I compute the mean and median of variables a, b, c, and so on,\n  all
        the way up to z, grouped by age and sex.\n","cache_control":{"type":"ephemeral","ttl":"5m"}}]}],"stream":false,"max_tokens":4096}'
  response:
    status: 200
    headers:
      date: Thu, 06 Nov 2025 14:55:26 GMT
      content-type: application/json
      content-encoding: gzip
      anthropic-ratelimit-input-tokens-limit: '2000000'
      anthropic-ratelimit-input-tokens-remaining: '2000000'
      anthropic-ratelimit-input-tokens-reset: '2025-11-06T14:55:24Z'
      anthropic-ratelimit-output-tokens-limit: '400000'
      anthropic-ratelimit-output-tokens-remaining: '400000'
      anthropic-ratelimit-output-tokens-reset: '2025-11-06T14:55:26Z'
      anthropic-ratelimit-requests-limit: '4000'
      anthropic-ratelimit-requests-remaining: '3999'
      anthropic-ratelimit-requests-reset: '2025-11-06T14:55:21Z'
      retry-after: '37'
      anthropic-ratelimit-tokens-limit: '2400000'
      anthropic-ratelimit-tokens-remaining: '2400000'
      anthropic-ratelimit-tokens-reset: '2025-11-06T14:55:24Z'
      request-id: req_011CUrq2ttBHaCzcvej2eemj
      strict-transport-security: max-age=31536000; includeSubDomains; preload
      anthropic-organization-id: bf3687d8-1b59-41eb-9761-a1fd70b24e7e
      x-envoy-upstream-service-time: '5630'
      cf-cache-status: DYNAMIC
      x-robots-tag: none
      server: cloudflare
      cf-ray: 99a56e6d9c04c0c0-DFW
    body:
      string: '{"model":"claude-sonnet-4-5-20250929","id":"msg_01NbWMgxVD3RmYw3ExZRJeBf","type":"message","role":"assistant","content":[{"type":"text","text":"\n```R\nlibrary(dplyr)\n\ndata
        |>\n  group_by(age, sex) |>\n  summarise(across(\n    a:z,\n    list(mean
        = mean, median = median),\n    .names = \"{.col}_{.fn}\"\n  ))\n```"}],"stop_reason":"end_turn","stop_sequence":null,"usage":{"input_tokens":160,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"cache_creation":{"ephemeral_5m_input_tokens":0,"ephemeral_1h_input_tokens":0},"output_tokens":73,"service_tier":"standard"}}'
  recorded_at: 2025-11-06 14:55:26
recorded_with: VCR-vcr/2.0.0
