PlatformHeaders 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.
Defines the HTTP header names used across the AgentServer platform. These headers form the wire contract between the Foundry platform, agent containers, and downstream storage services.
public static class PlatformHeaders
type PlatformHeaders = class
Public Class PlatformHeaders
- Inheritance
-
PlatformHeaders
Remarks
Response headers (set by the server on every response):
- RequestId — request correlation ID.
- ServerVersion — server SDK identity.
- SessionId — resolved session ID (when applicable).
Error response headers (set on 4xx/5xx responses):
- ErrorSource — classifies error origin (
user,platform, orupstream). - ErrorDetail — internal diagnostic detail for platform telemetry.
Request headers (set by the platform or client):
- RequestId — client-provided correlation ID (echoed back on the response).
- UserIsolationKey / ChatIsolationKey — platform isolation keys.
- ClientHeaderPrefix — prefix for pass-through client headers.
- TraceParent — W3C Trace Context propagation header.
- ClientRequestId — Azure SDK client correlation header.
Fields
| Name | Description |
|---|---|
| ChatIsolationKey |
The |
| ClientHeaderPrefix |
The prefix |
| ClientRequestId |
The |
| ErrorDetail |
The |
| ErrorSource |
The |
| ErrorSourcePlatform |
Error source value indicating the error was caused by the SDK, library, or a platform dependency — not by the caller or the developer's handler. |
| ErrorSourceUpstream |
Error source value indicating the developer's handler code or an external service it called failed or returned incorrect behaviour. |
| ErrorSourceUser |
Error source value indicating the caller's input is invalid. The caller can fix the request and retry. |
| RequestId |
The |
| RequestIdItemKey |
Key used to store the resolved request ID in Items. Downstream filters and middleware can read this value to correlate the request ID without re-resolving it. |
| ServerVersion |
The |
| SessionId |
The |
| TraceParent |
The |
| UserIsolationKey |
The |