Class SkillActivatedEventArgs
Event arguments for the SkillActivated event.
public sealed class SkillActivatedEventArgs : EventArgs
- Inheritance
-
SkillActivatedEventArgs
- Inherited Members
Examples
Logging skill activations from a coordinator agent:
using LMKit.Agents.Skills;
SkillTool skills = agent.EnsureSkills();
skills.SkillActivated += (s, e) =>
Console.WriteLine($"Activated '{e.Skill.Metadata.Name}' (context: {e.Context ?? "(none)"})");
Constructors
- SkillActivatedEventArgs(AgentSkill, string)
Initializes a new instance of the SkillActivatedEventArgs class.
Properties
- Context
Gets the optional user context provided with the activation.
This contains any additional context the user or model provided when invoking the skill activation tool.
- Skill
Gets the skill that was activated.