共用方式為


ChatResponse.ChatThreadId Property

Definition

Gets or sets the chat thread ID associated with this chat response.

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

Property Value

Remarks

Some IChatClient implementations are capable of storing the state for a chat thread, such that the input messages supplied to GetResponseAsync(IList<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 ChatThreadId instead of supplying the same messages (and this ChatResponse's message) as part of the chatMessages parameter.

Applies to