pub enum ContentBlockDelta {
TextDelta {
text: String,
},
InputJsonDelta {
partial_json: String,
},
CitationsDelta {
citation: TextCitation,
},
ThinkingDelta {
thinking: String,
},
SignatureDelta {
signature: String,
},
}
Expand description
Delta updates for content blocks during streaming.
This enum contains all possible types of incremental updates that can occur within a content block.
Variants§
TextDelta
Incremental text content being generated.
InputJsonDelta
Incremental JSON input for tool use blocks.
This provides partial JSON as it’s being parsed, useful for streaming tool input generation.
CitationsDelta
Citations being added to text blocks.
Fields
§
citation: TextCitation
The citation being added
ThinkingDelta
Incremental thinking content (extended reasoning).
SignatureDelta
Signature updates for thinking blocks.
Trait Implementations§
Source§impl Clone for ContentBlockDelta
impl Clone for ContentBlockDelta
Source§fn clone(&self) -> ContentBlockDelta
fn clone(&self) -> ContentBlockDelta
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ContentBlockDelta
impl Debug for ContentBlockDelta
Source§impl<'de> Deserialize<'de> for ContentBlockDelta
impl<'de> Deserialize<'de> for ContentBlockDelta
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ContentBlockDelta
impl PartialEq for ContentBlockDelta
Source§impl Serialize for ContentBlockDelta
impl Serialize for ContentBlockDelta
impl StructuralPartialEq for ContentBlockDelta
Auto Trait Implementations§
impl Freeze for ContentBlockDelta
impl RefUnwindSafe for ContentBlockDelta
impl Send for ContentBlockDelta
impl Sync for ContentBlockDelta
impl Unpin for ContentBlockDelta
impl UnwindSafe for ContentBlockDelta
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more