Table of Contents

Method Contains

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

Contains(string)

Checks if a skill with the specified name is registered.

public bool Contains(string name)

Parameters

name string

The skill name to check.

Returns

bool

true if the skill is registered; otherwise, false.

Examples

Checking if a skill exists before using it:

var registry = new SkillRegistry();
registry.LoadFromDirectory("./skills");

if (registry.Contains("code-review"))
{
    Console.WriteLine("Code review skill is available");
}