Constructor AgentCapabilities
AgentCapabilities()
Initializes a new instance of the AgentCapabilities class with no capabilities.
public AgentCapabilities()
Examples
Creating empty capabilities:
using LMKit.Agents;
var capabilities = new AgentCapabilities();
Console.WriteLine(capabilities.IsEmpty); // True
AgentCapabilities(ToolRegistry, SkillRegistry, AgentMemory)
Initializes a new instance of the AgentCapabilities class with the specified components.
public AgentCapabilities(ToolRegistry tools, SkillRegistry skills, AgentMemory memory)
Parameters
toolsToolRegistryThe tool registry, or null if no tools are needed.
skillsSkillRegistryThe skill registry, or null if no skills are needed.
memoryAgentMemoryThe agent memory, or null if no memory is needed.
Examples
Creating capabilities with all components:
using LMKit.Model;
using LMKit.Agents;
using LMKit.Agents.Tools;
using LMKit.Agents.Skills;
// Prepare components
var tools = new ToolRegistry();
tools.Register(new CalculatorTool());
var skills = new SkillRegistry();
skills.LoadFromDirectory("./skills");
using var embeddingModel = new LM("path/to/embedding-model.gguf");
var memory = new AgentMemory(embeddingModel);
// Create capabilities with all components
var capabilities = new AgentCapabilities(tools, skills, memory);
// Assign to agent
using var model = new LM("path/to/model.gguf");
var agent = new Agent(model);
agent.Capabilities = capabilities;