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

document_block_param.py — anthropic-sdk-python Source File

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

File python AnthropicClient 14 imports 4 dependents 1 classes

Entity Profile

Dependency Diagram

graph LR
  fa6d4fdc_06a3_f9c7_73f5_b4ab74d2932f["document_block_param.py"]
  3be41883_436d_7f24_99f0_2764982e5c5c["url_pdf_source_param.py"]
  fa6d4fdc_06a3_f9c7_73f5_b4ab74d2932f --> 3be41883_436d_7f24_99f0_2764982e5c5c
  0f531034_6294_d709_0776_0fd01eb3fb02["URLPDFSourceParam"]
  fa6d4fdc_06a3_f9c7_73f5_b4ab74d2932f --> 0f531034_6294_d709_0776_0fd01eb3fb02
  e5b30cf2_580b_6b4a_e826_123bbebb79f5["citations_config_param.py"]
  fa6d4fdc_06a3_f9c7_73f5_b4ab74d2932f --> e5b30cf2_580b_6b4a_e826_123bbebb79f5
  e9f90444_d3a7_6bc6_494a_04fecd99e653["CitationsConfigParam"]
  fa6d4fdc_06a3_f9c7_73f5_b4ab74d2932f --> e9f90444_d3a7_6bc6_494a_04fecd99e653
  ee0e912f_c4cc_ca9f_9e66_275c2616874b["base64_pdf_source_param.py"]
  fa6d4fdc_06a3_f9c7_73f5_b4ab74d2932f --> ee0e912f_c4cc_ca9f_9e66_275c2616874b
  dd58d17e_083c_eda4_cfca_fc7dc162762d["Base64PDFSourceParam"]
  fa6d4fdc_06a3_f9c7_73f5_b4ab74d2932f --> dd58d17e_083c_eda4_cfca_fc7dc162762d
  dd012307_04d8_4350_15ea_ee03e714b21f["plain_text_source_param.py"]
  fa6d4fdc_06a3_f9c7_73f5_b4ab74d2932f --> dd012307_04d8_4350_15ea_ee03e714b21f
  cf89b8c6_0672_ea4a_4d17_b05fedb1e786["PlainTextSourceParam"]
  fa6d4fdc_06a3_f9c7_73f5_b4ab74d2932f --> cf89b8c6_0672_ea4a_4d17_b05fedb1e786
  6ecfb798_28bf_5da5_bb23_cdb8262c2773["content_block_source_param.py"]
  fa6d4fdc_06a3_f9c7_73f5_b4ab74d2932f --> 6ecfb798_28bf_5da5_bb23_cdb8262c2773
  6d3b99c4_33b9_b472_40b8_17274f6a983a["ContentBlockSourceParam"]
  fa6d4fdc_06a3_f9c7_73f5_b4ab74d2932f --> 6d3b99c4_33b9_b472_40b8_17274f6a983a
  7b6a56f6_ac0b_b2be_9a30_e7e1bb30529a["cache_control_ephemeral_param.py"]
  fa6d4fdc_06a3_f9c7_73f5_b4ab74d2932f --> 7b6a56f6_ac0b_b2be_9a30_e7e1bb30529a
  f1f58cbf_75c8_98cd_2b10_51b503d83961["CacheControlEphemeralParam"]
  fa6d4fdc_06a3_f9c7_73f5_b4ab74d2932f --> f1f58cbf_75c8_98cd_2b10_51b503d83961
  89ddcdd7_3ae1_4c7b_41bb_9f1e25f16875["typing"]
  fa6d4fdc_06a3_f9c7_73f5_b4ab74d2932f --> 89ddcdd7_3ae1_4c7b_41bb_9f1e25f16875
  37c05070_ca59_d596_7250_de9d1939227f["typing_extensions"]
  fa6d4fdc_06a3_f9c7_73f5_b4ab74d2932f --> 37c05070_ca59_d596_7250_de9d1939227f
  style fa6d4fdc_06a3_f9c7_73f5_b4ab74d2932f 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 Union, Optional
from typing_extensions import Literal, Required, TypeAlias, TypedDict

from .url_pdf_source_param import URLPDFSourceParam
from .citations_config_param import CitationsConfigParam
from .base64_pdf_source_param import Base64PDFSourceParam
from .plain_text_source_param import PlainTextSourceParam
from .content_block_source_param import ContentBlockSourceParam
from .cache_control_ephemeral_param import CacheControlEphemeralParam

__all__ = ["DocumentBlockParam", "Source"]

Source: TypeAlias = Union[Base64PDFSourceParam, PlainTextSourceParam, ContentBlockSourceParam, URLPDFSourceParam]


class DocumentBlockParam(TypedDict, total=False):
    source: Required[Source]

    type: Required[Literal["document"]]

    cache_control: Optional[CacheControlEphemeralParam]
    """Create a cache control breakpoint at this content block."""

    citations: Optional[CitationsConfigParam]

    context: Optional[str]

    title: Optional[str]

Frequently Asked Questions

What does document_block_param.py do?
document_block_param.py is a source file in the anthropic-sdk-python codebase, written in python. It belongs to the AnthropicClient domain.
What does document_block_param.py depend on?
document_block_param.py imports 14 module(s): Base64PDFSourceParam, CacheControlEphemeralParam, CitationsConfigParam, ContentBlockSourceParam, PlainTextSourceParam, URLPDFSourceParam, base64_pdf_source_param.py, cache_control_ephemeral_param.py, and 6 more.
What files import document_block_param.py?
document_block_param.py is imported by 4 file(s): __init__.py, content_block_param.py, message_param.py, tool_result_block_param.py.
Where is document_block_param.py in the architecture?
document_block_param.py is located at src/anthropic/types/document_block_param.py (domain: AnthropicClient, directory: src/anthropic/types).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free