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 moreAuto Trait Implementations§
impl !RefUnwindSafe for SubagentSpawnRequest
impl !UnwindSafe for SubagentSpawnRequest
impl Freeze for SubagentSpawnRequest
impl Send for SubagentSpawnRequest
impl Sync for SubagentSpawnRequest
impl Unpin for SubagentSpawnRequest
impl UnsafeUnpin for SubagentSpawnRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.