ResponseContextExtensions.NewMcpApprovalRequestItemId(ResponseContext) Method

Definition

Generates a new MCP approval request item ID sharing the response's partition key.

public static string NewMcpApprovalRequestItemId(this Azure.AI.AgentServer.Responses.ResponseContext context);
static member NewMcpApprovalRequestItemId : Azure.AI.AgentServer.Responses.ResponseContext -> string
<Extension()>
Public Function NewMcpApprovalRequestItemId (context As ResponseContext) As String

Parameters

context
ResponseContext

The response context.

Returns

An MCP approval request item ID in the format mcpr_{partitionKey}{entropy}.

Applies to