Skip to main content

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

NameTypeDescription
loaderSkillLoaderSkill loader
skill_dirsVec<PathBuf>Discovered skill directories

Methods

new

fn new() -> Self
Create a new manager.

discover

fn discover(&mut self, dirs: &[impl AsRef<Path>]) -> Vec<SkillMetadata>
Discover skills in the given directories. Parameters:
NameType
dirs&[impl AsRef&lt;Path&gt;]

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:
NameType
name&str

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

Rust LLM

Rust Providers

Rust Failover

Rust Skills