Skill Loader • Rust AI Agent SDK
SkillLoader: Loader for progressive skill loading.
SkillLoader
Defined in the skills module.
Rust AI Agent SDK
Loader for progressive skill loading.
Fields
| Name | Type | Description |
|---|---|---|
skills | HashMap<String | Loaded skills by name |
metadata_cache | HashMap<String | Metadata cache (Level 1) |
Methods
new
fn new() -> SelfCreate a new loader.
load_metadata
fn load_metadata(&mut self, path: &Path) -> Result<SkillMetadata, ParseError>Load skill metadata (Level 1 – lightweight).
Parameters:
| Name | Type |
|---|---|
path | &Path |
load_full
fn load_full(&mut self, name: &str) -> Result<&SkillProperties, ParseError>Load full skill (Level 2 – instructions).
Parameters:
| Name | Type |
|---|---|
name | &str |
skill_count
fn skill_count(&self) -> usizeGet loaded skill count.
metadata_count
fn metadata_count(&self) -> usizeGet metadata count.
Source
View on GitHubpraisonai/src/skills/mod.rs at line 191