Documentation Index
Fetch the complete documentation index at: https://docs.praison.ai/llms.txt
Use this file to discover all available pages before exploring further.
SkillManager
Defined in the skills module.
Rust AI Agent SDK
Manager for discovering and using skills.
Fields
| Name | Type | Description |
|---|
loader | SkillLoader | Skill loader |
skill_dirs | Vec<PathBuf> | Discovered skill directories |
Methods
new
Create a new manager.
discover
fn discover(&mut self, dirs: &[impl AsRef<Path>]) -> Vec<SkillMetadata>
Discover skills in the given directories.
Parameters:
| Name | Type |
|---|
dirs | &[impl AsRef<Path>] |
get_default_dirs
fn get_default_dirs() -> Vec<PathBuf>
Get default skill directories.
load
fn load(&mut self, name: &str) -> Result<&SkillProperties, ParseError>
Load a skill by name.
Parameters:
to_prompt
fn to_prompt(&self) -> String
Generate XML prompt for all discovered skills.
skill_count
fn skill_count(&self) -> usize
Get skill count.
list_skills
fn list_skills(&self) -> Vec<&str>
List all discovered skill names.
Source
View on GitHub
praisonai/src/skills/mod.rs at line 334