pub struct SubagentInfo {
pub agent_id: Option<String>,
pub agent_type: Option<String>,
pub parent_session_id: Option<String>,
}Expand description
Subagent execution information
Represents metadata about subagent (agent-within-agent) execution. Different providers implement subagents differently:
- Claude Code: Uses Task tool with
subagent_typeand returnsagentId - Codex: Creates separate session files with
source.subagentmetadata
Fields§
§agent_id: Option<String>Subagent identifier (e.g., “ba2ed465” for Claude Code, session ID for Codex)
agent_type: Option<String>Subagent type/role (e.g., “Explore”, “general-purpose”, “review”)
parent_session_id: Option<String>Parent session ID (for Codex where subagent is a separate session)
Trait Implementations§
Source§impl Clone for SubagentInfo
impl Clone for SubagentInfo
Source§fn clone(&self) -> SubagentInfo
fn clone(&self) -> SubagentInfo
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 SubagentInfo
impl Debug for SubagentInfo
Source§impl<'de> Deserialize<'de> for SubagentInfo
impl<'de> Deserialize<'de> for SubagentInfo
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 PartialEq for SubagentInfo
impl PartialEq for SubagentInfo
Source§impl Serialize for SubagentInfo
impl Serialize for SubagentInfo
impl Eq for SubagentInfo
impl StructuralPartialEq for SubagentInfo
Auto Trait Implementations§
impl Freeze for SubagentInfo
impl RefUnwindSafe for SubagentInfo
impl Send for SubagentInfo
impl Sync for SubagentInfo
impl Unpin for SubagentInfo
impl UnwindSafe for SubagentInfo
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