Method LoadAndRegister
LoadAndRegister(string, bool)
Loads and registers a skill from a directory.
public AgentSkill LoadAndRegister(string skillPath, bool overwrite = false)
Parameters
skillPathstringThe path to the skill directory.
overwriteboolWhether to overwrite existing skills with the same name.
Returns
- AgentSkill
The loaded and registered skill.
Examples
Loading and registering a skill in one step:
var registry = new SkillRegistry();
var skill = registry.LoadAndRegister("./skills/code-review");
Console.WriteLine($"Loaded and registered: {skill.Name}");
Exceptions
- SkillParseException
Thrown when the skill cannot be parsed.