SequentialSelectionStrategy Class

Definition

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
SequentialSelectionStrategy

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)

Applies to