Table of Contents

Class SkillMatch

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

Represents a match result from skill discovery or semantic matching.

When an agent evaluates which skills might be relevant to a user request, it produces SkillMatch instances that rank skills by relevance.

public sealed class SkillMatch : IComparable<SkillMatch>
Inheritance
SkillMatch
Implements
Inherited Members

Constructors

SkillMatch(AgentSkill, float, string, bool)

Initializes a new instance of the SkillMatch class.

Properties

IsExplicitTrigger

Gets a value indicating whether this match was from an explicit trigger (slash command or keyword) rather than semantic matching.

MatchedTrigger

Gets the trigger or pattern that caused this match, if applicable.

May be null if the match was determined by semantic similarity rather than explicit triggers.

Score

Gets the match score between 0.0 (no match) and 1.0 (perfect match).

Higher scores indicate stronger relevance to the user's request.

Skill

Gets the matched skill.

Methods

CompareTo(SkillMatch)

Compares this match to another based on score (descending order).

Higher scores are considered "less than" for sorting purposes, so the highest scores appear first when sorted.

ToString()

Returns a string representation of this match.