#[non_exhaustive]pub enum AnthropicDelta {
TextDelta {
text: String,
},
ThinkingDelta {
thinking: String,
},
SignatureDelta {},
InputJsonDelta {
partial_json: String,
},
Unknown,
}Expand description
One fragment appended to an open block.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
TextDelta
A fragment of assistant text.
ThinkingDelta
A fragment of extended thinking.
SignatureDelta
The cryptographic signature over a thinking block. Not reasoning text and not content, so it is parsed and dropped.
InputJsonDelta
A fragment of a tool call’s JSON arguments. Split at arbitrary byte positions.
Unknown
A delta type this SDK does not recognise.
Trait Implementations§
Source§impl Clone for AnthropicDelta
impl Clone for AnthropicDelta
Source§fn clone(&self) -> AnthropicDelta
fn clone(&self) -> AnthropicDelta
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AnthropicDelta
impl Debug for AnthropicDelta
Source§impl<'de> Deserialize<'de> for AnthropicDelta
impl<'de> Deserialize<'de> for AnthropicDelta
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
Auto Trait Implementations§
impl Freeze for AnthropicDelta
impl RefUnwindSafe for AnthropicDelta
impl Send for AnthropicDelta
impl Sync for AnthropicDelta
impl Unpin for AnthropicDelta
impl UnsafeUnpin for AnthropicDelta
impl UnwindSafe for AnthropicDelta
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