TokensInfo

@Serializable
data class TokensInfo(val role: String? = null, val tokenIds: List<Long>? = null, val tokens: List<@Serializable(with = ByteArrayAsBase64Serializer::class) ByteArray>? = null)

Tokens info with a list of tokens and the corresponding list of token ids.

Constructors

Link copied to clipboard
constructor(role: String? = null, tokenIds: List<Long>? = null, tokens: List<@Serializable(with = ByteArrayAsBase64Serializer::class) ByteArray>? = null)

Properties

Link copied to clipboard
val role: String? = null

Optional fields for the role from the corresponding Content.

Link copied to clipboard
val tokenIds: List<Long>? = null

A list of token ids from the input.

Link copied to clipboard
val tokens: List<@Serializable(with = ByteArrayAsBase64Serializer::class) ByteArray>? = null

A list of tokens from the input.