Class LiveServerSessionResumptionUpdate
- Namespace
- GenerativeAI.Types
- Assembly
- GenerativeAI.dll
Update of the session resumption state. Only sent if SessionResumptionConfig was set in the setup message.
public class LiveServerSessionResumptionUpdate
- Inheritance
-
LiveServerSessionResumptionUpdate
- Inherited Members
- Extension Methods
Properties
LastConsumedClientMessageIndex
Index of the last message sent by the client that is included in the state represented by this handle. Only present when Transparent is enabled. Messages after this index should be re-sent after reconnecting.
[JsonPropertyName("lastConsumedClientMessageIndex")]
[JsonNumberHandling(JsonNumberHandling.AllowReadingFromString)]
public long? LastConsumedClientMessageIndex { get; set; }
Property Value
- long?
Message
Not sent by the Live API; always null.
[Obsolete("Not part of the Live API.", false)]
[JsonPropertyName("message")]
public string? Message { get; set; }
Property Value
NewHandle
New handle that represents a state that can be resumed. Empty if Resumable is false. Pass it as Handle when reconnecting.
[JsonPropertyName("newHandle")]
public string? NewHandle { get; set; }
Property Value
Resumable
True if the current session can be resumed at this point. Resumption is not possible at some points, for example while the model is executing function calls or generating.
[JsonPropertyName("resumable")]
public bool? Resumable { get; set; }
Property Value
- bool?
ResumptionToken
Not sent by the Live API; always null. Use NewHandle.
[Obsolete("Not part of the Live API. Use NewHandle.", false)]
[JsonPropertyName("resumptionToken")]
public string? ResumptionToken { get; set; }
Property Value
Status
Not sent by the Live API; always null. Use Resumable.
[Obsolete("Not part of the Live API. Use Resumable.", false)]
[JsonPropertyName("status")]
public SessionResumptionStatus? Status { get; set; }