CreateResponseExtensions.GetConversationId(CreateResponse) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.