github.com/anthropics/anthropic-sdk-go@v1.70.1/toolrunner/testdata/cassettes/tool_runner_context_cancel.yaml (about)

     1  ---
     2  version: 1
     3  interactions:
     4  - request:
     5      body: '{"max_tokens":512,"messages":[{"content":[{"text":"Call the slow_tool with
     6        input ''test''","type":"text"}],"role":"user"}],"model":"claude-3-7-sonnet-latest","tools":[{"input_schema":{"properties":{"input":{"type":"string"}},"type":"object"},"name":"slow_tool","description":"A
     7        slow tool"}]}'
     8      form: {}
     9      headers:
    10        Accept:
    11        - application/json
    12        Anthropic-Version:
    13        - "2023-06-01"
    14        Content-Type:
    15        - application/json
    16        User-Agent:
    17        - Anthropic/Go 1.19.0
    18        X-Api-Key:
    19        - fake-api-key-for-testing-only
    20        X-Stainless-Arch:
    21        - arm64
    22        X-Stainless-Lang:
    23        - go
    24        X-Stainless-Os:
    25        - MacOS
    26        X-Stainless-Package-Version:
    27        - 1.19.0
    28        X-Stainless-Retry-Count:
    29        - "0"
    30        X-Stainless-Runtime:
    31        - go
    32        X-Stainless-Runtime-Version:
    33        - go1.25.5
    34        X-Stainless-Timeout:
    35        - "600"
    36      url: https://api.anthropic.com/v1/messages?beta=true
    37      method: POST
    38    response:
    39      body: '{"model":"claude-3-7-sonnet-20250219","id":"msg_0142PtqubSsNMQyL4EiyyEs6","type":"message","role":"assistant","content":[{"type":"text","text":"I
    40        can help you call the slow_tool with the input ''test''. I''ll use the function
    41        call now:"},{"type":"tool_use","id":"toolu_01CbQoxtE6Qg5V9pW5SX66i5","name":"slow_tool","input":{"input":"test"}}],"stop_reason":"tool_use","stop_sequence":null,"usage":{"input_tokens":376,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"cache_creation":{"ephemeral_5m_input_tokens":0,"ephemeral_1h_input_tokens":0},"output_tokens":78,"service_tier":"standard"}}'
    42      headers:
    43        Anthropic-Organization-Id:
    44        - 4b663dca-f14e-490d-9965-801817fd453d
    45        Anthropic-Ratelimit-Input-Tokens-Limit:
    46        - "40000"
    47        Anthropic-Ratelimit-Input-Tokens-Remaining:
    48        - "40000"
    49        Anthropic-Ratelimit-Input-Tokens-Reset:
    50        - "2026-01-23T07:42:01Z"
    51        Anthropic-Ratelimit-Output-Tokens-Limit:
    52        - "16000"
    53        Anthropic-Ratelimit-Output-Tokens-Remaining:
    54        - "16000"
    55        Anthropic-Ratelimit-Output-Tokens-Reset:
    56        - "2026-01-23T07:42:01Z"
    57        Anthropic-Ratelimit-Requests-Limit:
    58        - "1000"
    59        Anthropic-Ratelimit-Requests-Remaining:
    60        - "999"
    61        Anthropic-Ratelimit-Requests-Reset:
    62        - "2026-01-23T07:42:00Z"
    63        Anthropic-Ratelimit-Tokens-Limit:
    64        - "56000"
    65        Anthropic-Ratelimit-Tokens-Remaining:
    66        - "56000"
    67        Anthropic-Ratelimit-Tokens-Reset:
    68        - "2026-01-23T07:42:01Z"
    69        Cf-Cache-Status:
    70        - DYNAMIC
    71        Cf-Ray:
    72        - 9c25a6e2df5ca143-LAX
    73        Content-Type:
    74        - application/json
    75        Date:
    76        - Fri, 23 Jan 2026 07:42:01 GMT
    77        Request-Id:
    78        - req_011CXPw5fUcysxR74k3PTTtN
    79        Server:
    80        - cloudflare
    81        Strict-Transport-Security:
    82        - max-age=31536000; includeSubDomains; preload
    83        X-Envoy-Upstream-Service-Time:
    84        - "1425"
    85        X-Robots-Tag:
    86        - none
    87      status: 200 OK
    88      code: 200
    89      duration: ""