pub struct LoadSkillResourceTool { /* private fields */ }Implementations§
Source§impl LoadSkillResourceTool
impl LoadSkillResourceTool
pub fn new(registry: Arc<dyn SkillRegistry>) -> LoadSkillResourceTool
Trait Implementations§
Source§impl Clone for LoadSkillResourceTool
impl Clone for LoadSkillResourceTool
Source§fn clone(&self) -> LoadSkillResourceTool
fn clone(&self) -> LoadSkillResourceTool
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 LoadSkillResourceTool
impl Debug for LoadSkillResourceTool
Source§impl Tool for LoadSkillResourceTool
impl Tool for LoadSkillResourceTool
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,
LoadSkillResourceTool: '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,
LoadSkillResourceTool: 'async_trait,
Execute the tool. Read more
Source§fn validate_args(&self, args: &Value) -> Result<(), ToolError>
fn validate_args(&self, args: &Value) -> Result<(), ToolError>
Validate tool arguments against the descriptor’s JSON Schema before execution. 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,
Self: '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,
Self: 'async_trait,
Execute tool and return structured effects. Read more
Auto Trait Implementations§
impl Freeze for LoadSkillResourceTool
impl !RefUnwindSafe for LoadSkillResourceTool
impl Send for LoadSkillResourceTool
impl Sync for LoadSkillResourceTool
impl Unpin for LoadSkillResourceTool
impl !UnwindSafe for LoadSkillResourceTool
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