Class SkillResourceLoadedEventArgs
Event arguments for the ResourceLoaded event.
public sealed class SkillResourceLoadedEventArgs : EventArgs
- Inheritance
-
SkillResourceLoadedEventArgs
- Inherited Members
Examples
Logging which resource a skill chose to load on each invocation:
using LMKit.Agents.Skills;
var resourceTool = new SkillResourceTool(skillRegistry);
resourceTool.ResourceLoaded += (s, e) =>
Console.WriteLine($"{e.Skill.Metadata.Name} loaded {e.Resource.Path} ({e.Content.Length} chars)");
Constructors
- SkillResourceLoadedEventArgs(AgentSkill, SkillResource, string)
Initializes a new instance of the SkillResourceLoadedEventArgs class.
Properties
- Content
Gets the content that was returned (may be truncated).
- Resource
Gets the resource that was loaded.
- Skill
Gets the skill that contains the loaded resource.