pub struct SkillActivateTool { /* private fields */ }Implementations§
Source§impl SkillActivateTool
impl SkillActivateTool
pub fn new(registry: Arc<dyn SkillRegistry>) -> SkillActivateTool
Trait Implementations§
Source§impl Clone for SkillActivateTool
impl Clone for SkillActivateTool
Source§fn clone(&self) -> SkillActivateTool
fn clone(&self) -> SkillActivateTool
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SkillActivateTool
impl Debug for SkillActivateTool
Source§impl Tool for SkillActivateTool
impl Tool for SkillActivateTool
Source§fn descriptor(&self) -> ToolDescriptor
fn descriptor(&self) -> ToolDescriptor
Get the tool descriptor.
Source§fn execute<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
args: Value,
ctx: &'life1 ToolCallContext<'life2>,
) -> Pin<Box<dyn Future<Output = Result<ToolResult, ToolError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
SkillActivateTool: 'async_trait,
fn execute<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
args: Value,
ctx: &'life1 ToolCallContext<'life2>,
) -> Pin<Box<dyn Future<Output = Result<ToolResult, ToolError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
SkillActivateTool: 'async_trait,
Execute the tool. Read more
Source§fn execute_effect<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
args: Value,
ctx: &'life1 ToolCallContext<'life2>,
) -> Pin<Box<dyn Future<Output = Result<ToolExecutionEffect, ToolError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
SkillActivateTool: 'async_trait,
fn execute_effect<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
args: Value,
ctx: &'life1 ToolCallContext<'life2>,
) -> Pin<Box<dyn Future<Output = Result<ToolExecutionEffect, ToolError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
SkillActivateTool: 'async_trait,
Execute tool and return structured effects. Read more
Auto Trait Implementations§
impl Freeze for SkillActivateTool
impl !RefUnwindSafe for SkillActivateTool
impl Send for SkillActivateTool
impl Sync for SkillActivateTool
impl Unpin for SkillActivateTool
impl !UnwindSafe for SkillActivateTool
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