pub struct LoadSkill { /* private fields */ }Expand description
Tool to load a skill’s SKILL.md body content, or a specific ref document, or a named section.
Implementations§
Trait Implementations§
Source§impl Tool for LoadSkill
impl Tool for LoadSkill
fn spec(&self) -> ToolSpec
Source§fn is_readonly(&self) -> bool
fn is_readonly(&self) -> bool
Whether this tool only reads data without side effects.
Default: false (conservative). Override to true for read-only tools.
fn execute<'life0, 'async_trait>(
&'life0 self,
arguments: Value,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for LoadSkill
impl RefUnwindSafe for LoadSkill
impl Send for LoadSkill
impl Sync for LoadSkill
impl Unpin for LoadSkill
impl UnsafeUnpin for LoadSkill
impl UnwindSafe for LoadSkill
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