Home / Class/ RawMessageDeltaEvent Class — anthropic-sdk-python Architecture

RawMessageDeltaEvent Class — anthropic-sdk-python Architecture

Architecture documentation for the RawMessageDeltaEvent class in raw_message_delta_event.py from the anthropic-sdk-python codebase.

Entity Profile

Dependency Diagram

graph TD
  e97d61f2_756a_4e8e_7519_da24f4173c01["RawMessageDeltaEvent"]
  17ce5647_6f06_0676_a4a5_e378a3f57cb1["BaseModel"]
  e97d61f2_756a_4e8e_7519_da24f4173c01 -->|extends| 17ce5647_6f06_0676_a4a5_e378a3f57cb1
  69413c7a_3892_2c3c_ec44_39435bec1ba5["raw_message_delta_event.py"]
  e97d61f2_756a_4e8e_7519_da24f4173c01 -->|defined in| 69413c7a_3892_2c3c_ec44_39435bec1ba5

Relationship Graph

Source Code

src/anthropic/types/raw_message_delta_event.py lines 19–40

class RawMessageDeltaEvent(BaseModel):
    delta: Delta

    type: Literal["message_delta"]

    usage: MessageDeltaUsage
    """Billing and rate-limit usage.

    Anthropic's API bills and rate-limits by token counts, as tokens represent the
    underlying cost to our systems.

    Under the hood, the API transforms requests into a format suitable for the
    model. The model's output then goes through a parsing stage before becoming an
    API response. As a result, the token counts in `usage` will not match one-to-one
    with the exact visible content of an API request or response.

    For example, `output_tokens` will be non-zero, even for an empty string response
    from Claude.

    Total input tokens in a request is the summation of `input_tokens`,
    `cache_creation_input_tokens`, and `cache_read_input_tokens`.
    """

Extends

Frequently Asked Questions

What is the RawMessageDeltaEvent class?
RawMessageDeltaEvent is a class in the anthropic-sdk-python codebase, defined in src/anthropic/types/raw_message_delta_event.py.
Where is RawMessageDeltaEvent defined?
RawMessageDeltaEvent is defined in src/anthropic/types/raw_message_delta_event.py at line 19.
What does RawMessageDeltaEvent extend?
RawMessageDeltaEvent extends BaseModel.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free