PlatformContext.FromRequest(HttpRequest) Method
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.
Reads the x-agent-user-id and x-agent-foundry-call-id
headers from the HTTP request. Returns Empty when neither
header is present.
public static Azure.AI.AgentServer.Core.PlatformContext FromRequest(Microsoft.AspNetCore.Http.HttpRequest request);
static member FromRequest : Microsoft.AspNetCore.Http.HttpRequest -> Azure.AI.AgentServer.Core.PlatformContext
Public Shared Function FromRequest (request As HttpRequest) As PlatformContext
Parameters
- request
- HttpRequest
The HTTP request to extract headers from.
Returns
A PlatformContext with the extracted values.