pub struct CreateChildInput {
pub parent_session: Session,
pub child_id: String,
pub title: String,
pub responsibility: String,
pub assignment_prompt: String,
pub subagent_type: String,
pub model_override: Option<String>,
pub model_ref_override: Option<ProviderModelRef>,
pub runtime_metadata: HashMap<String, String>,
pub system_prompt_override: Option<String>,
pub auto_run: bool,
pub reasoning_effort: Option<ReasoningEffort>,
}Expand description
Input for creating a child session.
Fields§
§parent_session: Session§child_id: String§title: String§responsibility: String§assignment_prompt: String§subagent_type: String§model_override: Option<String>Optional model override resolved from subagent_type routing.
When None, the child inherits the parent session’s model.
model_ref_override: Option<ProviderModelRef>Optional provider+model override resolved from subagent routing. When present, this preserves cross-provider routing for child execution.
runtime_metadata: HashMap<String, String>Runtime metadata resolved from subagent routing (e.g. external agent config).
system_prompt_override: Option<String>Optional system prompt override resolved from the
SubagentProfileRegistry. When None, the child falls back to
the legacy hard-coded prompts (PLAN_AGENT_SYSTEM_PROMPT for
subagent_type == "plan", CHILD_SYSTEM_PROMPT otherwise) so
that callers that have not yet been wired up keep their pre-PR-3
behaviour byte-for-byte.
auto_run: boolWhether to immediately enqueue the child for execution.
Defaults to true.
reasoning_effort: Option<ReasoningEffort>Optional reasoning effort to apply to the child’s own LLM calls.
None (the default) leaves Session::reasoning_effort at None,
so the provider falls back to its default. The child does NOT
inherit the parent’s reasoning_effort — fan-out children that
only need a quick lookup should not pay for xhigh reasoning
just because the orchestrator is running at xhigh.
Trait Implementations§
Source§impl Clone for CreateChildInput
impl Clone for CreateChildInput
Source§fn clone(&self) -> CreateChildInput
fn clone(&self) -> CreateChildInput
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more