ContentBlockDelta¶
Union Type¶
ContentBlockDelta
module-attribute
¶
ContentBlockDelta = Union[ContentBlockDeltaText | ContentBlockDeltaToolUse | ContentBlockDeltaToolResult | ContentBlockDeltaReasoningContent | ContentBlockDeltaCitation | ContentBlockDeltaImage | ContentBlockDeltaUnknown]
A block of content in a streaming response.
Union Member Types¶
ContentBlockDeltaText
dataclass
¶
ContentBlockDeltaToolUse
dataclass
¶
ContentBlockDeltaToolResult
dataclass
¶
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¶
ContentBlockDeltaCitation
dataclass
¶
Bases: _SerdeShape
Incremental citation information that is streamed as part of the response generation process.