Share via


AgentRunContextMiddleware Constructor

Definition

Initializes a new instance of the AgentRunContextMiddleware class.

public AgentRunContextMiddleware(Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.Extensions.Logging.ILogger<Azure.AI.AgentServer.Core.Server.Middleware.AgentRunContextMiddleware> logger, System.Collections.Generic.IEnumerable<object>? agentTools = default);
new Azure.AI.AgentServer.Core.Server.Middleware.AgentRunContextMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.Extensions.Logging.ILogger<Azure.AI.AgentServer.Core.Server.Middleware.AgentRunContextMiddleware> * seq<obj> -> Azure.AI.AgentServer.Core.Server.Middleware.AgentRunContextMiddleware
Public Sub New (next As RequestDelegate, logger As ILogger(Of AgentRunContextMiddleware), Optional agentTools As IEnumerable(Of Object) = Nothing)

Parameters

next
RequestDelegate

The next middleware in the pipeline.

logger
ILogger<AgentRunContextMiddleware>

The logger instance.

agentTools
IEnumerable<Object>

Optional collection of agent tools to include in the context.

Applies to