pub struct SkillRegistry { /* private fields */ }Expand description
Skill registry for managing available skills
Provides skill registration, loading from directories, and lookup by name.
Implementations§
Source§impl SkillRegistry
impl SkillRegistry
Sourcepub fn with_builtins() -> Self
pub fn with_builtins() -> Self
Create a registry with built-in skills
Sourcepub fn load_from_dir(&self, dir: impl AsRef<Path>) -> Result<usize>
pub fn load_from_dir(&self, dir: impl AsRef<Path>) -> Result<usize>
Load skills from a directory
Scans the directory for .md files and attempts to parse them as skills.
Silently skips files that fail to parse.
Sourcepub fn load_from_file(&self, path: impl AsRef<Path>) -> Result<Arc<Skill>>
pub fn load_from_file(&self, path: impl AsRef<Path>) -> Result<Arc<Skill>>
Load a single skill from a file
Sourcepub fn to_system_prompt(&self) -> String
pub fn to_system_prompt(&self) -> String
Generate system prompt content from all instruction skills
Concatenates the content of all instruction-type skills for injection into the system prompt.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SkillRegistry
impl RefUnwindSafe for SkillRegistry
impl Send for SkillRegistry
impl Sync for SkillRegistry
impl Unpin for SkillRegistry
impl UnsafeUnpin for SkillRegistry
impl UnwindSafe for SkillRegistry
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