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

text_block.py — anthropic-sdk-python Source File

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

File python AnthropicClient 4 imports 4 dependents 1 classes

Entity Profile

Dependency Diagram

graph LR
  7011abba_fb52_65c0_a717_c6c8750f4696["text_block.py"]
  699c911a_fb78_b883_732f_5ac6bf31d4a3["_models"]
  7011abba_fb52_65c0_a717_c6c8750f4696 --> 699c911a_fb78_b883_732f_5ac6bf31d4a3
  90f0b68f_9721_aefa_a847_f2146bcefac0["text_citation.py"]
  7011abba_fb52_65c0_a717_c6c8750f4696 --> 90f0b68f_9721_aefa_a847_f2146bcefac0
  89ddcdd7_3ae1_4c7b_41bb_9f1e25f16875["typing"]
  7011abba_fb52_65c0_a717_c6c8750f4696 --> 89ddcdd7_3ae1_4c7b_41bb_9f1e25f16875
  37c05070_ca59_d596_7250_de9d1939227f["typing_extensions"]
  7011abba_fb52_65c0_a717_c6c8750f4696 --> 37c05070_ca59_d596_7250_de9d1939227f
  2eb1aa7f_c778_4d68_0a26_a102fadd9638["__init__.py"]
  2eb1aa7f_c778_4d68_0a26_a102fadd9638 --> 7011abba_fb52_65c0_a717_c6c8750f4696
  713c0742_3b61_ba8f_1fce_05bd03381fe5["content_block.py"]
  713c0742_3b61_ba8f_1fce_05bd03381fe5 --> 7011abba_fb52_65c0_a717_c6c8750f4696
  3c1d116b_af29_e9f2_495b_ceebd1febd18["parsed_message.py"]
  3c1d116b_af29_e9f2_495b_ceebd1febd18 --> 7011abba_fb52_65c0_a717_c6c8750f4696
  1075c573_f7d2_f9fe_8f9b_b13ea8298ac2["raw_content_block_start_event.py"]
  1075c573_f7d2_f9fe_8f9b_b13ea8298ac2 --> 7011abba_fb52_65c0_a717_c6c8750f4696
  style 7011abba_fb52_65c0_a717_c6c8750f4696 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 List, Optional
from typing_extensions import Literal

from .._models import BaseModel
from .text_citation import TextCitation

__all__ = ["TextBlock"]


class TextBlock(BaseModel):
    citations: Optional[List[TextCitation]] = None
    """Citations supporting the text block.

    The type of citation returned will depend on the type of document being cited.
    Citing a PDF results in `page_location`, plain text results in `char_location`,
    and content document results in `content_block_location`.
    """

    text: str

    type: Literal["text"]

Classes

Dependencies

Frequently Asked Questions

What does text_block.py do?
text_block.py is a source file in the anthropic-sdk-python codebase, written in python. It belongs to the AnthropicClient domain.
What does text_block.py depend on?
text_block.py imports 4 module(s): _models, text_citation.py, typing, typing_extensions.
What files import text_block.py?
text_block.py is imported by 4 file(s): __init__.py, content_block.py, parsed_message.py, raw_content_block_start_event.py.
Where is text_block.py in the architecture?
text_block.py is located at src/anthropic/types/text_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