CountTokensResponse

@Serializable
data class CountTokensResponse(val sdkHttpResponse: HttpResponse? = null, val totalTokens: Int? = null, val cachedContentTokenCount: Int? = null)

Response for counting tokens.

Constructors

Link copied to clipboard
constructor(sdkHttpResponse: HttpResponse? = null, totalTokens: Int? = null, cachedContentTokenCount: Int? = null)

Properties

Link copied to clipboard

Number of tokens in the cached part of the prompt (the cached content).

Link copied to clipboard

Used to retain the full HTTP response.

Link copied to clipboard
val totalTokens: Int? = null

Total number of tokens.