pub enum SemanticEvent {
ReasoningDelta(String),
TextDelta(String),
ToolCallStart {
index: usize,
id: String,
name: String,
},
ToolArgumentsDelta {
index: usize,
json_fragment: String,
},
ToolCallEnd,
Finished {
reason: FinishReason,
},
}Expand description
Semantic event emitted by generation orchestration.
Variants§
ReasoningDelta(String)
Incremental reasoning content.
TextDelta(String)
Incremental user-visible text.
ToolCallStart
A structured tool call began.
Fields
ToolArgumentsDelta
Incremental structured tool arguments.
Fields
ToolCallEnd
A structured tool call ended.
Finished
Generation terminated.
Fields
§
reason: FinishReasonThe condition that ended the stream.
Trait Implementations§
Source§impl Clone for SemanticEvent
impl Clone for SemanticEvent
Source§fn clone(&self) -> SemanticEvent
fn clone(&self) -> SemanticEvent
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 SemanticEvent
impl Debug for SemanticEvent
Source§impl<'de> Deserialize<'de> for SemanticEvent
impl<'de> Deserialize<'de> for SemanticEvent
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
impl Eq for SemanticEvent
Source§impl PartialEq for SemanticEvent
impl PartialEq for SemanticEvent
Source§impl Serialize for SemanticEvent
impl Serialize for SemanticEvent
impl StructuralPartialEq for SemanticEvent
Auto Trait Implementations§
impl Freeze for SemanticEvent
impl RefUnwindSafe for SemanticEvent
impl Send for SemanticEvent
impl Sync for SemanticEvent
impl Unpin for SemanticEvent
impl UnsafeUnpin for SemanticEvent
impl UnwindSafe for SemanticEvent
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