pub struct AgentRuntime {Show 21 fields
pub agent_id: String,
pub state: AgentRuntimeState,
pub detail: Option<String>,
pub resets_at: Option<u64>,
pub block_id: Option<String>,
pub waiting_in: Option<String>,
pub desired: AgentDesiredState,
pub name: String,
pub provider: String,
pub icon: String,
pub color: Option<String>,
pub blocked: Option<String>,
pub runtime: RuntimeKind,
pub model_id: Option<String>,
pub model_label: Option<String>,
pub model_source: Option<String>,
pub effort: Option<String>,
pub pending_switch: Option<String>,
pub definition_model_label: Option<String>,
pub quiet_since_ms: Option<u64>,
pub handover: Option<HandoverSummary>,
}Expand description
One agent’s runtime state, with what a row needs to show it before it has a pane. The payload of
agentruntime:changed:<agent id> and a row of agentruntime.list.
Fields§
§agent_id: StringThe agent’s UID, the id of agentidentities:changed:<agent id>.
state: AgentRuntimeState§detail: Option<String>Why, for a state that has a reason: usage_limit, needs_login, starts_on_first_message or
browser_request; for error, the class of its last failure (rate_limited, network…).
resets_at: Option<u64>When a limit lifts (unix ms), when it is known.
block_id: Option<String>The block the agent runs in, shown in a pane or parked; absent for an agent that has never had one.
waiting_in: Option<String>The pane where the person answers, when that is not the agent’s own: the Browser pane its open
request waits in (detail is browser_request).
desired: AgentDesiredState§name: String§provider: String§icon: String§color: Option<String>The colour its pane shows, once it has had one.
blocked: Option<String>Why a start would be refused now, for an agent that is stopped and wanted running (a message waits
for it, or its block says running): a limit it is over, as agent_lifecycle::start_blocked words it.
runtime: RuntimeKindWhere it runs: from its pane’s agentMode when it has a block, else from its definition’s
agent_type, so a stopped agent says it too. Anything unknown is host.
model_id: Option<String>The model it runs, as its harness names it, when anything says (live facts spec §4.1).
model_label: Option<String>The short form of model_id (Sonnet 5.5), or the route’s own label.
model_source: Option<String>Where the model is known from: effective (the CLI reported it), observed, route,
requested or unknown. A requested or unknown one is shown muted.
effort: Option<String>The effort level it runs at, when it is known.
pending_switch: Option<String>The short name of the model it switches to at the end of the turn, when a model change waits.
definition_model_label: Option<String>The short name of the model its definition asks for, when that is not the one it runs.
quiet_since_ms: Option<u64>When it went quiet (unix ms), while it owes work and has done nothing for the quiet time: the Swarm shows “quiet 22 min” from it (SPEC_LEADER_TOLD_WHEN_AN_AGENT_GOES_QUIET_2026_11_21.md §6). From the last quiet sweep.
handover: Option<HandoverSummary>Where the agent went, when it was handed over or moved to another computer: its pane in the window shows that it moved, with the way back. Absent for an agent that is here.
Trait Implementations§
Source§impl Clone for AgentRuntime
impl Clone for AgentRuntime
Source§fn clone(&self) -> AgentRuntime
fn clone(&self) -> AgentRuntime
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AgentRuntime
impl Debug for AgentRuntime
Source§impl<'de> Deserialize<'de> for AgentRuntime
impl<'de> Deserialize<'de> for AgentRuntime
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AgentRuntime, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AgentRuntime, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for AgentRuntime
impl PartialEq for AgentRuntime
Source§impl Serialize for AgentRuntime
impl Serialize for AgentRuntime
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for AgentRuntime
Source§impl TS for AgentRuntime
impl TS for AgentRuntime
Source§type WithoutGenerics = AgentRuntime
type WithoutGenerics = AgentRuntime
WithoutGenerics should just be Self.
If the type does have generic parameters, then all generic parameters must be replaced with
a dummy type, e.g ts_rs::Dummy or (). The only requirement for these dummy types is that
EXPORT_TO must be None. Read moreSource§type OptionInnerType = AgentRuntime
type OptionInnerType = AgentRuntime
std::option::Option<T>, then this associated type is set to T.
All other implementations of TS should set this type to Self instead.Source§fn docs() -> Option<String>
fn docs() -> Option<String>
TS is derived, docs are
automatically read from your doc comments or #[doc = ".."] attributesSource§fn decl_concrete(cfg: &Config) -> String
fn decl_concrete(cfg: &Config) -> String
TS::decl().
If this type is not generic, then this function is equivalent to TS::decl().Source§fn decl(cfg: &Config) -> String
fn decl(cfg: &Config) -> String
type User = { user_id: number, ... }.
This function will panic if the type has no declaration. Read moreSource§fn inline(cfg: &Config) -> String
fn inline(cfg: &Config) -> String
{ user_id: number }.
This function will panic if the type cannot be inlined.Source§fn inline_flattened(cfg: &Config) -> String
fn inline_flattened(cfg: &Config) -> String
Source§fn visit_generics(v: &mut impl TypeVisitor)where
AgentRuntime: 'static,
fn visit_generics(v: &mut impl TypeVisitor)where
AgentRuntime: 'static,
Source§fn output_path() -> Option<PathBuf>
fn output_path() -> Option<PathBuf>
T should be exported, relative to the output directory.
The returned path does not include any base directory. Read moreSource§fn visit_dependencies(v: &mut impl TypeVisitor)where
AgentRuntime: 'static,
fn visit_dependencies(v: &mut impl TypeVisitor)where
AgentRuntime: 'static,
§fn dependencies(cfg: &Config) -> Vec<Dependency>where
Self: 'static,
fn dependencies(cfg: &Config) -> Vec<Dependency>where
Self: 'static,
§fn export(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
fn export(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
TS::export_all]. Read more§fn export_all(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
fn export_all(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
TS::export]. Read moreAuto Trait Implementations§
impl Freeze for AgentRuntime
impl RefUnwindSafe for AgentRuntime
impl Send for AgentRuntime
impl Sync for AgentRuntime
impl Unpin for AgentRuntime
impl UnsafeUnpin for AgentRuntime
impl UnwindSafe for AgentRuntime
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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