pub struct ChildRuntimeInput {Show 15 fields
pub parent_session_id: SessionId,
pub agent_id: Option<SubagentId>,
pub session_id: SessionId,
pub session_store: Option<FileSessionStore>,
pub loaded_session: Option<ResumableChildSession>,
pub existing_worktree: Option<SubagentWorktreeView>,
pub task_anchor: TaskAnchor,
pub task: SubagentTaskSpec,
pub allowed_tools: Vec<ToolName>,
pub workspace_scope: ChildWorkspaceScope,
pub depth: u8,
pub generation_config: GenerationConfig,
pub parent_primary_model: Option<ParentPrimaryModel>,
pub parent_generation_config: GenerationConfig,
pub activity_hub: Option<Arc<SubagentActivityHub>>,
}Expand description
Runtime-owned input passed to ChildRuntimeFactory when starting one child.
Fields§
§parent_session_id: SessionIdSession id owned by the parent runtime (used for shared prompt-cache keys).
agent_id: Option<SubagentId>Stable subagent identifier assigned by the parent manager (used for actor attribution and child journal storage).
session_id: SessionIdSession id owned by the child runtime.
session_store: Option<FileSessionStore>Optional child-scoped session store rooted under <sessions_dir>/<parent_id>/subagents.
loaded_session: Option<ResumableChildSession>Optional loaded child session when waking a persisted subagent after parent resume.
existing_worktree: Option<SubagentWorktreeView>Optional retained worktree metadata when waking a persisted worktree child.
task_anchor: TaskAnchorControl-plane task anchor installed in the child runtime.
task: SubagentTaskSpecParent-authored child task contract.
allowed_tools: Vec<ToolName>Tool names allowed for this child.
workspace_scope: ChildWorkspaceScopeWorkspace scope declared for this child.
depth: u8Delegation depth assigned to this child.
generation_config: GenerationConfigChild-scoped model generation controls derived from the live parent generation config and any explicit task override.
parent_primary_model: Option<ParentPrimaryModel>Live snapshot of the parent runtime’s primary provider/model at spawn time.
parent_generation_config: GenerationConfigLive snapshot of the parent runtime’s active generation config at spawn time.
activity_hub: Option<Arc<SubagentActivityHub>>Optional shared runtime-owned activity hub for this child and descendants.