StreamingToken

Represents an individual streamed token.

Inheritors

Types

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class MessageStreamingToken(val sequenceNumber: Int, val timestamp: Long, val targetMessageIdentifier: String, val batchNumber: Int = 0, val turnId: String = targetMessageIdentifier, val token: StreamingTokenMessageFormat) : StreamingToken

A streamed token which contains part of a full message.

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class StreamingTokenValidation(val sequenceNumber: Int, val timestamp: Long, val targetMessageIdentifier: String, val batchNumber: Int = 0, val turnId: String = targetMessageIdentifier, val result: StreamingTokenValidationResult) : StreamingToken

Streamed token which identifies a previously streamed token as being invalid.

Properties

Link copied to clipboard
abstract val batchNumber: Int
Link copied to clipboard
abstract val sequenceNumber: Int
Link copied to clipboard
abstract val targetMessageIdentifier: String
Link copied to clipboard
abstract val timestamp: Long
Link copied to clipboard
Link copied to clipboard
abstract val turnId: String