GroupChatManager 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.
A manager that manages the flow of a group chat.
public abstract class GroupChatManager
type GroupChatManager = class
Public MustInherit Class GroupChatManager
- Inheritance
-
GroupChatManager
- Derived
Constructors
| Name | Description |
|---|---|
| GroupChatManager() |
Initializes a new instance of the GroupChatManager class. |
Properties
| Name | Description |
|---|---|
| IterationCount |
Gets the number of iterations in the group chat so far. |
| MaximumIterationCount |
Gets or sets the maximum number of iterations allowed. |
Methods
| Name | Description |
|---|---|
| OnCheckpointingAsync(IWorkflowContext, CancellationToken) |
Invoked when the hosting group chat workflow is checkpointing, giving subclasses a chance to persist any additional state they maintain (e.g., a round-robin cursor or an LLM session). |
| OnCheckpointRestoredAsync(IWorkflowContext, CancellationToken) |
Invoked when the hosting group chat workflow is being restored from a checkpoint, giving subclasses a chance to hydrate any additional state they persisted in OnCheckpointingAsync(IWorkflowContext, CancellationToken). |
| 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 messages broadcast to participants for the current turn. |