Home / File/ beta_compaction_block_param.py — anthropic-sdk-python Source File

beta_compaction_block_param.py — anthropic-sdk-python Source File

Architecture documentation for beta_compaction_block_param.py, a python file in the anthropic-sdk-python codebase. 4 imports, 2 dependents.

File python AnthropicClient 4 imports 2 dependents 1 classes

Entity Profile

Dependency Diagram

graph LR
  3fe6f04a_9f51_cfe2_ea62_f11108e3f392["beta_compaction_block_param.py"]
  2bc64f58_a0bc_b0fb_ccb0_7002d8485a3a["beta_cache_control_ephemeral_param.py"]
  3fe6f04a_9f51_cfe2_ea62_f11108e3f392 --> 2bc64f58_a0bc_b0fb_ccb0_7002d8485a3a
  f588de01_21b5_50f2_ffbb_cc9a67f33921["BetaCacheControlEphemeralParam"]
  3fe6f04a_9f51_cfe2_ea62_f11108e3f392 --> f588de01_21b5_50f2_ffbb_cc9a67f33921
  89ddcdd7_3ae1_4c7b_41bb_9f1e25f16875["typing"]
  3fe6f04a_9f51_cfe2_ea62_f11108e3f392 --> 89ddcdd7_3ae1_4c7b_41bb_9f1e25f16875
  37c05070_ca59_d596_7250_de9d1939227f["typing_extensions"]
  3fe6f04a_9f51_cfe2_ea62_f11108e3f392 --> 37c05070_ca59_d596_7250_de9d1939227f
  65f3d77c_c1b2_82e1_f9d7_1e7e05f3fdfd["__init__.py"]
  65f3d77c_c1b2_82e1_f9d7_1e7e05f3fdfd --> 3fe6f04a_9f51_cfe2_ea62_f11108e3f392
  83c03c28_4e95_07bb_9ff5_cf553b7552b6["beta_content_block_param.py"]
  83c03c28_4e95_07bb_9ff5_cf553b7552b6 --> 3fe6f04a_9f51_cfe2_ea62_f11108e3f392
  style 3fe6f04a_9f51_cfe2_ea62_f11108e3f392 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations

from typing import Optional
from typing_extensions import Literal, Required, TypedDict

from .beta_cache_control_ephemeral_param import BetaCacheControlEphemeralParam

__all__ = ["BetaCompactionBlockParam"]


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."""

Frequently Asked Questions

What does beta_compaction_block_param.py do?
beta_compaction_block_param.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_param.py depend on?
beta_compaction_block_param.py imports 4 module(s): BetaCacheControlEphemeralParam, beta_cache_control_ephemeral_param.py, typing, typing_extensions.
What files import beta_compaction_block_param.py?
beta_compaction_block_param.py is imported by 2 file(s): __init__.py, beta_content_block_param.py.
Where is beta_compaction_block_param.py in the architecture?
beta_compaction_block_param.py is located at src/anthropic/types/beta/beta_compaction_block_param.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