pub struct RunState {
pub status: RunStatus,
pub next_seq: SequenceNumber,
pub usage: TokenTotals,
pub pending_call: Option<PendingCall>,
}Expand description
Everything a log prefix implies about a run.
Fields§
§status: RunStatusWhere the run stands.
next_seq: SequenceNumberThe position the next appended event will occupy.
usage: TokenTotalsToken usage accumulated over every completed model call.
pending_call: Option<PendingCall>The dangling call intent, when one exists. Some whenever status
is RunStatus::AwaitingModel, RunStatus::AwaitingTool, or
RunStatus::NeedsReconciliation. Kept through a terminal event
too, so an explicitly failed run still shows the unresolved call.
Trait Implementations§
impl StructuralPartialEq for RunState
Auto Trait Implementations§
impl Freeze for RunState
impl RefUnwindSafe for RunState
impl Send for RunState
impl Sync for RunState
impl Unpin for RunState
impl UnsafeUnpin for RunState
impl UnwindSafe for RunState
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