BackgroundAgentsProvider Constructor

Definition

Initializes a new instance of the BackgroundAgentsProvider class.

public BackgroundAgentsProvider(System.Collections.Generic.IEnumerable<Microsoft.Agents.AI.AIAgent> agents, Microsoft.Agents.AI.BackgroundAgentsProviderOptions? options = default);
new Microsoft.Agents.AI.BackgroundAgentsProvider : seq<Microsoft.Agents.AI.AIAgent> * Microsoft.Agents.AI.BackgroundAgentsProviderOptions -> Microsoft.Agents.AI.BackgroundAgentsProvider
Public Sub New (agents As IEnumerable(Of AIAgent), Optional options As BackgroundAgentsProviderOptions = Nothing)

Parameters

agents
IEnumerable<AIAgent>

The collection of background agents available for delegation.

options
BackgroundAgentsProviderOptions

Optional settings controlling the provider behavior.

Exceptions

agents is null.

An agent has a null or empty name, or agent names are not unique.

Applies to