pub struct SubagentStartedData {
pub agent_description: String,
pub agent_display_name: String,
pub agent_name: String,
pub agent_type: Option<String>,
pub execution_mode: Option<String>,
pub factory_run_id: Option<String>,
pub model: Option<String>,
pub model_selection_source: Option<SubagentModelSelectionSource>,
pub parent_id: Option<String>,
pub resumable: Option<bool>,
pub task_model_source: Option<SubagentTaskModelSource>,
pub tool_call_id: String,
}Expand description
Session event “subagent.started”. Sub-agent startup details including parent tool call and agent information
Fields§
§agent_description: StringDescription of what the sub-agent does
agent_display_name: StringHuman-readable display name of the sub-agent
agent_name: StringInternal name of the sub-agent
agent_type: Option<String>Type of the sub-agent selected at spawn time.
execution_mode: Option<String>Whether the sub-agent runs synchronously or in the background.
factory_run_id: Option<String>Root id of the factory run that spawned this sub-agent, when it was spawned by one.
model: Option<String>Model the sub-agent will run with, when known at start.
model_selection_source: Option<SubagentModelSelectionSource>Authority or runtime mechanism responsible for sub-agent model selection, when known at start.
parent_id: Option<String>Task-registry ID of the spawning sub-agent. Absent when the root session spawned this child.
resumable: Option<bool>Whether this sub-agent can be resumed. Currently always false.
task_model_source: Option<SubagentTaskModelSource>Where the model input for this sub-agent came from. Present when the task planner resolved the launch (the task tool and factory agents); absent for sub-agents created through other runtime paths.
tool_call_id: StringTool call ID of the parent tool invocation that spawned this sub-agent