Skip to main content

SubagentRosterEntry

Struct SubagentRosterEntry 

Source
#[non_exhaustive]
pub struct SubagentRosterEntry {
Show 15 fields pub subagent_id: String, pub child_session_id: Option<String>, pub agent_path: String, pub name: Option<String>, pub definition_name: Option<String>, pub parent_path: Option<String>, pub parent_subagent_id: Option<String>, pub depth: u32, pub role: Option<String>, pub objective: Option<String>, pub workflow_run_id: Option<String>, pub control_status: SubagentControlStatus, pub result_ready: bool, pub terminal_reason: Option<String>, pub duration_ms: Option<u64>,
}
Expand description

One roster row: a durable child’s identity, place, and state, projected from its control records. Rows carry no result content — the transcript stays on the child session / subagent/readResult.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§subagent_id: String

The durable child identity (subagent_id). Rows without one are not roster rows: a rejected spawn names no child.

§child_session_id: Option<String>

The child’s own session id, readable via session/read/view/page. Additive-optional: absent until the child’s start is attested.

§agent_path: String

The agent definition path (agent_path), verbatim from the spawn.

§name: Option<String>

The child’s display name: the spawn description, falling back to the spawn role. Additive-optional: absent when neither carries one; never parsed from agentPath.

§definition_name: Option<String>

The granted definition’s name (definition_grant_audit definition_name). Additive-optional: absent on spawns without a grant audit (historical records). The resolved definition id is not persisted on the spawn record, so the name is what the roster can truthfully carry.

§parent_path: Option<String>

The parent row’s agentPath. Additive-optional: absent whenever parentSubagentId is.

§parent_subagent_id: Option<String>

The parent’s subagentId: the roster row whose child session issued this child’s spawn. Additive-optional: absent when the parent is the root session, or when the parent row is not in the roster or not yet attested — never guessed, never derived from agentPath.

§depth: u32

The spawn depth (1 = a root-session child).

§role: Option<String>

The spawn role. Additive-optional: absent when the spawn carried none.

§objective: Option<String>

The spawn objective. Additive-optional: absent when the spawn carried none.

§workflow_run_id: Option<String>

The owning dynamic workflow run id, when the child was workflow-admitted. Additive-optional: absent for native spawns.

§control_status: SubagentControlStatus

The child’s control status: Accepted at spawn, then the latest StatusUpdated / Closed / ResultReady / RecoveryAvailable / RecoveryDecision (Accepted | Starting | Running | ResultReady | Closing | Closed | RecoveryPending | ManualReconciliation).

§result_ready: bool

Whether the child’s latest attempt’s result is ready (a ResultReady for the latest admitted attempt seen).

§terminal_reason: Option<String>

The terminal reason: the result envelope’s errorKind when present, else the cancel outcome’s reason. Additive-optional: absent on live rows and on terminals that carry no reason — never fabricated from the close outcome’s status word.

§duration_ms: Option<u64>

The child’s observed wall-clock duration in ms, when the runtime observed one. Additive-optional: absent until first observation.

Trait Implementations§

Source§

impl Clone for SubagentRosterEntry

Source§

fn clone(&self) -> Self

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 SubagentRosterEntry

Source§

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

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for SubagentRosterEntry

Source§

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 Eq for SubagentRosterEntry

Source§

impl PartialEq for SubagentRosterEntry

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for SubagentRosterEntry

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for SubagentRosterEntry

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<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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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> 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 = !

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

fn try_from(value: U) -> Result<T, !>

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.