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

Name Description
SelectionStrategy()

Properties

Name Description
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

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

Determines which agent goes next.

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

Determines which agent goes next.

Applies to