pub struct AgentInstance {Show 15 fields
pub id: String,
pub definition_id: String,
pub parent_instance_id: String,
pub block_id: String,
pub session_id: String,
pub status: String,
pub github_context: String,
pub started_at: i64,
pub ended_at: i64,
pub created_at: i64,
pub identity_id: String,
pub memory_id: String,
pub instance_name: String,
pub working_directory: String,
pub display_hidden: bool,
}Expand description
One row per running/historical execution of an agent definition.
block_id / session_id / github_context are modelled as empty
strings on the wire rather than Option<String> to match the
existing schema conventions (NOT NULL DEFAULT ''). Callers
that need structured absence can use .is_empty().
Fields§
§id: String§definition_id: String§parent_instance_id: String§block_id: String§session_id: String§status: String§github_context: StringJSON-encoded GitHubContext, or empty string.
started_at: i64§ended_at: i64§created_at: i64§identity_id: StringFK to db_identity_bundles.id. Empty string means “use the blank
singleton” (= ambient creds, no env-var injection). Set at
instantiation via the launch modal’s Identity dropdown.
memory_id: StringFK to db_memory_bundles.id. Empty string means “use the blank
singleton” (= vanilla CLI, no instructions). Set at
instantiation via the launch modal’s Memory dropdown.
instance_name: StringUser-chosen instance name (becomes AGENTMUX_AGENT_ID in the
spawn env). Empty for pre-v8 rows and for un-named launches.
Drives the “Continue agent” dropdown in the launch modal.
working_directory: StringAbsolute path returned by allocate_agent_workdir at spawn.
Stored explicitly (rather than re-derived from the slug at
continue-time) so the continue flow is robust against
slug-rule changes and user-side renames.
Soft-delete flag for the “Forget agent” affordance. Hidden rows stay on disk for audit + recovery.
Trait Implementations§
Source§impl Clone for AgentInstance
impl Clone for AgentInstance
Source§fn clone(&self) -> AgentInstance
fn clone(&self) -> AgentInstance
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AgentInstance
impl Debug for AgentInstance
Source§impl<'de> Deserialize<'de> for AgentInstance
impl<'de> Deserialize<'de> for AgentInstance
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for AgentInstance
impl RefUnwindSafe for AgentInstance
impl Send for AgentInstance
impl Sync for AgentInstance
impl Unpin for AgentInstance
impl UnwindSafe for AgentInstance
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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.