Skip to main content

DashboardAgent

Struct DashboardAgent 

Source
pub struct DashboardAgent {
Show 27 fields pub id: String, pub blueprint_name: String, pub stage: String, pub stage_index: usize, pub num_stages: usize, pub status: AgentDisplayStatus, pub tokens_in: usize, pub tokens_out: usize, pub cached_tokens: usize, pub iteration: usize, pub waiting_prompt: Option<String>, pub pending_request: Option<InteractionRequest>, pub last_answered_request_id: Option<String>, pub context_snapshot: Option<Arc<ContextSnapshot>>, pub stages: Vec<StageRecord>, pub workdir: String, pub task: String, pub title: Option<String>, pub model: Option<String>, pub parent_id: Option<String>, pub depth: usize, pub started_at: i64, pub last_progress_at: Option<i64>, pub active_until: Option<i64>, pub waiting_secs: u64, pub accepts_messages: bool, pub taint_summary: Vec<(String, String)>, /* private fields */
}
Expand description

An agent displayed in the dashboard.

Fields§

§id: String

The run id, which is also what every action against this row quotes.

§blueprint_name: String

The blueprint’s name, as the manifest declares it.

§stage: String

The stage the run is in, by name.

§stage_index: usize

That stage’s position in the blueprint’s list.

§num_stages: usize

How many stages the blueprint has, so the pair renders as “3 of 7”.

§status: AgentDisplayStatus

What the row shows, including states no other status enum has.

§tokens_in: usize

Cumulative prompt (input) tokens for background runs.

§tokens_out: usize

Cumulative completion (output) tokens for background runs.

§cached_tokens: usize

Cumulative tokens read from provider cache.

§iteration: usize

Inference turns taken in the current stage.

§waiting_prompt: Option<String>

The question a waiting run is asking, in one line, for the list row.

§pending_request: Option<InteractionRequest>

Full structured interaction request (populated for WaitingInput agents)

§last_answered_request_id: Option<String>

The request_id we most recently submitted a response for, used to suppress re-showing the same prompt before the worker has consumed the response.

§context_snapshot: Option<Arc<ContextSnapshot>>

Live context window snapshot from context.json (background workers only) Shared, not owned: the live snapshot comes out of the sync tick’s stat-gated cache, and cloning a full context window per tick was the churn that cache exists to remove.

§stages: Vec<StageRecord>

Per-stage records from stages.json

§workdir: String

Working directory the agent ran in

§task: String

Original task prompt

§title: Option<String>

Auto-generated short title (None until the worker generates it).

§model: Option<String>

Original model override

§parent_id: Option<String>

Parent agent ID (if this is a sub-agent)

§depth: usize

Depth in the sub-agent tree (0 = root)

§started_at: i64

Unix timestamp when the run started (for elapsed display)

§last_progress_at: Option<i64>

Unix timestamp of the run’s last recorded progress (None before the first progress mark). Drives the recent-activity sort.

§active_until: Option<i64>

Frozen wall-clock time (Unix seconds) when the agent entered a waiting state. Used to prevent the elapsed timer from incrementing while waiting for input.

§waiting_secs: u64

Total seconds spent waiting for user input across all completed waits. Subtracted from elapsed to show only actual running time.

§accepts_messages: bool

Whether the current stage accepts mid-run user messages

§taint_summary: Vec<(String, String)>

Per-region taint levels (region_name, taint_level_string). Empty when taint tracking is disabled or not yet populated.

Trait Implementations§

Source§

impl Clone for DashboardAgent

Source§

fn clone(&self) -> DashboardAgent

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DashboardAgent

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> ConditionalSend for T
where T: Send,

Source§

impl<T> Downcast for T
where T: Any,

Source§

fn into_any(self: Box<T>) -> Box<dyn Any>

Converts Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.
Source§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Converts Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
Source§

fn as_any(&self) -> &(dyn Any + 'static)

Converts &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
Source§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Converts &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
Source§

impl<T> DowncastSend for T
where T: Any + Send,

Source§

fn into_any_send(self: Box<T>) -> Box<dyn Any + Send>

Converts Box<Trait> (where Trait: DowncastSend) to Box<dyn Any + Send>, which can then be downcast into Box<ConcreteType> where ConcreteType implements Trait.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromRef<T> for T
where T: Clone,

Source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
Source§

impl<T> FutureExt for T

Source§

fn with_context(self, otel_cx: Context) -> WithContext<Self>

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
Source§

fn with_current_context(self) -> WithContext<Self>

Attaches the current Context to this type, returning a WithContext wrapper. Read more
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> IntoResult<T> for T

Source§

fn into_result(self) -> Result<T, RunSystemError>

Converts this type into the system output type.
Source§

impl<A> Is for A
where A: Any,

Source§

fn is<T>() -> bool
where T: Any,

Checks if the current type “is” another type, using a TypeId equality comparison. This is most useful in the context of generic logic. Read more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> TypeData for T
where T: 'static + Send + Sync + Clone,

Source§

fn clone_type_data(&self) -> Box<dyn TypeData>

Creates a type-erased clone of this value.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more