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

BetaRawMessageDeltaEvent Class — anthropic-sdk-python Architecture

Architecture documentation for the BetaRawMessageDeltaEvent class in beta_raw_message_delta_event.py from the anthropic-sdk-python codebase.

Entity Profile

Dependency Diagram

graph TD
  8c94c437_959f_e35e_f75a_8e8eb88119dc["BetaRawMessageDeltaEvent"]
  17ce5647_6f06_0676_a4a5_e378a3f57cb1["BaseModel"]
  8c94c437_959f_e35e_f75a_8e8eb88119dc -->|extends| 17ce5647_6f06_0676_a4a5_e378a3f57cb1
  339f07e3_2bd0_16c7_42fe_8e14d08926ee["beta_raw_message_delta_event.py"]
  8c94c437_959f_e35e_f75a_8e8eb88119dc -->|defined in| 339f07e3_2bd0_16c7_42fe_8e14d08926ee

Relationship Graph

Source Code

src/anthropic/types/beta/beta_raw_message_delta_event.py lines 27–51

class BetaRawMessageDeltaEvent(BaseModel):
    context_management: Optional[BetaContextManagementResponse] = None
    """Information about context management strategies applied during the request"""

    delta: Delta

    type: Literal["message_delta"]

    usage: BetaMessageDeltaUsage
    """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 BetaRawMessageDeltaEvent class?
BetaRawMessageDeltaEvent is a class in the anthropic-sdk-python codebase, defined in src/anthropic/types/beta/beta_raw_message_delta_event.py.
Where is BetaRawMessageDeltaEvent defined?
BetaRawMessageDeltaEvent is defined in src/anthropic/types/beta/beta_raw_message_delta_event.py at line 27.
What does BetaRawMessageDeltaEvent extend?
BetaRawMessageDeltaEvent extends BaseModel.

Analyze Your Own Codebase

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

Try Supermodel Free