aiAgentRegistry
Get the singleton global AIAgentRegistry instance for registering, resolving, and observing agents.
Get the singleton global AIAgentRegistry instance for registering, resolving, and observing agents.
Syntax
aiAgentRegistry()Parameters
None.
Returns
AIAgentRegistry singleton instance.
Key Format
Agents are keyed as:
agentNameagentName@moduleName
Core Methods
register( agent, module = "" )
Register an AiAgent instance
get( key )
Retrieve agent by key
has( key )
Check whether key exists
unregister( key )
Remove agent by key
unregisterByModule( module )
Remove all agents in a module namespace
resolveAgents( agents )
Resolve mixed key/instance arrays to AiAgent[]
getAgentInfo( key )
Lightweight metadata: name, description, module
listAgents()
Return all registered agents with metadata
keys()
List all keys
clear()
Remove all entries
Events Fired
onAIAgentRegistryRegister
After successful registration
onAIAgentRegistryUnregister
After unregister
Examples
Register and fetch
Resolve mixed arrays
List observability metadata
Unregister by module
Last updated