Table of Contents

Class AgentsRegistryState

Namespace
Microsoft.AutoGen.RuntimeGateway.Grpc.Abstractions
Assembly
Microsoft.AutoGen.RuntimeGateway.Grpc.dll

Stores agent subscription information such as topic and prefix mappings, and maintains an ETag for concurrency checks.

public class AgentsRegistryState
Inheritance
AgentsRegistryState
Inherited Members

Properties

AgentsToTopicsMap

Maps each agent ID to the set of topics they subscribe to.

public ConcurrentDictionary<string, HashSet<string>> AgentsToTopicsMap { get; set; }

Property Value

ConcurrentDictionary<string, HashSet<string>>

AgentsToTopicsPrefixMap

Maps each agent ID to the set of topic prefixes they subscribe to.

public ConcurrentDictionary<string, HashSet<string>> AgentsToTopicsPrefixMap { get; set; }

Property Value

ConcurrentDictionary<string, HashSet<string>>

Etag

The concurrency ETag for identifying the registry's version or state.

public string Etag { get; set; }

Property Value

string

GuidSubscriptionsMap

Stores subscriptions by GUID

public ConcurrentDictionary<string, HashSet<Subscription>> GuidSubscriptionsMap { get; set; }

Property Value

ConcurrentDictionary<string, HashSet<Subscription>>

TopicPrefixToAgentTypesMap

Maps each topic prefix to the set of agent types subscribed to it.

public ConcurrentDictionary<string, HashSet<string>> TopicPrefixToAgentTypesMap { get; set; }

Property Value

ConcurrentDictionary<string, HashSet<string>>

TopicToAgentTypesMap

Maps each topic name to the set of agent types subscribed to it.

public ConcurrentDictionary<string, HashSet<string>> TopicToAgentTypesMap { get; set; }

Property Value

ConcurrentDictionary<string, HashSet<string>>