BetaCompactionEvent Class — anthropic-sdk-python Architecture
Architecture documentation for the BetaCompactionEvent class in _beta_types.py from the anthropic-sdk-python codebase.
Entity Profile
Dependency Diagram
graph TD 438ac573_78c1_54ae_8945_e202fbbf6a56["BetaCompactionEvent"] 17ce5647_6f06_0676_a4a5_e378a3f57cb1["BaseModel"] 438ac573_78c1_54ae_8945_e202fbbf6a56 -->|extends| 17ce5647_6f06_0676_a4a5_e378a3f57cb1 6ae52b2b_b80e_bd13_d3c7_f2409e8d863a["_beta_types.py"] 438ac573_78c1_54ae_8945_e202fbbf6a56 -->|defined in| 6ae52b2b_b80e_bd13_d3c7_f2409e8d863a
Relationship Graph
Source Code
src/anthropic/lib/streaming/_beta_types.py lines 78–82
class BetaCompactionEvent(BaseModel):
type: Literal["compaction"]
content: Union[str, None]
"""The compaction content"""
Domain
Defined In
Extends
Source
Frequently Asked Questions
What is the BetaCompactionEvent class?
BetaCompactionEvent is a class in the anthropic-sdk-python codebase, defined in src/anthropic/lib/streaming/_beta_types.py.
Where is BetaCompactionEvent defined?
BetaCompactionEvent is defined in src/anthropic/lib/streaming/_beta_types.py at line 78.
What does BetaCompactionEvent extend?
BetaCompactionEvent extends BaseModel.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free