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

raw_content_block_start_event.py — anthropic-sdk-python Source File

Architecture documentation for raw_content_block_start_event.py, a python file in the anthropic-sdk-python codebase. 16 imports, 3 dependents.

File python AnthropicClient 16 imports 3 dependents 1 classes

Entity Profile

Dependency Diagram

graph LR
  1075c573_f7d2_f9fe_8f9b_b13ea8298ac2["raw_content_block_start_event.py"]
  b20bf822_b103_aa1e_5714_0992f46c51e4["_utils"]
  1075c573_f7d2_f9fe_8f9b_b13ea8298ac2 --> b20bf822_b103_aa1e_5714_0992f46c51e4
  699c911a_fb78_b883_732f_5ac6bf31d4a3["_models"]
  1075c573_f7d2_f9fe_8f9b_b13ea8298ac2 --> 699c911a_fb78_b883_732f_5ac6bf31d4a3
  7011abba_fb52_65c0_a717_c6c8750f4696["text_block.py"]
  1075c573_f7d2_f9fe_8f9b_b13ea8298ac2 --> 7011abba_fb52_65c0_a717_c6c8750f4696
  7af6ce9f_6b89_6438_fd73_c9fc07a7ba28["TextBlock"]
  1075c573_f7d2_f9fe_8f9b_b13ea8298ac2 --> 7af6ce9f_6b89_6438_fd73_c9fc07a7ba28
  56e50d54_5b4d_82e3_ece3_b2c06bab9ba1["thinking_block.py"]
  1075c573_f7d2_f9fe_8f9b_b13ea8298ac2 --> 56e50d54_5b4d_82e3_ece3_b2c06bab9ba1
  535c05f0_8001_833b_d340_a6d302a962d2["ThinkingBlock"]
  1075c573_f7d2_f9fe_8f9b_b13ea8298ac2 --> 535c05f0_8001_833b_d340_a6d302a962d2
  e3429280_22da_46a4_ce98_8cc1a41b5e09["tool_use_block.py"]
  1075c573_f7d2_f9fe_8f9b_b13ea8298ac2 --> e3429280_22da_46a4_ce98_8cc1a41b5e09
  c99fded7_4bd3_789e_0b8b_6389fef4f668["ToolUseBlock"]
  1075c573_f7d2_f9fe_8f9b_b13ea8298ac2 --> c99fded7_4bd3_789e_0b8b_6389fef4f668
  78627741_c7b7_07ee_0934_4ebc83a09460["server_tool_use_block.py"]
  1075c573_f7d2_f9fe_8f9b_b13ea8298ac2 --> 78627741_c7b7_07ee_0934_4ebc83a09460
  ef50e7f8_c97f_3caa_daef_59a0a478750b["ServerToolUseBlock"]
  1075c573_f7d2_f9fe_8f9b_b13ea8298ac2 --> ef50e7f8_c97f_3caa_daef_59a0a478750b
  2eda2717_3fea_6ae9_cb24_99f550df61b9["redacted_thinking_block.py"]
  1075c573_f7d2_f9fe_8f9b_b13ea8298ac2 --> 2eda2717_3fea_6ae9_cb24_99f550df61b9
  3ffbde90_346e_f63e_1e2c_b8c65b9c4566["RedactedThinkingBlock"]
  1075c573_f7d2_f9fe_8f9b_b13ea8298ac2 --> 3ffbde90_346e_f63e_1e2c_b8c65b9c4566
  7211cd22_539d_da2a_2925_b19c682fb82e["web_search_tool_result_block.py"]
  1075c573_f7d2_f9fe_8f9b_b13ea8298ac2 --> 7211cd22_539d_da2a_2925_b19c682fb82e
  b6ae0900_78c8_4c98_5df7_aa416979e6e0["WebSearchToolResultBlock"]
  1075c573_f7d2_f9fe_8f9b_b13ea8298ac2 --> b6ae0900_78c8_4c98_5df7_aa416979e6e0
  style 1075c573_f7d2_f9fe_8f9b_b13ea8298ac2 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 Literal, Annotated, TypeAlias

from .._utils import PropertyInfo
from .._models import BaseModel
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__ = ["RawContentBlockStartEvent", "ContentBlock"]

ContentBlock: TypeAlias = Annotated[
    Union[TextBlock, ThinkingBlock, RedactedThinkingBlock, ToolUseBlock, ServerToolUseBlock, WebSearchToolResultBlock],
    PropertyInfo(discriminator="type"),
]


class RawContentBlockStartEvent(BaseModel):
    content_block: ContentBlock

    index: int

    type: Literal["content_block_start"]

Frequently Asked Questions

What does raw_content_block_start_event.py do?
raw_content_block_start_event.py is a source file in the anthropic-sdk-python codebase, written in python. It belongs to the AnthropicClient domain.
What does raw_content_block_start_event.py depend on?
raw_content_block_start_event.py imports 16 module(s): RedactedThinkingBlock, ServerToolUseBlock, TextBlock, ThinkingBlock, ToolUseBlock, WebSearchToolResultBlock, _models, _utils, and 8 more.
What files import raw_content_block_start_event.py?
raw_content_block_start_event.py is imported by 3 file(s): __init__.py, content_block_start_event.py, raw_message_stream_event.py.
Where is raw_content_block_start_event.py in the architecture?
raw_content_block_start_event.py is located at src/anthropic/types/raw_content_block_start_event.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