Table of Contents

Interface IRegistry

Namespace
Microsoft.AutoGen.RuntimeGateway.Grpc.Abstractions
Assembly
Microsoft.AutoGen.RuntimeGateway.Grpc.dll
public interface IRegistry

Methods

GetSubscribedAndHandlingAgentsAsync(string, string)

Gets a list of agents subscribed to and handling the specified topic and event type.

ValueTask<List<string>> GetSubscribedAndHandlingAgentsAsync(string topic, string key)

Parameters

topic string

The topic to check subscriptions for.

key string

The event type to check subscriptions for.

Returns

ValueTask<List<string>>

A task representing the asynchronous operation, with the list of agent IDs as the result.

GetSubscriptionsAsync(GetSubscriptionsRequest)

Gets the subscriptions for a specified agent type.

ValueTask<List<Subscription>> GetSubscriptionsAsync(GetSubscriptionsRequest request)

Parameters

request GetSubscriptionsRequest

The get subscriptions request.

Returns

ValueTask<List<Subscription>>

A task representing the asynchronous operation, with the subscriptions as the result.

SubscribeAsync(AddSubscriptionRequest)

Subscribes an agent to a topic.

ValueTask SubscribeAsync(AddSubscriptionRequest request)

Parameters

request AddSubscriptionRequest

The subscription request.

Returns

ValueTask

A task representing the asynchronous operation.

Remarks

removing CancellationToken from here as it is not compatible with Orleans Serialization

UnsubscribeAsync(RemoveSubscriptionRequest)

Unsubscribes an agent from a topic.

ValueTask UnsubscribeAsync(RemoveSubscriptionRequest request)

Parameters

request RemoveSubscriptionRequest

The unsubscription request.

Returns

ValueTask

A task representing the asynchronous operation.

Remarks

removing CancellationToken from here as it is not compatible with Orleans Serialization