SequentialSelectionStrategy 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.
Round-robin turn-taking strategy. Agent order is based on the order in which they joined AgentGroupChat.
public sealed class SequentialSelectionStrategy : Microsoft.SemanticKernel.Agents.Chat.SelectionStrategy
type SequentialSelectionStrategy = class
inherit SelectionStrategy
Public NotInheritable Class SequentialSelectionStrategy
Inherits SelectionStrategy
- Inheritance
Constructors
SequentialSelectionStrategy() |
Properties
HasSelected |
Flag indicating if an agent has been selected (first time). (Inherited from SelectionStrategy) |
InitialAgent |
An optional agent for initial selection. (Inherited from SelectionStrategy) |
Logger |
The ILogger associated with the SelectionStrategy. (Inherited from SelectionStrategy) |
Methods
NextAsync(IReadOnlyList<Agent>, IReadOnlyList<ChatMessageContent>, CancellationToken) |
Determine which agent goes next. (Inherited from SelectionStrategy) |
Reset() |
Reset selection to initial/first agent. Agent order is based on the order in which they joined AgentGroupChat. |
SelectAgentAsync(IReadOnlyList<Agent>, IReadOnlyList<ChatMessageContent>, CancellationToken) |
Determine which agent goes next. (Inherited from SelectionStrategy) |