Table of Contents

Property CanDelegate

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

CanDelegate

Gets a value indicating whether this agent can delegate to other agents.

public bool CanDelegate { get; }

Property Value

bool

Examples

Checking delegation capability:

using LMKit.Model;
using LMKit.Agents;

using var model = new LM("path/to/model.gguf");
var coordinator = new Agent(model);

Console.WriteLine(coordinator.CanDelegate); // False

coordinator.Delegates = new AgentRegistry();
coordinator.Delegates.Register("helper", new Agent(model));
Console.WriteLine(coordinator.CanDelegate); // True