Overview
Methods
getAgents()
Get all agents (local + adopted).| Parameter | Type | Default | Description |
|---|---|---|---|
includeHidden | boolean | false | Include hidden agents |
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
| Index | Key | Description |
|---|---|---|
byQualifiedId | qualifiedId | Unique identifier lookup |
byId | id | Agent ID lookup (unique to AgentRegistry) |
byName | name | Base name lookup |
byOwner | ownerPath | All agents by owner |
Agent Visibility
Agents can control which other agents they can see and call:getVisibleAgentsFor() to query visibility: