Table of Contents

Event Error

Namespace
LMKit.Agents.Skills
Assembly
LM-Kit.NET.dll

Occurs when an error happens during reload.

public event EventHandler<SkillWatcherErrorEventArgs> Error

Returns

EventHandler<SkillWatcherErrorEventArgs>
Occurs when an error happens during reload.

Examples

Handling watcher errors:

var watcher = new SkillWatcher(registry, "./skills");
watcher.Error += (sender, e) =>
{
    Console.WriteLine($"Error in {e.SkillPath}: {e.Exception.Message}");
};