Enum SkillReloadReason
Specifies the reason a skill was reloaded.
public enum SkillReloadReason
Fields
FileChanged = 0The skill was reloaded due to a file change.
Manual = 1The skill was manually reloaded via ReloadSkill(string).
Examples
Branching on the reload reason in a skill watcher handler:
using LMKit.Agents.Skills;
watcher.SkillReloaded += (s, e) =>
{
if (e.Reason == SkillReloadReason.FileChanged)
Console.WriteLine($"Hot-reloaded '{e.Skill.Metadata.Name}' on disk change.");
};