ResponseContextExtensions.NewMcpCallItemId(ResponseContext) Method

Definition

Generates a new MCP tool call item ID sharing the response's partition key.

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

Parameters

context
ResponseContext

The response context.

Returns

An MCP tool call item ID in the format mcp_{partitionKey}{entropy}.

Applies to