UsageMetadata

data class UsageMetadata(val promptTokenCount: Int? = null, val candidatesTokenCount: Int? = null, val totalTokenCount: Int? = null)

Usage metadata for a generate content request.

Constructors

Link copied to clipboard
constructor(promptTokenCount: Int? = null, candidatesTokenCount: Int? = null, totalTokenCount: Int? = null)

Properties

Link copied to clipboard

The number of tokens in the candidates.

Link copied to clipboard
val promptTokenCount: Int? = null

The number of tokens in the prompt.

Link copied to clipboard
val totalTokenCount: Int? = null

The total number of tokens.