Table of Contents

Property HasTools

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

HasTools

Gets a value indicating whether the agent has any tools registered.

public bool HasTools { get; }

Property Value

bool

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