pub struct SkillManager { /* private fields */ }Implementations§
Source§impl SkillManager
impl SkillManager
pub fn new(skills_dir: PathBuf, bundled_dir: PathBuf) -> Self
pub async fn init(&self) -> Result<()>
pub async fn list_skills(&self) -> Vec<SkillEntry>
pub async fn get_skill(&self, name: &str) -> Option<SkillEntry>
pub async fn get_skill_content(&self, name: &str) -> Option<String>
pub async fn build_snapshot( &self, _agent_id: Option<&str>, skill_filter: Option<&[String]>, ) -> SkillSnapshot
pub async fn set_enabled(&self, name: &str, enabled: bool) -> Result<()>
pub async fn create_skill( &self, name: &str, description: &str, content: &str, ) -> Result<()>
pub async fn delete_skill(&self, name: &str) -> Result<()>
pub async fn list_skills_meta(&self) -> Vec<SkillMeta>
pub async fn load_skill(&self, name: &str) -> Result<Option<Skill>>
pub fn path(&self) -> &PathBuf
Sourcepub async fn load_from_dir(&self, dir: &Path) -> Result<()>
pub async fn load_from_dir(&self, dir: &Path) -> Result<()>
Load additional skills from an external directory (e.g. bundled defaults).
Each subdirectory containing a SKILL.md is loaded as a bundled skill.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for SkillManager
impl !RefUnwindSafe for SkillManager
impl !UnwindSafe for SkillManager
impl Send for SkillManager
impl Sync for SkillManager
impl Unpin for SkillManager
impl UnsafeUnpin for SkillManager
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