Overview
Methods
getAgents()
Get all agents (local + adopted).
Example:
findById()
Find an agent by its ID.findByName()
Find an agent by its name.getVisibleAgentsFor()
Get agents visible to a specific agent.getAgentsAsTools()
Get tool definitions for all agents.getAgentToolsFor()
Get tool definitions for agents visible to a specific agent.getInlineAgents()
Get only agents defined inline in this registry.listAllInstances()
List all agent instances (locals + adopted).subscribe()
Subscribe to agent change events.getCapabilities()
Get MCP capabilities for agents.hasAny()
Check if any agents exist.adoptFromChild()
Adopt agents from a child registry.removeChild()
Remove a child registry and clean up subscriptions.dispose()
Dispose registry and clean up all child subscriptions.Change Events
Indexes
Agent Visibility
Agents can control which other agents they can see and call:getVisibleAgentsFor() to query visibility: