Debian Codegraph @

src/anthropic/types/text_block_param.py

raw
1 from __future__ import annotations
2
3 from typing import Iterable, Optional
4 from typing_extensions import Literal, Required, TypedDict
5
6 from .text_citation_param import TextCitationParam
7 from .cache_control_ephemeral_param import CacheControlEphemeralParam
8
9 __all__ = ["TextBlockParam"]
10
11
12 class TextBlockParam(TypedDict, total=False):
13 text: Required[str]
14
15 type: Required[Literal["text"]]
16
17 cache_control: Optional[CacheControlEphemeralParam]
18 """Create a cache control breakpoint at this content block."""
19
20 citations: Optional[Iterable[TextCitationParam]]