AIAgentBuilder Class
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.
Provides a builder for creating pipelines of AIAgents.
public sealed class AIAgentBuilder
type AIAgentBuilder = class
Public NotInheritable Class AIAgentBuilder
- Inheritance
-
AIAgentBuilder
Constructors
| AIAgentBuilder(AIAgent) |
Initializes a new instance of the AIAgentBuilder class. |
| AIAgentBuilder(Func<IServiceProvider,AIAgent>) |
Initializes a new instance of the AIAgentBuilder class. |
Methods
Extension Methods
| Use(AIAgentBuilder, Func<AIAgent,FunctionInvocationContext,Func<FunctionInvocationContext, CancellationToken,ValueTask<Object>>,CancellationToken,ValueTask<Object>>) |
Adds function invocation callbacks to the AIAgent pipeline that intercepts and processes AIFunction calls. |
| UseOpenTelemetry(AIAgentBuilder, String, Action<OpenTelemetryAgent>) |
Adds OpenTelemetry instrumentation to the agent pipeline, enabling comprehensive observability for agent operations. |