ChatResponseUpdate.ContinuationToken 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 the continuation token for resuming the streamed chat response of which this update is a part.
public:
property System::Object ^ ContinuationToken { System::Object ^ get(); void set(System::Object ^ value); };
[System.Diagnostics.CodeAnalysis.Experimental("MEAI001")]
[System.Text.Json.Serialization.JsonIgnore]
public object? ContinuationToken { get; set; }
[System.Text.Json.Serialization.JsonIgnore]
public object? ContinuationToken { get; set; }
[<System.Diagnostics.CodeAnalysis.Experimental("MEAI001")>]
[<System.Text.Json.Serialization.JsonIgnore>]
member this.ContinuationToken : obj with get, set
[<System.Text.Json.Serialization.JsonIgnore>]
member this.ContinuationToken : obj with get, set
Public Property ContinuationToken As Object
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.