Constructor SkillTool
SkillTool(SkillRegistry, string)
Initializes a new instance of the SkillTool class.
public SkillTool(SkillRegistry registry, string name = "activate_skill")
Parameters
registrySkillRegistryThe skill registry to expose through this tool.
namestringThe 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
registryisnull.