pub enum StreamOutput {
TextDelta(String),
ReasoningDelta(String),
ReasoningEncryptedValue(String),
ToolCallStart {
id: String,
name: String,
},
ToolCallDelta {
id: String,
args_delta: String,
},
}Expand description
Output event from stream processing.
Variants§
TextDelta(String)
Text content delta.
ReasoningDelta(String)
Reasoning content delta.
ReasoningEncryptedValue(String)
Opaque reasoning token/signature delta.
ToolCallStart
Tool call started with name.
ToolCallDelta
Tool call arguments delta.
Trait Implementations§
Source§impl Clone for StreamOutput
impl Clone for StreamOutput
Source§fn clone(&self) -> StreamOutput
fn clone(&self) -> StreamOutput
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 StreamOutput
impl Debug for StreamOutput
Source§impl<'de> Deserialize<'de> for StreamOutput
impl<'de> Deserialize<'de> for StreamOutput
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 StreamOutput
impl RefUnwindSafe for StreamOutput
impl Send for StreamOutput
impl Sync for StreamOutput
impl Unpin for StreamOutput
impl UnsafeUnpin for StreamOutput
impl UnwindSafe for StreamOutput
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