pub struct SubagentSpawnRequest {
pub agent_id: String,
pub config: AgentConfig,
pub task: String,
pub run_in_background: bool,
pub resume_from: Option<String>,
pub depth: u32,
}Expand description
Inputs to SubagentCoordinator::spawn.
Fields§
§agent_id: StringCaller-chosen unique ID for this subagent. Two spawns with the same ID collide and the second is rejected.
config: AgentConfigAgent configuration (model, tools, etc.).
task: StringInitial task prompt.
run_in_background: boolIf true, SubagentCoordinator::spawn returns immediately
and the caller polls via SubagentCoordinator::tracker.
If false, the spawn still returns immediately (background
task drives the run) — the flag is informational and surfaces
in SubagentTracker::run_in_background for callers that
want to distinguish “fire-and-forget” from “foreground await”.
resume_from: Option<String>If Some(parent_id), the parent’s last response text is
prepended to task as preamble context.
depth: u32Current nesting depth (caller-supplied). The coordinator rejects spawns whose depth exceeds its configured maximum.
Trait Implementations§
Source§impl Clone for SubagentSpawnRequest
impl Clone for SubagentSpawnRequest
Source§fn clone(&self) -> SubagentSpawnRequest
fn clone(&self) -> SubagentSpawnRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more