Table of Contents

Method Validate

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

Validate(out IReadOnlyList<string>)

Validates this skill according to the Agent Skills specification.

public bool Validate(out IReadOnlyList<string> errors)

Parameters

errors IReadOnlyList<string>

When this method returns, contains a list of validation error messages, or an empty list if validation succeeded.

Returns

bool

true if the skill is valid; otherwise, false.

Examples

Validating a skill before use:

var skill = AgentSkill.Load("./skills/my-skill");
if (!skill.Validate(out var errors))
{
    Console.WriteLine("Skill validation failed:");
    foreach (var error in errors)
    {
        Console.WriteLine($"  - {error}");
    }
}