pub enum SessionInferenceEvent {
ProviderInput {
context: ModelContext,
},
UsageUpdated {
usage: TokenUsage,
},
ToolCall {
call_id: String,
call: Result<ToolCall, ToolCallError>,
},
Completed {
answer: String,
usage: Option<TokenUsage>,
receipt: Box<UsageReceipt>,
continuation: Option<AgentContinuation>,
},
}Expand description
One normalized event from a host-independent primary provider inference.
Variants§
ProviderInput
Exact caller-controlled material submitted to the model.
Fields
§
context: ModelContextNormalized model input and structured material.
UsageUpdated
Live usage for the current provider call.
Fields
§
usage: TokenUsageProvider-native current-call usage, normalized from thread totals.
ToolCall
One parsed or invalid application tool invocation.
Fields
§
call: Result<ToolCall, ToolCallError>Strictly parsed application call or bounded validation failure.
Completed
Terminal answer and canonical accounting for the provider call.
Fields
§
usage: Option<TokenUsage>Final provider-native current-call usage when available.
§
receipt: Box<UsageReceipt>Canonical durable receipt written by the intelligence router.
§
continuation: Option<AgentContinuation>Native Codex state after successful completion.
Trait Implementations§
Source§impl Clone for SessionInferenceEvent
impl Clone for SessionInferenceEvent
Source§fn clone(&self) -> SessionInferenceEvent
fn clone(&self) -> SessionInferenceEvent
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 SessionInferenceEvent
impl Debug for SessionInferenceEvent
Source§impl PartialEq for SessionInferenceEvent
impl PartialEq for SessionInferenceEvent
impl StructuralPartialEq for SessionInferenceEvent
Auto Trait Implementations§
impl Freeze for SessionInferenceEvent
impl RefUnwindSafe for SessionInferenceEvent
impl Send for SessionInferenceEvent
impl Sync for SessionInferenceEvent
impl Unpin for SessionInferenceEvent
impl UnsafeUnpin for SessionInferenceEvent
impl UnwindSafe for SessionInferenceEvent
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