BetaCompactionBlockParam Class — anthropic-sdk-python Architecture
Architecture documentation for the BetaCompactionBlockParam class in beta_compaction_block_param.py from the anthropic-sdk-python codebase.
Entity Profile
Dependency Diagram
graph TD 43d70066_b9c3_0241_e01c_b14ce763670a["BetaCompactionBlockParam"] 3fe6f04a_9f51_cfe2_ea62_f11108e3f392["beta_compaction_block_param.py"] 43d70066_b9c3_0241_e01c_b14ce763670a -->|defined in| 3fe6f04a_9f51_cfe2_ea62_f11108e3f392
Relationship Graph
Source Code
src/anthropic/types/beta/beta_compaction_block_param.py lines 13–29
class BetaCompactionBlockParam(TypedDict, total=False):
"""A compaction block containing summary of previous context.
Users should round-trip these blocks from responses to subsequent requests
to maintain context across compaction boundaries.
When content is None, the block represents a failed compaction. The server
treats these as no-ops. Empty string content is not allowed.
"""
content: Required[Optional[str]]
"""Summary of previously compacted content, or null if compaction failed"""
type: Required[Literal["compaction"]]
cache_control: Optional[BetaCacheControlEphemeralParam]
"""Create a cache control breakpoint at this content block."""
Domain
Source
Frequently Asked Questions
What is the BetaCompactionBlockParam class?
BetaCompactionBlockParam is a class in the anthropic-sdk-python codebase, defined in src/anthropic/types/beta/beta_compaction_block_param.py.
Where is BetaCompactionBlockParam defined?
BetaCompactionBlockParam is defined in src/anthropic/types/beta/beta_compaction_block_param.py at line 13.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free