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,
Source§fn as_framework_tool(&self) -> Option<&dyn FrameworkTool>
fn as_framework_tool(&self) -> Option<&dyn FrameworkTool>
Return
Some(&dyn FrameworkTool) if this tool is a framework-internal tool
that needs engine infrastructure injection (EventBus).
Default returns None — user-defined tools need not override this.Source§fn metadata(&self) -> ToolMetadata
fn metadata(&self) -> ToolMetadata
Machine-readable metadata for tool introspection. Read more
Auto Trait Implementations§
impl !Freeze for SubAgentTool
impl !RefUnwindSafe for SubAgentTool
impl !UnwindSafe for SubAgentTool
impl Send for SubAgentTool
impl Sync for SubAgentTool
impl Unpin for SubAgentTool
impl UnsafeUnpin 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