BackgroundAgentsProvider Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.