IsolationContext.FromRequest(HttpRequest) Method

Definition

Reads the x-agent-user-isolation-key and x-agent-chat-isolation-key headers from the HTTP request. Returns Empty when neither header is present.

public static Azure.AI.AgentServer.Core.IsolationContext FromRequest(Microsoft.AspNetCore.Http.HttpRequest request);
static member FromRequest : Microsoft.AspNetCore.Http.HttpRequest -> Azure.AI.AgentServer.Core.IsolationContext
Public Shared Function FromRequest (request As HttpRequest) As IsolationContext

Parameters

request
HttpRequest

The HTTP request to extract headers from.

Returns

An IsolationContext with the extracted keys.

Applies to