다음을 통해 공유


ChatResponseUpdate.ContinuationToken Property

Definition

Gets or sets the continuation token for resuming the streamed chat response of which this update is a part.

public:
 property Microsoft::Extensions::AI::ResponseContinuationToken ^ ContinuationToken { Microsoft::Extensions::AI::ResponseContinuationToken ^ get(); void set(Microsoft::Extensions::AI::ResponseContinuationToken ^ value); };
[System.Diagnostics.CodeAnalysis.Experimental("MEAI001")]
[System.Text.Json.Serialization.JsonIgnore]
public Microsoft.Extensions.AI.ResponseContinuationToken? ContinuationToken { get; set; }
[System.Text.Json.Serialization.JsonIgnore]
public Microsoft.Extensions.AI.ResponseContinuationToken? ContinuationToken { get; set; }
[<System.Diagnostics.CodeAnalysis.Experimental("MEAI001")>]
[<System.Text.Json.Serialization.JsonIgnore>]
member this.ContinuationToken : Microsoft.Extensions.AI.ResponseContinuationToken with get, set
[<System.Text.Json.Serialization.JsonIgnore>]
member this.ContinuationToken : Microsoft.Extensions.AI.ResponseContinuationToken with get, set
Public Property ContinuationToken As ResponseContinuationToken

Property Value

Attributes

Remarks

IChatClient implementations that support background responses return a continuation token on each update if background responses are allowed in AllowBackgroundResponses. However, for the last update, the token will be null.

This property should be used for stream resumption, where the continuation token of the latest received update should be passed to ContinuationToken on subsequent calls to GetStreamingResponseAsync(IEnumerable<ChatMessage>, ChatOptions, CancellationToken) to resume streaming from the point of interruption.

Applies to