Table of Contents

Interface IAgentDefinitionRegistry

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

Registry for AgentDefinition instances loaded from YAML files or registered programmatically.

public interface IAgentDefinitionRegistry

Methods

GetAll()

Returns all registered agent definitions.

IReadOnlyList<AgentDefinition> GetAll()

Returns

IReadOnlyList<AgentDefinition>

GetByName(string)

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

AgentDefinition? GetByName(string name)

Parameters

name string

Returns

AgentDefinition

GetByTag(string)

Returns all definitions that carry the specified tag.

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.

void Register(AgentDefinition definition)

Parameters

definition AgentDefinition