pub struct DelegateAgentTool { /* private fields */ }Expand description
Tool for delegating tasks to other agents
This tool allows a supervisor agent to delegate specific tasks to specialized worker agents and receive their responses.
Implementations§
Source§impl DelegateAgentTool
impl DelegateAgentTool
Sourcepub fn new(registry: Arc<AgentRegistry>) -> Self
pub fn new(registry: Arc<AgentRegistry>) -> Self
Create a new delegation tool
Sourcepub fn with_timeout(self, timeout: Duration) -> Self
pub fn with_timeout(self, timeout: Duration) -> Self
Set timeout for waiting for agent response
Trait Implementations§
Source§impl Tool for DelegateAgentTool
impl Tool for DelegateAgentTool
Source§fn schema(&self) -> ToolSchema
fn schema(&self) -> ToolSchema
Get tool schema
Auto Trait Implementations§
impl Freeze for DelegateAgentTool
impl !RefUnwindSafe for DelegateAgentTool
impl Send for DelegateAgentTool
impl Sync for DelegateAgentTool
impl Unpin for DelegateAgentTool
impl UnsafeUnpin for DelegateAgentTool
impl !UnwindSafe for DelegateAgentTool
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