pub enum TurnEvent {
ThoughtDelta(String),
Completed {
context_reset: bool,
input_tokens: u64,
output_tokens: u64,
},
Failed(String),
PidUpdate(Option<u32>),
}Expand description
Incremental event emitted during one agent turn.
Events are sent through an mpsc::UnboundedSender as the turn
progresses, enabling transient loader updates without appending partial turn
output into the persisted transcript.
Variants§
ThoughtDelta(String)
A streamed thinking/planning or tool-status fragment shown in the transient loader.
Completed
The turn completed successfully with final token counts.
Fields
Failed(String)
The turn failed with an error description.
PidUpdate(Option<u32>)
A child process PID update.
Announces a running or retained runtime (Some(pid)) or clears it
when the runtime shuts down (None). Consumers update resource
accounting. Cancellation belongs to the runtime owner; hosts must not
signal a sampled accounting PID.
Trait Implementations§
impl StructuralPartialEq for TurnEvent
Auto Trait Implementations§
impl Freeze for TurnEvent
impl RefUnwindSafe for TurnEvent
impl Send for TurnEvent
impl Sync for TurnEvent
impl Unpin for TurnEvent
impl UnsafeUnpin for TurnEvent
impl UnwindSafe for TurnEvent
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