pub struct SpawnAgentTool { /* private fields */ }Expand description
Tool for spawning sub-agents.
Implementations§
Source§impl SpawnAgentTool
impl SpawnAgentTool
pub fn new(swarm: SharedSwarm, factory: Arc<dyn AgentFactory>) -> Self
Trait Implementations§
Source§impl Tool for SpawnAgentTool
impl Tool for SpawnAgentTool
fn name(&self) -> &str
fn description(&self) -> &str
fn parameters_schema(&self) -> Value
fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
args: Value,
ctx: &'life1 mut AgentContext,
) -> Pin<Box<dyn Future<Output = Result<ToolOutput, ToolError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn is_system(&self) -> bool
fn is_read_only(&self) -> bool
fn execute_readonly<'life0, 'life1, 'async_trait>(
&'life0 self,
args: Value,
_ctx: &'life1 AgentContext,
) -> Pin<Box<dyn Future<Output = Result<ToolOutput, ToolError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn to_def(&self) -> ToolDef
Auto Trait Implementations§
impl Freeze for SpawnAgentTool
impl !RefUnwindSafe for SpawnAgentTool
impl Send for SpawnAgentTool
impl Sync for SpawnAgentTool
impl Unpin for SpawnAgentTool
impl UnsafeUnpin for SpawnAgentTool
impl !UnwindSafe for SpawnAgentTool
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