Skip to content

ContentBlockDict

Union Type

ContentBlockDict module-attribute

Dictionary form of ContentBlock, setting exactly one variant.

Union Member Types

ContentBlockTextDict

Bases: TypedDict

Attributes

text instance-attribute
text: str

The text in the message.

ContentBlockCachePointDict

Bases: TypedDict

Attributes

cache_point instance-attribute

Creates a cache checkpoint within a message.