AgentRunContextMiddleware 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.
Middleware that creates and sets up AgentRunContext for agent run endpoints (/runs and /responses). Parses the request body, retrieves user information, and sets up OpenTelemetry baggage for tracing.
public class AgentRunContextMiddleware
type AgentRunContextMiddleware = class
Public Class AgentRunContextMiddleware
- Inheritance
-
AgentRunContextMiddleware
Constructors
| Name | Description |
|---|---|
| AgentRunContextMiddleware(RequestDelegate, ILogger<AgentRunContextMiddleware>, IEnumerable<Object>) |
Initializes a new instance of the AgentRunContextMiddleware class. |
Methods
| Name | Description |
|---|---|
| InvokeAsync(HttpContext) |
Invokes the middleware to create and set up agent run context. |