Property Skills
- Namespace
- LMKit.TextGeneration
- Assembly
- LM-Kit.NET.dll
Skills
Registry of Agent Skills available to this conversation.
Skills provide modular capabilities with specialized knowledge and workflows, following the Agent Skills specification.
public SkillRegistry Skills { get; }
Property Value
Remarks
To enable model-driven skill discovery and activation via function calling, register a SkillTool in the Tools registry:
// Load skills from a directory
conversation.Skills.LoadFromDirectory("./skills");
// Expose skills to the model for automatic activation
conversation.Tools.Register(new SkillTool(conversation.Skills));
// The model can now call activate_skill to use skills
var result = await conversation.SubmitAsync("I need to create a PDF document");
For manual skill activation without function calling, use SkillActivator:
var activator = new SkillActivator(conversation.Skills);
var skill = conversation.Skills.Get("pdf-processing");
string instructions = activator.FormatForInjection(skill, SkillInjectionMode.SystemPrompt);