pub struct SessionProgress {
pub activity: Option<String>,
pub at: Option<String>,
pub estimated: Option<bool>,
pub pct: Option<i32>,
pub phase: Option<String>,
}Fields§
§activity: Option<String>Activity is the one line saying what the run is doing right now ("running the reaper’s tests"), up to 120 characters, in the model’s words. Empty when nothing has estimated it yet.
at: Option<String>At is when this was determined, RFC 3339 in UTC to the second. Read it as the estimate’s AGE: an estimate is not refreshed while nothing has happened, and a stale one beside a run that is still moving is itself worth seeing. Empty when nothing has estimated it yet.
estimated: Option<bool>Estimated says a MODEL produced this, from the run’s transcript, and it may be wrong. False means the session’s own row said it: a finished run is 100% because it finished, not because anything guessed. Never treat a true here as a measurement — it is the reason to look, not the answer.
pct: Option<i32>Pct is how much of the run is done, 0 to 100. THE KEY IS ABSENT when progress is indeterminate — a run nobody can estimate is not a run that has done nothing, and rendering the second for the first is the mistake this omission exists to make impossible. Read phase before reaching for it.
phase: Option<String>Phase is what shape the run is in: running, blocked, done, error, or unknown when nothing has estimated it yet. blocked means the transcript shows the run waiting on something — an approval, a credential, an answer — which is the one state the running surface cannot report about itself. error only ever comes from the session’s own terminal status.
Implementations§
Source§impl SessionProgress
impl SessionProgress
pub fn new() -> SessionProgress
Trait Implementations§
Source§impl Clone for SessionProgress
impl Clone for SessionProgress
Source§fn clone(&self) -> SessionProgress
fn clone(&self) -> SessionProgress
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more