pub struct SkillTool {
pub skill_loader: Arc<SkillLoader>,
}Fields§
§skill_loader: Arc<SkillLoader>Implementations§
Trait Implementations§
Source§impl Tool for SkillTool
impl Tool for SkillTool
fn name(&self) -> &'static str
fn description(&self) -> &'static str
fn parameters(&self) -> Vec<ToolParameter>
fn execute<'life0, 'async_trait>(
&'life0 self,
args: Value,
) -> Pin<Box<dyn Future<Output = Result<ToolCallResult, ToolError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn to_function_define(&self) -> ToolDefinition
Auto Trait Implementations§
impl Freeze for SkillTool
impl RefUnwindSafe for SkillTool
impl Send for SkillTool
impl Sync for SkillTool
impl Unpin for SkillTool
impl UnsafeUnpin for SkillTool
impl UnwindSafe for SkillTool
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