Home / File/ message_delta_usage.py — anthropic-sdk-python Source File

message_delta_usage.py — anthropic-sdk-python Source File

Architecture documentation for message_delta_usage.py, a python file in the anthropic-sdk-python codebase. 4 imports, 2 dependents.

File python AnthropicClient 4 imports 2 dependents 1 classes

Entity Profile

Dependency Diagram

graph LR
  a6c821d1_613a_0e06_9a1a_429f9e6663e9["message_delta_usage.py"]
  699c911a_fb78_b883_732f_5ac6bf31d4a3["_models"]
  a6c821d1_613a_0e06_9a1a_429f9e6663e9 --> 699c911a_fb78_b883_732f_5ac6bf31d4a3
  b775b1d4_72b6_5c83_0c90_03984dbc3aa7["server_tool_usage.py"]
  a6c821d1_613a_0e06_9a1a_429f9e6663e9 --> b775b1d4_72b6_5c83_0c90_03984dbc3aa7
  2ed9a3b4_c55e_1be3_6001_1c37aa7f37ea["ServerToolUsage"]
  a6c821d1_613a_0e06_9a1a_429f9e6663e9 --> 2ed9a3b4_c55e_1be3_6001_1c37aa7f37ea
  89ddcdd7_3ae1_4c7b_41bb_9f1e25f16875["typing"]
  a6c821d1_613a_0e06_9a1a_429f9e6663e9 --> 89ddcdd7_3ae1_4c7b_41bb_9f1e25f16875
  2eb1aa7f_c778_4d68_0a26_a102fadd9638["__init__.py"]
  2eb1aa7f_c778_4d68_0a26_a102fadd9638 --> a6c821d1_613a_0e06_9a1a_429f9e6663e9
  69413c7a_3892_2c3c_ec44_39435bec1ba5["raw_message_delta_event.py"]
  69413c7a_3892_2c3c_ec44_39435bec1ba5 --> a6c821d1_613a_0e06_9a1a_429f9e6663e9
  style a6c821d1_613a_0e06_9a1a_429f9e6663e9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing import Optional

from .._models import BaseModel
from .server_tool_usage import ServerToolUsage

__all__ = ["MessageDeltaUsage"]


class MessageDeltaUsage(BaseModel):
    cache_creation_input_tokens: Optional[int] = None
    """The cumulative number of input tokens used to create the cache entry."""

    cache_read_input_tokens: Optional[int] = None
    """The cumulative number of input tokens read from the cache."""

    input_tokens: Optional[int] = None
    """The cumulative number of input tokens which were used."""

    output_tokens: int
    """The cumulative number of output tokens which were used."""

    server_tool_use: Optional[ServerToolUsage] = None
    """The number of server tool requests."""

Dependencies

Frequently Asked Questions

What does message_delta_usage.py do?
message_delta_usage.py is a source file in the anthropic-sdk-python codebase, written in python. It belongs to the AnthropicClient domain.
What does message_delta_usage.py depend on?
message_delta_usage.py imports 4 module(s): ServerToolUsage, _models, server_tool_usage.py, typing.
What files import message_delta_usage.py?
message_delta_usage.py is imported by 2 file(s): __init__.py, raw_message_delta_event.py.
Where is message_delta_usage.py in the architecture?
message_delta_usage.py is located at src/anthropic/types/message_delta_usage.py (domain: AnthropicClient, directory: src/anthropic/types).

Analyze Your Own Codebase

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

Try Supermodel Free