RoundRobinGroupChatManager Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides a GroupChatManager that selects agents in a round-robin fashion.
public class RoundRobinGroupChatManager : Microsoft.Agents.AI.Workflows.GroupChatManager
type RoundRobinGroupChatManager = class
inherit GroupChatManager
Public Class RoundRobinGroupChatManager
Inherits GroupChatManager
- Inheritance
Constructors
| Name | Description |
|---|---|
| RoundRobinGroupChatManager(IReadOnlyList<AIAgent>, Func<RoundRobinGroupChatManager,IEnumerable<ChatMessage>,CancellationToken,ValueTask<Boolean>>) |
Initializes a new instance of the RoundRobinGroupChatManager class. |
Properties
| Name | Description |
|---|---|
| IterationCount |
Gets the number of iterations in the group chat so far. (Inherited from GroupChatManager) |
| MaximumIterationCount |
Gets or sets the maximum number of iterations allowed. (Inherited from GroupChatManager) |
Methods
| Name | Description |
|---|---|
| Reset() |
Resets the state of the manager for a new group chat session. |
| SelectNextAgentAsync(IReadOnlyList<ChatMessage>, CancellationToken) |
Selects the next agent to participate in the group chat based on the provided chat history and team. |
| ShouldTerminateAsync(IReadOnlyList<ChatMessage>, CancellationToken) |
Determines whether the group chat should be terminated based on the provided chat history and iteration count. |
| UpdateHistoryAsync(IReadOnlyList<ChatMessage>, CancellationToken) |
Filters the chat history before it's passed to the next agent. (Inherited from GroupChatManager) |