LiveServerSessionResumptionUpdate

@Serializable
data class LiveServerSessionResumptionUpdate(val newHandle: String? = null, val resumable: Boolean? = null, val lastConsumedClientMessageIndex: Long? = null)

Update of the session resumption state.

Only sent if session_resumption was set in the connection config.

Constructors

Link copied to clipboard
constructor(newHandle: String? = null, resumable: Boolean? = null, lastConsumedClientMessageIndex: Long? = null)

Properties

Link copied to clipboard

Index of last message sent by client that is included in state represented by this SessionResumptionToken. Only sent when SessionResumptionConfig.transparent is set.

Link copied to clipboard
val newHandle: String? = null

New handle that represents state that can be resumed. Empty if resumable=false.

Link copied to clipboard
val resumable: Boolean? = null

True if session can be resumed at this point. It might be not possible to resume session at some points. In that case we send update empty new_handle and resumable=false. Example of such case could be model executing function calls or just generating. Resuming session (using previous session token) in such state will result in some data loss.