Table of Contents

Class AgentDefinitionRegistry

Namespace
JD.AI.Core.Agents
Assembly
JD.AI.Core.dll

Thread-safe in-memory IAgentDefinitionRegistry.

public sealed class AgentDefinitionRegistry : IAgentDefinitionRegistry
Inheritance
AgentDefinitionRegistry
Implements
Inherited Members

Methods

GetAll()

Returns all registered agent definitions.

public IReadOnlyList<AgentDefinition> GetAll()

Returns

IReadOnlyList<AgentDefinition>

GetByName(string)

Returns the definition with the given name, or null if no matching definition is registered.

public AgentDefinition? GetByName(string name)

Parameters

name string

Returns

AgentDefinition

GetByTag(string)

Returns all definitions that carry the specified tag.

public IReadOnlyList<AgentDefinition> GetByTag(string tag)

Parameters

tag string

Returns

IReadOnlyList<AgentDefinition>

Register(AgentDefinition)

Registers a definition. If a definition with the same definition.Name.Name already exists it is replaced.

public void Register(AgentDefinition definition)

Parameters

definition AgentDefinition

Unregister(string)

public bool Unregister(string name)

Parameters

name string

Returns

bool