pub struct SkillTool { /* private fields */ }Implementations§
Source§impl SkillTool
impl SkillTool
pub fn new(skills: Vec<Skill>, skills_base_dir: PathBuf) -> Self
pub fn definition(&self) -> ToolDefinition
Sourcepub fn skill_catalog(&self) -> String
pub fn skill_catalog(&self) -> String
Return a lightweight metadata catalog for the system prompt. One line per skill: id, name, description, triggers.
pub fn skill_count(&self) -> usize
pub async fn execute(&self, params: Value) -> Result<ToolResult, ToolError>
Trait Implementations§
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