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

beta_image_block_param.py — anthropic-sdk-python Source File

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

File python AnthropicClient 10 imports 4 dependents 1 classes

Entity Profile

Dependency Diagram

graph LR
  f054645d_1099_0773_edd9_9f613b9ff9c2["beta_image_block_param.py"]
  5c78be7b_0353_6045_a90a_390f47f3d143["beta_url_image_source_param.py"]
  f054645d_1099_0773_edd9_9f613b9ff9c2 --> 5c78be7b_0353_6045_a90a_390f47f3d143
  26261d79_f6be_151e_c48f_2a72bd7e31e4["BetaURLImageSourceParam"]
  f054645d_1099_0773_edd9_9f613b9ff9c2 --> 26261d79_f6be_151e_c48f_2a72bd7e31e4
  c6063de7_1a13_1c25_258f_ac60283291c1["beta_file_image_source_param.py"]
  f054645d_1099_0773_edd9_9f613b9ff9c2 --> c6063de7_1a13_1c25_258f_ac60283291c1
  2e3a6978_ad94_a5b7_9e09_0515e679bdc4["BetaFileImageSourceParam"]
  f054645d_1099_0773_edd9_9f613b9ff9c2 --> 2e3a6978_ad94_a5b7_9e09_0515e679bdc4
  ebeaece3_b312_125c_a996_f074dda52762["beta_base64_image_source_param.py"]
  f054645d_1099_0773_edd9_9f613b9ff9c2 --> ebeaece3_b312_125c_a996_f074dda52762
  d38fbd97_be2b_70ca_717d_7416f24d3f6b["BetaBase64ImageSourceParam"]
  f054645d_1099_0773_edd9_9f613b9ff9c2 --> d38fbd97_be2b_70ca_717d_7416f24d3f6b
  2bc64f58_a0bc_b0fb_ccb0_7002d8485a3a["beta_cache_control_ephemeral_param.py"]
  f054645d_1099_0773_edd9_9f613b9ff9c2 --> 2bc64f58_a0bc_b0fb_ccb0_7002d8485a3a
  f588de01_21b5_50f2_ffbb_cc9a67f33921["BetaCacheControlEphemeralParam"]
  f054645d_1099_0773_edd9_9f613b9ff9c2 --> f588de01_21b5_50f2_ffbb_cc9a67f33921
  89ddcdd7_3ae1_4c7b_41bb_9f1e25f16875["typing"]
  f054645d_1099_0773_edd9_9f613b9ff9c2 --> 89ddcdd7_3ae1_4c7b_41bb_9f1e25f16875
  37c05070_ca59_d596_7250_de9d1939227f["typing_extensions"]
  f054645d_1099_0773_edd9_9f613b9ff9c2 --> 37c05070_ca59_d596_7250_de9d1939227f
  65f3d77c_c1b2_82e1_f9d7_1e7e05f3fdfd["__init__.py"]
  65f3d77c_c1b2_82e1_f9d7_1e7e05f3fdfd --> f054645d_1099_0773_edd9_9f613b9ff9c2
  83c03c28_4e95_07bb_9ff5_cf553b7552b6["beta_content_block_param.py"]
  83c03c28_4e95_07bb_9ff5_cf553b7552b6 --> f054645d_1099_0773_edd9_9f613b9ff9c2
  e84780ac_feff_3a35_6d0f_2a345c0d96be["beta_content_block_source_content_param.py"]
  e84780ac_feff_3a35_6d0f_2a345c0d96be --> f054645d_1099_0773_edd9_9f613b9ff9c2
  30a04331_510b_4ad3_a38f_41421fe7bf18["beta_tool_result_block_param.py"]
  30a04331_510b_4ad3_a38f_41421fe7bf18 --> f054645d_1099_0773_edd9_9f613b9ff9c2
  style f054645d_1099_0773_edd9_9f613b9ff9c2 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 .beta_url_image_source_param import BetaURLImageSourceParam
from .beta_file_image_source_param import BetaFileImageSourceParam
from .beta_base64_image_source_param import BetaBase64ImageSourceParam
from .beta_cache_control_ephemeral_param import BetaCacheControlEphemeralParam

__all__ = ["BetaImageBlockParam", "Source"]

Source: TypeAlias = Union[BetaBase64ImageSourceParam, BetaURLImageSourceParam, BetaFileImageSourceParam]


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

    type: Required[Literal["image"]]

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

Frequently Asked Questions

What does beta_image_block_param.py do?
beta_image_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_image_block_param.py depend on?
beta_image_block_param.py imports 10 module(s): BetaBase64ImageSourceParam, BetaCacheControlEphemeralParam, BetaFileImageSourceParam, BetaURLImageSourceParam, beta_base64_image_source_param.py, beta_cache_control_ephemeral_param.py, beta_file_image_source_param.py, beta_url_image_source_param.py, and 2 more.
What files import beta_image_block_param.py?
beta_image_block_param.py is imported by 4 file(s): __init__.py, beta_content_block_param.py, beta_content_block_source_content_param.py, beta_tool_result_block_param.py.
Where is beta_image_block_param.py in the architecture?
beta_image_block_param.py is located at src/anthropic/types/beta/beta_image_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