content_block.py — anthropic-sdk-python Source File
Architecture documentation for content_block.py, a python file in the anthropic-sdk-python codebase. 15 imports, 3 dependents.
Entity Profile
Dependency Diagram
graph LR 713c0742_3b61_ba8f_1fce_05bd03381fe5["content_block.py"] b20bf822_b103_aa1e_5714_0992f46c51e4["_utils"] 713c0742_3b61_ba8f_1fce_05bd03381fe5 --> b20bf822_b103_aa1e_5714_0992f46c51e4 7011abba_fb52_65c0_a717_c6c8750f4696["text_block.py"] 713c0742_3b61_ba8f_1fce_05bd03381fe5 --> 7011abba_fb52_65c0_a717_c6c8750f4696 7af6ce9f_6b89_6438_fd73_c9fc07a7ba28["TextBlock"] 713c0742_3b61_ba8f_1fce_05bd03381fe5 --> 7af6ce9f_6b89_6438_fd73_c9fc07a7ba28 56e50d54_5b4d_82e3_ece3_b2c06bab9ba1["thinking_block.py"] 713c0742_3b61_ba8f_1fce_05bd03381fe5 --> 56e50d54_5b4d_82e3_ece3_b2c06bab9ba1 535c05f0_8001_833b_d340_a6d302a962d2["ThinkingBlock"] 713c0742_3b61_ba8f_1fce_05bd03381fe5 --> 535c05f0_8001_833b_d340_a6d302a962d2 e3429280_22da_46a4_ce98_8cc1a41b5e09["tool_use_block.py"] 713c0742_3b61_ba8f_1fce_05bd03381fe5 --> e3429280_22da_46a4_ce98_8cc1a41b5e09 c99fded7_4bd3_789e_0b8b_6389fef4f668["ToolUseBlock"] 713c0742_3b61_ba8f_1fce_05bd03381fe5 --> c99fded7_4bd3_789e_0b8b_6389fef4f668 78627741_c7b7_07ee_0934_4ebc83a09460["server_tool_use_block.py"] 713c0742_3b61_ba8f_1fce_05bd03381fe5 --> 78627741_c7b7_07ee_0934_4ebc83a09460 ef50e7f8_c97f_3caa_daef_59a0a478750b["ServerToolUseBlock"] 713c0742_3b61_ba8f_1fce_05bd03381fe5 --> ef50e7f8_c97f_3caa_daef_59a0a478750b 2eda2717_3fea_6ae9_cb24_99f550df61b9["redacted_thinking_block.py"] 713c0742_3b61_ba8f_1fce_05bd03381fe5 --> 2eda2717_3fea_6ae9_cb24_99f550df61b9 3ffbde90_346e_f63e_1e2c_b8c65b9c4566["RedactedThinkingBlock"] 713c0742_3b61_ba8f_1fce_05bd03381fe5 --> 3ffbde90_346e_f63e_1e2c_b8c65b9c4566 7211cd22_539d_da2a_2925_b19c682fb82e["web_search_tool_result_block.py"] 713c0742_3b61_ba8f_1fce_05bd03381fe5 --> 7211cd22_539d_da2a_2925_b19c682fb82e b6ae0900_78c8_4c98_5df7_aa416979e6e0["WebSearchToolResultBlock"] 713c0742_3b61_ba8f_1fce_05bd03381fe5 --> b6ae0900_78c8_4c98_5df7_aa416979e6e0 89ddcdd7_3ae1_4c7b_41bb_9f1e25f16875["typing"] 713c0742_3b61_ba8f_1fce_05bd03381fe5 --> 89ddcdd7_3ae1_4c7b_41bb_9f1e25f16875 style 713c0742_3b61_ba8f_1fce_05bd03381fe5 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 Union
from typing_extensions import Annotated, TypeAlias
from .._utils import PropertyInfo
from .text_block import TextBlock
from .thinking_block import ThinkingBlock
from .tool_use_block import ToolUseBlock
from .server_tool_use_block import ServerToolUseBlock
from .redacted_thinking_block import RedactedThinkingBlock
from .web_search_tool_result_block import WebSearchToolResultBlock
__all__ = ["ContentBlock"]
ContentBlock: TypeAlias = Annotated[
Union[TextBlock, ThinkingBlock, RedactedThinkingBlock, ToolUseBlock, ServerToolUseBlock, WebSearchToolResultBlock],
PropertyInfo(discriminator="type"),
]
Domain
Dependencies
Imported By
Source
Frequently Asked Questions
What does content_block.py do?
content_block.py is a source file in the anthropic-sdk-python codebase, written in python. It belongs to the AnthropicClient domain.
What does content_block.py depend on?
content_block.py imports 15 module(s): RedactedThinkingBlock, ServerToolUseBlock, TextBlock, ThinkingBlock, ToolUseBlock, WebSearchToolResultBlock, _utils, redacted_thinking_block.py, and 7 more.
What files import content_block.py?
content_block.py is imported by 3 file(s): __init__.py, message.py, message_param.py.
Where is content_block.py in the architecture?
content_block.py is located at src/anthropic/types/content_block.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