Skip to main content

SkillSource

Trait SkillSource 

Source
pub trait SkillSource: Send + Sync {
    // Required method
    fn load(&self) -> Vec<Skill>;
}
Expand description

Abstraction over the skill store so we can inject a mock in tests.

The real implementation walks workspace_dir/skills/ (and optionally the open-skills mirror); tests can substitute a pre-built Vec<Skill>.

Required Methods§

Source

fn load(&self) -> Vec<Skill>

Implementors§