Share via


AIAgentBuilder Constructors

Definition

Overloads

AIAgentBuilder(AIAgent)

Initializes a new instance of the AIAgentBuilder class.

AIAgentBuilder(Func<IServiceProvider,AIAgent>)

Initializes a new instance of the AIAgentBuilder class.

AIAgentBuilder(AIAgent)

Initializes a new instance of the AIAgentBuilder class.

public AIAgentBuilder(Microsoft.Agents.AI.AIAgent innerAgent);
new Microsoft.Agents.AI.AIAgentBuilder : Microsoft.Agents.AI.AIAgent -> Microsoft.Agents.AI.AIAgentBuilder
Public Sub New (innerAgent As AIAgent)

Parameters

innerAgent
AIAgent

The inner AIAgent that represents the underlying backend.

Exceptions

innerAgent is null.

Applies to

AIAgentBuilder(Func<IServiceProvider,AIAgent>)

Initializes a new instance of the AIAgentBuilder class.

public AIAgentBuilder(Func<IServiceProvider,Microsoft.Agents.AI.AIAgent> innerAgentFactory);
new Microsoft.Agents.AI.AIAgentBuilder : Func<IServiceProvider, Microsoft.Agents.AI.AIAgent> -> Microsoft.Agents.AI.AIAgentBuilder
Public Sub New (innerAgentFactory As Func(Of IServiceProvider, AIAgent))

Parameters

innerAgentFactory
Func<IServiceProvider,AIAgent>

A callback that produces the inner AIAgent that represents the underlying backend.

Exceptions

innerAgentFactory is null.

Applies to