Skip to main content

SkillProperties

Defined in the skills module.
Rust AI Agent SDK Properties of a skill parsed from SKILL.md frontmatter.

Fields

NameTypeDescription
nameStringSkill name (1-64 chars, lowercase, hyphens only)
descriptionStringSkill description (1-1024 chars)
licenseOption<String>License (optional)
compatibilityOption<String>Compatibility notes (optional)
allowed_toolsOption<String>Allowed tools (space-delimited)
metadataHashMap<StringAdditional metadata
pathOption<PathBuf>Path to the skill directory
instructionsOption<String>Instructions (markdown body)

Methods

new

fn new(name: impl Into<String>, description: impl Into<String>) -> Self
Create a new SkillProperties with name and description. Parameters:
NameType
nameimpl Into&lt;String&gt;
descriptionimpl Into&lt;String&gt;

get_allowed_tools

fn get_allowed_tools(&self) -> Vec<&str>
Get allowed tools as a vector.

validate

fn validate(&self) -> Result<(), ValidationError>
Validate the skill properties.

Source

View on GitHub

praisonai/src/skills/mod.rs at line 26