pub struct SpawnSubagentTool { /* private fields */ }Expand description
Spawn an ephemeral SubAgent that inherits the parent agent’s identity and runs a focused prompt under the same alias.
Implementations§
Source§impl SpawnSubagentTool
impl SpawnSubagentTool
pub fn new(config: Arc<Config>, parent_alias: impl Into<String>) -> Self
Sourcepub fn with_subagent_caller(self, is_subagent_caller: bool) -> Self
pub fn with_subagent_caller(self, is_subagent_caller: bool) -> Self
Mark this tool instance as belonging to a SubAgent’s tool
registry. Triggers the depth-1 refusal on execute. The agent
loop sets this from AgentRunOverrides.is_subagent.
Trait Implementations§
Source§impl Attributable for SpawnSubagentTool
impl Attributable for SpawnSubagentTool
Source§impl Tool for SpawnSubagentTool
impl Tool for SpawnSubagentTool
Source§fn description(&self) -> &str
fn description(&self) -> &str
Human-readable description
Source§fn parameters_schema(&self) -> Value
fn parameters_schema(&self) -> Value
JSON schema for parameters
Auto Trait Implementations§
impl Freeze for SpawnSubagentTool
impl RefUnwindSafe for SpawnSubagentTool
impl Send for SpawnSubagentTool
impl Sync for SpawnSubagentTool
impl Unpin for SpawnSubagentTool
impl UnsafeUnpin for SpawnSubagentTool
impl UnwindSafe for SpawnSubagentTool
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
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more