Skip to main content

parse_json_skill

Function parse_json_skill 

Source
pub fn parse_json_skill(path: &Path) -> Option<SkillMetadata>
Expand description

Parse metadata from a .json skill file.

JSON skill format:

{
  "name": "greet",
  "description": "Return a greeting string",
  "when_to_use": "greeting, hello",
  "template": "Hello, {{name}}! You have {{count}} messages."
}