CreateResponseExtensions.GetConversationId(CreateResponse) Method

Definition

Extracts the conversation ID from the Conversation field, which may be a plain string ID or a JSON object with an id property. Returns null if no conversation context is present.

public static string? GetConversationId(this Azure.AI.AgentServer.Responses.Models.CreateResponse request);
static member GetConversationId : Azure.AI.AgentServer.Responses.Models.CreateResponse -> string
<Extension()>
Public Function GetConversationId (request As CreateResponse) As String

Parameters

request
CreateResponse

The create-response request to extract the conversation ID from.

Returns

The conversation ID if found; otherwise, null.

Applies to