Share via


SelectionStrategy Class

Definition

Provides a base strategy class for selecting the next agent for an AgentGroupChat.

public abstract class SelectionStrategy
type SelectionStrategy = class
Public MustInherit Class SelectionStrategy
Inheritance
SelectionStrategy
Derived

Constructors

SelectionStrategy()

Properties

HasSelected

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

InitialAgent

Gets or sets an optional agent for initial selection.

Logger

Gets the ILogger associated with the SelectionStrategy.

Methods

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

Determines which agent goes next.

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

Determines which agent goes next.

Applies to