Partager via


SelectionStrategy Class

Definition

Base strategy class for selecting the next agent for a AgentGroupChat.

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

Constructors

SelectionStrategy()

Properties

HasSelected

Flag indicating if an agent has been selected (first time).

InitialAgent

An optional agent for initial selection.

Logger

The ILogger associated with the SelectionStrategy.

Methods

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

Determine which agent goes next.

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

Determine which agent goes next.

Applies to