ChatResponse.ConversationId Property
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.
Gets or sets an identifier for the state of the conversation.
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 GetResponseAsync(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 ChatResponse's 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.