pub struct AgentMetadata {
pub session_id: String,
pub parent_agent_id: Option<String>,
pub spawn_reason: Option<String>,
pub model: String,
pub created_at: i64,
pub last_activity: i64,
pub working_directory: String,
pub is_busy: bool,
pub pid: Option<u32>,
}Expand description
Metadata about an agent for registry and discovery
This is stored alongside the agent socket as a .meta.json file
to enable agent discovery, tree visualization, and lifecycle management.
Fields§
§session_id: StringUnique session identifier
parent_agent_id: Option<String>Parent agent that spawned this one (if any)
spawn_reason: Option<String>Reason this agent was spawned (e.g., “Tool call: investigate auth bug”)
model: StringModel being used by this agent
created_at: i64Unix timestamp (seconds) when agent was created
last_activity: i64Unix timestamp (seconds) of last activity
working_directory: StringWorking directory for this agent
is_busy: boolWhether the agent is currently busy (processing a request)
pid: Option<u32>Process ID of the agent (for liveness checking)
Implementations§
Trait Implementations§
Source§impl Clone for AgentMetadata
impl Clone for AgentMetadata
Source§fn clone(&self) -> AgentMetadata
fn clone(&self) -> AgentMetadata
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AgentMetadata
impl Debug for AgentMetadata
Source§impl<'de> Deserialize<'de> for AgentMetadata
impl<'de> Deserialize<'de> for AgentMetadata
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<AgentMetadata> for RemoteAgentInfo
Convert from IPC AgentMetadata to Remote AgentInfo
impl From<AgentMetadata> for RemoteAgentInfo
Convert from IPC AgentMetadata to Remote AgentInfo
Source§fn from(meta: AgentMetadata) -> Self
fn from(meta: AgentMetadata) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AgentMetadata
impl RefUnwindSafe for AgentMetadata
impl Send for AgentMetadata
impl Sync for AgentMetadata
impl Unpin for AgentMetadata
impl UnsafeUnpin for AgentMetadata
impl UnwindSafe for AgentMetadata
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