pub enum Delta {
Text(String),
Reasoning(String),
ToolCallArgs {
index: u64,
json: String,
},
}Expand description
One piece of a reply as it arrives.
Variants§
Text(String)
Assistant text.
Reasoning(String)
Reasoning/thinking text emitted by a backend that streams it.
ToolCallArgs
A fragment of a tool call’s JSON arguments, tagged with its call index.
Trait Implementations§
impl Eq for Delta
impl StructuralPartialEq for Delta
Auto Trait Implementations§
impl Forget for Delta
impl Freeze for Delta
impl Move for Delta
impl RefUnwindSafe for Delta
impl Send for Deltawhere
RawVecInner: Send,
impl Sync for Deltawhere
RawVecInner: Sync,
impl Unpin for Delta
impl UnsafeUnpin for Delta
impl UnwindSafe for Deltawhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.