ComputeTokensResponse

@Serializable
data class ComputeTokensResponse(val sdkHttpResponse: HttpResponse? = null, val tokensInfo: List<TokensInfo>? = null)

Response for computing tokens.

Constructors

Link copied to clipboard
constructor(sdkHttpResponse: HttpResponse? = null, tokensInfo: List<TokensInfo>? = null)

Properties

Link copied to clipboard

Used to retain the full HTTP response.

Link copied to clipboard
val tokensInfo: List<TokensInfo>? = null

Lists of tokens info from the input. A ComputeTokensRequest could have multiple instances with a prompt in each instance. We also need to return lists of tokens info for the request with multiple instances.