Skip to content

ContentBlockDelta

Union Type

ContentBlockDelta module-attribute

A block of content in a streaming response.

Union Member Types

ContentBlockDeltaText dataclass

Bases: _SerdeShape

The content text.

Attributes

value instance-attribute
value: str

ContentBlockDeltaToolUse dataclass

Bases: _SerdeShape

Information about a tool that the model is requesting to use.

Attributes

value instance-attribute

ContentBlockDeltaToolResult dataclass

Bases: _SerdeShape

An incremental update that contains the results from a tool call.

Attributes

value instance-attribute

ContentBlockDeltaReasoningContent dataclass

Bases: _SerdeShape

Contains content regarding the reasoning that is carried out by the model. Reasoning refers to a Chain of Thought (CoT) that the model generates to enhance the accuracy of its final response.

Attributes

value instance-attribute

ContentBlockDeltaCitation dataclass

Bases: _SerdeShape

Incremental citation information that is streamed as part of the response generation process.

Attributes

value instance-attribute

ContentBlockDeltaImage dataclass

Bases: _SerdeShape

A streaming delta event containing incremental image data.

Attributes

value instance-attribute

ContentBlockDeltaUnknown 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