#[non_exhaustive]pub enum Delta {
TextDelta(String),
JsonDelta(String),
ThinkingDelta(String),
SignatureDelta(String),
EncryptedReasoningDelta(String),
Other(Value),
}Expand description
A streamed content fragment (§3.2). Externally tagged so a newtype variant
renders {"text_delta":"Hel"}. Tool arguments ride JsonDelta as text
fragments, never a parsed Value.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
TextDelta(String)
JsonDelta(String)
ThinkingDelta(String)
SignatureDelta(String)
The opaque signature for the block at this index (bl-61a9): the Anthropic
thinking signature_delta (folds to Content::Thinking.signature) AND the
Google thoughtSignature on a functionCall part (folds to
Content::ToolUse.signature) — ONE grain, “the signature for block N”.
Arrives in wire order, just before the block’s stop.
EncryptedReasoningDelta(String)
The OpenAI Responses reasoning encrypted_content (bl-61a9): a close-
adjacent opaque blob folding to Content::Thinking.encrypted_content,
emitted just before the reasoning block’s stop (the wire reveals it on the
output_item.done). A Delta, not a ContentStop field — the terminator
stays a pure, uniform {index} for every block kind.
Other(Value)
Forward-compat: an unknown delta rides here verbatim (the whole
{tag: body} object) so a pinned consumer passes it through.