Azure.AI.AgentServer.Core.Server.Middleware Namespace
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.
Classes
| Name | Description |
|---|---|
| AgentRunContextMiddleware |
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. |
| AgentRunContextMiddlewareExtensions |
Extension methods for registering agent run context middleware. |
| UserInfoContextMiddleware |
Middleware that resolves user information from HTTP headers and stores it in AsyncLocal storage. This makes user context available throughout the async request flow. |
| UserInfoContextMiddlewareExtensions |
Extension methods for registering user info context middleware. |