ResponseContextExtensions.NewCompactionItemId(ResponseContext) Method

Definition

Generates a new compaction item ID sharing the response's partition key.

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

Parameters

context
ResponseContext

The response context.

Returns

A compaction item ID in the format cmp_{partitionKey}{entropy}.

Applies to