pub enum ModelEvent {
TextDelta(String),
CommentaryDelta(String),
ReasoningDelta(String),
ToolCallReady(ToolCall),
WebSearchStarted {
call_id: String,
},
WebSearchCompleted {
call_id: String,
action: WebSearchAction,
},
}Expand description
Provider-neutral streaming output before submission correlation is attached.
Variants§
TextDelta(String)
Selects the text delta case.
CommentaryDelta(String)
Selects the commentary delta case.
ReasoningDelta(String)
Selects the reasoning delta case.
ToolCallReady(ToolCall)
One immutable, fully validated model call in final output order.
Providers emit this before stream EOF when the complete call is known. The
agent may begin execution immediately; the final ModelOutput must contain
the same call and order.
WebSearchStarted
Selects the web search started case.
WebSearchCompleted
Selects the web search completed case.
Implementations§
Source§impl ModelEvent
impl ModelEvent
Trait Implementations§
Source§impl Clone for ModelEvent
impl Clone for ModelEvent
Source§impl Debug for ModelEvent
impl Debug for ModelEvent
impl Eq for ModelEvent
Source§impl PartialEq for ModelEvent
impl PartialEq for ModelEvent
impl StructuralPartialEq for ModelEvent
Auto Trait Implementations§
impl Freeze for ModelEvent
impl RefUnwindSafe for ModelEvent
impl Send for ModelEvent
impl Sync for ModelEvent
impl Unpin for ModelEvent
impl UnsafeUnpin for ModelEvent
impl UnwindSafe for ModelEvent
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.