For the complete documentation index, see llms.txt. This page is also available as Markdown.

aiAgentRegistry

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:

  • agentName

  • agentName@moduleName

Core Methods

Method
Description

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

Event
When

onAIAgentRegistryRegister

After successful registration

onAIAgentRegistryUnregister

After unregister

Examples

Register and fetch

Resolve mixed arrays

List observability metadata

Unregister by module

Last updated