pub enum AgentEvent {
ProviderInput(String),
UsageUpdated(TokenUsage),
ToolCall(DynamicToolCall),
Completed(CompletedTurn),
}Expand description
Event yielded while a Codex turn is running.
Variants§
ProviderInput(String)
Exact UTF-8 JSONL record written by the client to Codex, including its newline.
UsageUpdated(TokenUsage)
Provider accounting for the latest completed model inference.
TokenUsage contains cumulative totals for the provider turn plus the
latest inference’s input/output counts when the provider reports them.
ToolCall(DynamicToolCall)
A dynamic function call requiring a response from the caller.
Completed(CompletedTurn)
The turn completed successfully.
Trait Implementations§
Source§impl Clone for AgentEvent
impl Clone for AgentEvent
Source§fn clone(&self) -> AgentEvent
fn clone(&self) -> AgentEvent
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 AgentEvent
impl Debug for AgentEvent
Source§impl PartialEq for AgentEvent
impl PartialEq for AgentEvent
impl StructuralPartialEq for AgentEvent
Auto Trait Implementations§
impl Freeze for AgentEvent
impl RefUnwindSafe for AgentEvent
impl Send for AgentEvent
impl Sync for AgentEvent
impl Unpin for AgentEvent
impl UnsafeUnpin for AgentEvent
impl UnwindSafe for AgentEvent
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