AgentRunContextMiddleware 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 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.