beta_compaction_block.py — anthropic-sdk-python Source File
Architecture documentation for beta_compaction_block.py, a python file in the anthropic-sdk-python codebase. 3 imports, 4 dependents.
Entity Profile
Dependency Diagram
graph LR eeb205f4_56e4_0c7d_ec9a_883c09629c6e["beta_compaction_block.py"] c14e2467_291d_6c7c_2b25_9a24e81f8565["_models"] eeb205f4_56e4_0c7d_ec9a_883c09629c6e --> c14e2467_291d_6c7c_2b25_9a24e81f8565 89ddcdd7_3ae1_4c7b_41bb_9f1e25f16875["typing"] eeb205f4_56e4_0c7d_ec9a_883c09629c6e --> 89ddcdd7_3ae1_4c7b_41bb_9f1e25f16875 37c05070_ca59_d596_7250_de9d1939227f["typing_extensions"] eeb205f4_56e4_0c7d_ec9a_883c09629c6e --> 37c05070_ca59_d596_7250_de9d1939227f 65f3d77c_c1b2_82e1_f9d7_1e7e05f3fdfd["__init__.py"] 65f3d77c_c1b2_82e1_f9d7_1e7e05f3fdfd --> eeb205f4_56e4_0c7d_ec9a_883c09629c6e 24d3a083_86dc_200b_635d_9637016b3ba5["beta_content_block.py"] 24d3a083_86dc_200b_635d_9637016b3ba5 --> eeb205f4_56e4_0c7d_ec9a_883c09629c6e 9cc96e8a_38a2_2b93_22c9_6dd25aee6cba["beta_raw_content_block_start_event.py"] 9cc96e8a_38a2_2b93_22c9_6dd25aee6cba --> eeb205f4_56e4_0c7d_ec9a_883c09629c6e 91a19aea_7483_201a_3b9c_ae2833f7373f["parsed_beta_message.py"] 91a19aea_7483_201a_3b9c_ae2833f7373f --> eeb205f4_56e4_0c7d_ec9a_883c09629c6e style eeb205f4_56e4_0c7d_ec9a_883c09629c6e 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 typing_extensions import Literal
from ..._models import BaseModel
__all__ = ["BetaCompactionBlock"]
class BetaCompactionBlock(BaseModel):
"""A compaction block returned when autocompact is triggered.
When content is None, it indicates the compaction failed to produce a valid
summary (e.g., malformed output from the model). Clients may round-trip
compaction blocks with null content; the server treats them as no-ops.
"""
content: Optional[str] = None
"""Summary of compacted content, or null if compaction failed"""
type: Literal["compaction"]
Domain
Classes
Dependencies
- _models
- typing
- typing_extensions
Imported By
Source
Frequently Asked Questions
What does beta_compaction_block.py do?
beta_compaction_block.py is a source file in the anthropic-sdk-python codebase, written in python. It belongs to the AnthropicClient domain.
What does beta_compaction_block.py depend on?
beta_compaction_block.py imports 3 module(s): _models, typing, typing_extensions.
What files import beta_compaction_block.py?
beta_compaction_block.py is imported by 4 file(s): __init__.py, beta_content_block.py, beta_raw_content_block_start_event.py, parsed_beta_message.py.
Where is beta_compaction_block.py in the architecture?
beta_compaction_block.py is located at src/anthropic/types/beta/beta_compaction_block.py (domain: AnthropicClient, directory: src/anthropic/types/beta).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free