pub enum StepEventKind {
Show 14 variants
RunStart,
RunSettled,
CompletionCall,
ModelTurnFinished,
InvalidToolCall,
TextDelta,
ReasoningDelta,
ToolCallDelta,
CompletionDispatch,
ToolDispatch,
EmbedDispatch,
RerankDispatch,
RetrieveDispatch,
CustomDispatch,
}Expand description
Hook event kind used only as an observation performance hint.
Variants§
RunStart
on_run_start.
RunSettled
on_run_settled.
CompletionCall
on_completion_call.
ModelTurnFinished
on_model_turn_finished.
InvalidToolCall
on_invalid_tool_call.
TextDelta
on_text_delta.
ReasoningDelta
on_reasoning_delta.
ToolCallDelta
on_tool_call_delta.
CompletionDispatch
on_dispatch/on_outcome for a completion effect. Every dispatched
completion gets one outcome; only an accepted turn’s can be replaced.
ToolDispatch
on_dispatch/on_outcome for a tool-call effect.
EmbedDispatch
on_dispatch/on_outcome for an embedding effect (observe-only by
default: opt in through observes).
RerankDispatch
on_dispatch/on_outcome for a reranking effect (observe-only by
default).
RetrieveDispatch
on_dispatch/on_outcome for a retrieval effect (observe-only by
default).
CustomDispatch
on_dispatch/on_outcome for a custom effect (observe-only by
default).
Implementations§
Source§impl StepEventKind
impl StepEventKind
Sourcepub const fn for_family(family: EffectFamily) -> Self
pub const fn for_family(family: EffectFamily) -> Self
The dispatch-boundary event kind for an effect family.
Trait Implementations§
Source§impl Clone for StepEventKind
impl Clone for StepEventKind
impl Copy for StepEventKind
Source§impl Debug for StepEventKind
impl Debug for StepEventKind
impl Eq for StepEventKind
Source§impl Hash for StepEventKind
impl Hash for StepEventKind
Source§impl PartialEq for StepEventKind
impl PartialEq for StepEventKind
impl StructuralPartialEq for StepEventKind
Auto Trait Implementations§
impl Freeze for StepEventKind
impl RefUnwindSafe for StepEventKind
impl Send for StepEventKind
impl Sync for StepEventKind
impl Unpin for StepEventKind
impl UnsafeUnpin for StepEventKind
impl UnwindSafe for StepEventKind
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.