Skip to content

ContentBlock

Union Type

ContentBlock module-attribute

Contains the content for the message you pass to, or receive from a model. For more information, see Create a prompt using Prompt management.

Union Member Types

ContentBlockText dataclass

Bases: _SerdeShape

The text in the message.

Attributes

value instance-attribute
value: str

ContentBlockCachePoint dataclass

Bases: _SerdeShape

Creates a cache checkpoint within a message.

Attributes

value instance-attribute

ContentBlockUnknown dataclass

Bases: _SerdeShape

Represents an unknown variant. If you receive this value, you will need to update your library to receive the parsed value. This value may not be deliberately sent.

Attributes

tag instance-attribute
tag: str