SequentialSelectionStrategy Class

Definition

Represents a 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

Gets a value that indicates if an agent has been selected (first time).

(Inherited from SelectionStrategy)
InitialAgent

Gets or sets an optional agent for initial selection.

(Inherited from SelectionStrategy)
Logger

Gets the ILogger associated with the SelectionStrategy.

(Inherited from SelectionStrategy)

Methods

NextAsync(IReadOnlyList<Agent>, IReadOnlyList<ChatMessageContent>, CancellationToken)

Determines which agent goes next.

(Inherited from SelectionStrategy)
Reset()

Resets the selection to the initial (first) agent. Agent order is based on the order in which they joined AgentGroupChat.

SelectAgentAsync(IReadOnlyList<Agent>, IReadOnlyList<ChatMessageContent>, CancellationToken)

Determines which agent goes next.

(Inherited from SelectionStrategy)

Applies to