Table of Contents

Constructor SkillTool

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

SkillTool(SkillRegistry, string)

Initializes a new instance of the SkillTool class.

public SkillTool(SkillRegistry registry, string name = "activate_skill")

Parameters

registry SkillRegistry

The skill registry to expose through this tool.

name string

The tool name. Defaults to DefaultName (activate_skill).

Examples

Creating and registering a SkillTool:

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

var skillTool = new SkillTool(registry);
conversation.Tools.Register(skillTool);

Exceptions

ArgumentNullException

Thrown when registry is null.