Table of Contents

Method EnsureSkills

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

EnsureSkills()

Gets the skill registry from capabilities, creating it if necessary.

public SkillRegistry EnsureSkills()

Returns

SkillRegistry

The SkillRegistry for this agent.

Examples

Working with the skill registry:

using LMKit.Model;
using LMKit.Agents;
using LMKit.Agents.Skills;

using var model = new LM("path/to/model.gguf");
var agent = new Agent(model);

// Access the skill registry
var skills = agent.EnsureSkills();

// Load skills from a directory
skills.LoadFromDirectory("./skills");
Console.WriteLine($"Loaded {skills.Count} skills");

Remarks

This is a convenience method equivalent to Capabilities.EnsureSkills(). Skills are modular instruction packages that can be activated based on context.