Event SkillActivated
Occurs when a skill is activated through this tool.
public event EventHandler<SkillActivatedEventArgs> SkillActivated
Returns
- EventHandler<SkillActivatedEventArgs>
- Occurs when a skill is activated through this tool.
Examples
Handling skill activation events:
var skillTool = new SkillTool(registry);
skillTool.SkillActivated += (sender, e) =>
{
Console.WriteLine($"Activated: {e.Skill.Name}");
if (!string.IsNullOrEmpty(e.Context))
Console.WriteLine($"Context: {e.Context}");
};