Property Count
Count
Gets the number of agents currently registered in this registry.
public int Count { get; }
Property Value
- int
The count of registered agents.
Examples
Example: Checking registry state before operations
using LMKit.Agents;
var registry = new AgentRegistry();
if (registry.Count == 0)
{
Console.WriteLine("No agents registered. Please add agents before delegation.");
}
else
{
Console.WriteLine($"Ready to delegate to {registry.Count} agent(s).");
}
Remarks
This property provides O(1) access to the agent count, making it efficient for checking whether the registry is empty or for capacity planning.