AIAgentBuilder Constructors
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.
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
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.