Property HasTools
HasTools
Gets a value indicating whether the agent has any tools registered.
public bool HasTools { get; }
Property Value
Examples
Checking for tools:
using LMKit.Model;
using LMKit.Agents;
using var model = new LM("path/to/model.gguf");
var agent = new Agent(model);
Console.WriteLine(agent.Capabilities.HasTools); // False
agent.EnsureTools().Register(new MyTool());
Console.WriteLine(agent.Capabilities.HasTools); // True