Share via


ChatResponseUpdate.ConversationId Property

Definition

Gets or sets an identifier for the state of the conversation of which this update is a part.

public:
 property System::String ^ ConversationId { System::String ^ get(); void set(System::String ^ value); };
public string? ConversationId { get; set; }
member this.ConversationId : string with get, set
Public Property ConversationId As String

Property Value

Remarks

Some IChatClient implementations are capable of storing the state for a conversation, such that the input messages supplied to GetStreamingResponseAsync(IEnumerable<ChatMessage>, ChatOptions, CancellationToken) need only be the additional messages beyond what's already stored. If this property is non-null, it represents an identifier for that state, and it should be used in a subsequent ConversationId instead of supplying the same messages (and this streaming message) as part of the messages parameter. Note that the value may or may not differ on every response, depending on whether the underlying provider uses a fixed ID for each conversation or updates it for each message.

Applies to