BetaMessageIterationUsage Class — anthropic-sdk-python Architecture
Architecture documentation for the BetaMessageIterationUsage class in beta_message_iteration_usage.py from the anthropic-sdk-python codebase.
Entity Profile
Dependency Diagram
graph TD 73928b11_f1ce_4e30_a107_17156b7e9a45["BetaMessageIterationUsage"] 17ce5647_6f06_0676_a4a5_e378a3f57cb1["BaseModel"] 73928b11_f1ce_4e30_a107_17156b7e9a45 -->|extends| 17ce5647_6f06_0676_a4a5_e378a3f57cb1 eccc2f27_7a14_a125_43ae_7a9ffb0b744b["beta_message_iteration_usage.py"] 73928b11_f1ce_4e30_a107_17156b7e9a45 -->|defined in| eccc2f27_7a14_a125_43ae_7a9ffb0b744b
Relationship Graph
Source Code
src/anthropic/types/beta/beta_message_iteration_usage.py lines 12–31
class BetaMessageIterationUsage(BaseModel):
"""Token usage for a sampling iteration."""
cache_creation: Optional[BetaCacheCreation] = None
"""Breakdown of cached tokens by TTL"""
cache_creation_input_tokens: int
"""The number of input tokens used to create the cache entry."""
cache_read_input_tokens: int
"""The number of input tokens read from the cache."""
input_tokens: int
"""The number of input tokens which were used."""
output_tokens: int
"""The number of output tokens which were used."""
type: Literal["message"]
"""Usage for a sampling iteration"""
Domain
Extends
Source
Frequently Asked Questions
What is the BetaMessageIterationUsage class?
BetaMessageIterationUsage is a class in the anthropic-sdk-python codebase, defined in src/anthropic/types/beta/beta_message_iteration_usage.py.
Where is BetaMessageIterationUsage defined?
BetaMessageIterationUsage is defined in src/anthropic/types/beta/beta_message_iteration_usage.py at line 12.
What does BetaMessageIterationUsage extend?
BetaMessageIterationUsage extends BaseModel.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free