Property Agents
Agents
Gets a read-only collection of all registered agents.
public IReadOnlyCollection<Agent> Agents { get; }
Property Value
- IReadOnlyCollection<Agent>
A collection containing all registered Agent instances.
Examples
Example: Validating all agents before use
using LMKit.Agents;
var registry = new AgentRegistry();
// ... agents registered ...
foreach (Agent agent in registry.Agents)
{
agent.Validate();
Console.WriteLine($"Agent '{agent.Identity.Persona}' is valid and ready.");
}
Remarks
Use this property when you need to iterate over agents without their names, or when performing bulk operations across all registered agents.