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

raw_message_stream_event.py — anthropic-sdk-python Source File

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

File python AnthropicClient 15 imports 2 dependents

Entity Profile

Dependency Diagram

graph LR
  3c3a350f_0c87_3b27_39ab_9a2cf8561a26["raw_message_stream_event.py"]
  b20bf822_b103_aa1e_5714_0992f46c51e4["_utils"]
  3c3a350f_0c87_3b27_39ab_9a2cf8561a26 --> b20bf822_b103_aa1e_5714_0992f46c51e4
  f95af969_b3ff_522d_438b_6a951d268928["raw_message_stop_event.py"]
  3c3a350f_0c87_3b27_39ab_9a2cf8561a26 --> f95af969_b3ff_522d_438b_6a951d268928
  5eb30cf6_25e7_8a59_8247_911ec5875ba1["RawMessageStopEvent"]
  3c3a350f_0c87_3b27_39ab_9a2cf8561a26 --> 5eb30cf6_25e7_8a59_8247_911ec5875ba1
  69413c7a_3892_2c3c_ec44_39435bec1ba5["raw_message_delta_event.py"]
  3c3a350f_0c87_3b27_39ab_9a2cf8561a26 --> 69413c7a_3892_2c3c_ec44_39435bec1ba5
  e97d61f2_756a_4e8e_7519_da24f4173c01["RawMessageDeltaEvent"]
  3c3a350f_0c87_3b27_39ab_9a2cf8561a26 --> e97d61f2_756a_4e8e_7519_da24f4173c01
  d0dcbd4b_c516_bdfd_b119_88ac7d8e1399["raw_message_start_event.py"]
  3c3a350f_0c87_3b27_39ab_9a2cf8561a26 --> d0dcbd4b_c516_bdfd_b119_88ac7d8e1399
  0f4c75cd_c9a3_f61d_c79b_8067dfb77e1c["RawMessageStartEvent"]
  3c3a350f_0c87_3b27_39ab_9a2cf8561a26 --> 0f4c75cd_c9a3_f61d_c79b_8067dfb77e1c
  6e458b30_5616_a6df_6f78_c542b21a862c["raw_content_block_stop_event.py"]
  3c3a350f_0c87_3b27_39ab_9a2cf8561a26 --> 6e458b30_5616_a6df_6f78_c542b21a862c
  33d718b9_2662_406d_fc0b_39cd6a64f8dd["RawContentBlockStopEvent"]
  3c3a350f_0c87_3b27_39ab_9a2cf8561a26 --> 33d718b9_2662_406d_fc0b_39cd6a64f8dd
  a9b3a37f_cf98_8148_92ef_8f71f1f2b7e1["raw_content_block_delta_event.py"]
  3c3a350f_0c87_3b27_39ab_9a2cf8561a26 --> a9b3a37f_cf98_8148_92ef_8f71f1f2b7e1
  80e331d4_b78b_3790_0c34_ed50a27a9a0e["RawContentBlockDeltaEvent"]
  3c3a350f_0c87_3b27_39ab_9a2cf8561a26 --> 80e331d4_b78b_3790_0c34_ed50a27a9a0e
  1075c573_f7d2_f9fe_8f9b_b13ea8298ac2["raw_content_block_start_event.py"]
  3c3a350f_0c87_3b27_39ab_9a2cf8561a26 --> 1075c573_f7d2_f9fe_8f9b_b13ea8298ac2
  cb5af558_dbfb_7677_dc52_7b31deb392ba["RawContentBlockStartEvent"]
  3c3a350f_0c87_3b27_39ab_9a2cf8561a26 --> cb5af558_dbfb_7677_dc52_7b31deb392ba
  89ddcdd7_3ae1_4c7b_41bb_9f1e25f16875["typing"]
  3c3a350f_0c87_3b27_39ab_9a2cf8561a26 --> 89ddcdd7_3ae1_4c7b_41bb_9f1e25f16875
  style 3c3a350f_0c87_3b27_39ab_9a2cf8561a26 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 .raw_message_stop_event import RawMessageStopEvent
from .raw_message_delta_event import RawMessageDeltaEvent
from .raw_message_start_event import RawMessageStartEvent
from .raw_content_block_stop_event import RawContentBlockStopEvent
from .raw_content_block_delta_event import RawContentBlockDeltaEvent
from .raw_content_block_start_event import RawContentBlockStartEvent

__all__ = ["RawMessageStreamEvent"]

RawMessageStreamEvent: TypeAlias = Annotated[
    Union[
        RawMessageStartEvent,
        RawMessageDeltaEvent,
        RawMessageStopEvent,
        RawContentBlockStartEvent,
        RawContentBlockDeltaEvent,
        RawContentBlockStopEvent,
    ],
    PropertyInfo(discriminator="type"),
]

Frequently Asked Questions

What does raw_message_stream_event.py do?
raw_message_stream_event.py is a source file in the anthropic-sdk-python codebase, written in python. It belongs to the AnthropicClient domain.
What does raw_message_stream_event.py depend on?
raw_message_stream_event.py imports 15 module(s): RawContentBlockDeltaEvent, RawContentBlockStartEvent, RawContentBlockStopEvent, RawMessageDeltaEvent, RawMessageStartEvent, RawMessageStopEvent, _utils, raw_content_block_delta_event.py, and 7 more.
What files import raw_message_stream_event.py?
raw_message_stream_event.py is imported by 2 file(s): __init__.py, message_stream_event.py.
Where is raw_message_stream_event.py in the architecture?
raw_message_stream_event.py is located at src/anthropic/types/raw_message_stream_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