pub struct SubagentRecord {Show 22 fields
pub handle: String,
pub instruction: String,
pub mode: String,
pub status: String,
pub attempt: u32,
pub result: Option<Value>,
pub error: Option<String>,
pub requested_by: Option<Value>,
pub tokens: u64,
pub created: u64,
pub updated: u64,
pub payload: Option<Value>,
pub template: Option<String>,
pub tier: Option<String>,
pub pid: Option<i32>,
pub config_path: Option<String>,
pub socket: Option<String>,
pub retire_at: Option<u64>,
pub retiring_since: Option<u64>,
pub durable: bool,
pub node: Option<NodeId>,
pub dirty: bool,
}Expand description
A subagent registry record, persisted as subagent/<handle> so a child’s
identity and result outlive both the child and this process.
Fields§
§handle: String§instruction: String§mode: String§status: String§attempt: u32§result: Option<Value>§error: Option<String>§requested_by: Option<Value>§tokens: u64§created: u64§updated: u64§payload: Option<Value>The payload (secret-free) for restore re-spawn.
template: Option<String>The template this child was instantiated from, and its tier
(flat | instance). A freeform spawn carries neither.
tier: Option<String>§pid: Option<i32>Instance tier: the child daemon’s pid, config path, A2A socket and (epoch-ms) retire-at deadline.
config_path: Option<String>§socket: Option<String>§retire_at: Option<u64>§retiring_since: Option<u64>Instance tier: set when retirement began (SIGTERM sent); the tick escalates to SIGKILL after the drain window.
durable: boolDurability class (default true). false ⇒ the record is memory-only:
never persisted, never restore-respawned — the fast path for throwaway
workers. Restored records (all persisted by construction) default true.
node: Option<NodeId>§dirty: boolTrait Implementations§
Source§impl Clone for SubagentRecord
impl Clone for SubagentRecord
Source§fn clone(&self) -> SubagentRecord
fn clone(&self) -> SubagentRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SubagentRecord
impl Debug for SubagentRecord
Source§impl<'de> Deserialize<'de> for SubagentRecord
impl<'de> Deserialize<'de> for SubagentRecord
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
Auto Trait Implementations§
impl Freeze for SubagentRecord
impl RefUnwindSafe for SubagentRecord
impl Send for SubagentRecord
impl Sync for SubagentRecord
impl Unpin for SubagentRecord
impl UnsafeUnpin for SubagentRecord
impl UnwindSafe for SubagentRecord
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