pub struct SkillTool;Expand description
Skill tool - invoke a skill by name. Supports inline and forked execution modes, MCP skill integration, permission rules with prefix matching, and remote skill search (ant-only).
Implementations§
Source§impl SkillTool
impl SkillTool
pub fn new() -> Self
pub fn name(&self) -> &str
pub fn description(&self) -> &str
pub fn user_facing_name(&self, _input: Option<&Value>) -> String
pub fn get_tool_use_summary(&self, input: Option<&Value>) -> Option<String>
pub fn render_tool_result_message(&self, content: &Value) -> Option<String>
pub fn input_schema(&self) -> ToolInputSchema
pub async fn execute( &self, input: Value, context: &ToolContext, ) -> Result<ToolResult, AgentError>
Sourcepub fn get_skill(&self, name: &str) -> Option<LoadedSkill>
pub fn get_skill(&self, name: &str) -> Option<LoadedSkill>
Get a skill by name
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