pub struct SkillScriptTool { /* private fields */ }Implementations§
Source§impl SkillScriptTool
impl SkillScriptTool
pub fn new(registry: Arc<dyn SkillRegistry>) -> SkillScriptTool
Trait Implementations§
Source§impl Clone for SkillScriptTool
impl Clone for SkillScriptTool
Source§fn clone(&self) -> SkillScriptTool
fn clone(&self) -> SkillScriptTool
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 SkillScriptTool
impl Debug for SkillScriptTool
Source§impl Tool for SkillScriptTool
impl Tool for SkillScriptTool
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,
SkillScriptTool: '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,
SkillScriptTool: '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 SkillScriptTool
impl !RefUnwindSafe for SkillScriptTool
impl Send for SkillScriptTool
impl Sync for SkillScriptTool
impl Unpin for SkillScriptTool
impl !UnwindSafe for SkillScriptTool
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