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
¶
Information about a tool that the model is requesting to use.
Attributes¶
ContentBlockDeltaToolResult
dataclass
¶
An incremental update that contains the results from a tool call.
Attributes¶
ContentBlockDeltaReasoningContent
dataclass
¶
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
¶
Incremental citation information that is streamed as part of the response generation process.