StreamingTokenValidation

@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.

Constructors

Link copied to clipboard
constructor(sequenceNumber: Int, timestamp: Long, targetMessageIdentifier: String, batchNumber: Int = 0, turnId: String = targetMessageIdentifier, result: StreamingTokenValidationResult)

Properties

Link copied to clipboard
open override val batchNumber: Int

The batch number this token belongs to, for grouping related tokens.

Link copied to clipboard
Link copied to clipboard
open override val sequenceNumber: Int

The position of this token within the stream sequence.

Link copied to clipboard
open override val targetMessageIdentifier: String

The identifier of the message this token contributes content to.

Link copied to clipboard
open override val timestamp: Long

The server timestamp when this token was generated.

Link copied to clipboard
open override val tokenType: StreamingTokenType

The type of this streaming token (validation or message content).

Link copied to clipboard
open override val turnId: String

The identifier for the conversational turn this token is part of.