Property Capabilities
Capabilities
Gets or sets the capabilities available to this agent.
public AgentCapabilities Capabilities { get; set; }
Property Value
Examples
Adding tools and checking capabilities:
using LMKit.Model;
using LMKit.Agents;
using LMKit.Agents.Tools;
using var model = new LM("path/to/model.gguf");
var agent = new Agent(model);
// Add tools via Capabilities
agent.Capabilities.EnsureTools().Register(new MyDatabaseTool());
// Check if the agent has capabilities
if (agent.Capabilities.HasTools)
{
Console.WriteLine($"Agent has {agent.Capabilities.Tools.Count} tools");
}
Remarks
Capabilities extend what the agent can do beyond basic text generation. They include:
- Tools: External functions the agent can invoke (e.g., web search, calculator).
- Skills: Modular instruction packages with specialized workflows.
- Memory: Persistent storage for information across conversations.
If not set, a new empty AgentCapabilities instance is created on first access.