pub struct SubAgentTool { /* private fields */ }Implementations§
Source§impl SubAgentTool
impl SubAgentTool
pub fn new( name: &'static str, description: &'static str, sub_runtime: AgentRuntime, ) -> Self
pub fn with_persistent( name: &'static str, description: &'static str, sub_runtime: AgentRuntime, ) -> Self
Trait Implementations§
Source§impl Tool for SubAgentTool
impl Tool for SubAgentTool
fn name(&self) -> &'static str
fn definition(&self) -> Value
fn call<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
args: &'life1 Value,
ctx: &'life2 ToolContext,
) -> Pin<Box<dyn Future<Output = AgentResult<ToolOutput>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Auto Trait Implementations§
impl !Freeze for SubAgentTool
impl !RefUnwindSafe for SubAgentTool
impl Send for SubAgentTool
impl Sync for SubAgentTool
impl Unpin for SubAgentTool
impl UnsafeUnpin for SubAgentTool
impl !UnwindSafe for SubAgentTool
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