Share via


AgentRunContextMiddleware Class

Definition

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.

Applies to