CacheCreation Class — anthropic-sdk-python Architecture
Architecture documentation for the CacheCreation class in cache_creation.py from the anthropic-sdk-python codebase.
Entity Profile
Dependency Diagram
graph TD fdd4ce7d_0941_4785_cd80_220df0c61a38["CacheCreation"] 17ce5647_6f06_0676_a4a5_e378a3f57cb1["BaseModel"] fdd4ce7d_0941_4785_cd80_220df0c61a38 -->|extends| 17ce5647_6f06_0676_a4a5_e378a3f57cb1 9f2b3880_0e8c_98d1_1399_fca73019c7a2["cache_creation.py"] fdd4ce7d_0941_4785_cd80_220df0c61a38 -->|defined in| 9f2b3880_0e8c_98d1_1399_fca73019c7a2
Relationship Graph
Source Code
src/anthropic/types/cache_creation.py lines 8–13
class CacheCreation(BaseModel):
ephemeral_1h_input_tokens: int
"""The number of input tokens used to create the 1 hour cache entry."""
ephemeral_5m_input_tokens: int
"""The number of input tokens used to create the 5 minute cache entry."""
Domain
Defined In
Extends
Source
Frequently Asked Questions
What is the CacheCreation class?
CacheCreation is a class in the anthropic-sdk-python codebase, defined in src/anthropic/types/cache_creation.py.
Where is CacheCreation defined?
CacheCreation is defined in src/anthropic/types/cache_creation.py at line 8.
What does CacheCreation extend?
CacheCreation extends BaseModel.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free