CachedContentUsageMetadata

@Serializable
data class CachedContentUsageMetadata(val audioDurationSeconds: Int? = null, val imageCount: Int? = null, val textCount: Int? = null, val totalTokenCount: Int? = null, val videoDurationSeconds: Int? = null)

Metadata on the usage of the cached content.

Constructors

Link copied to clipboard
constructor(audioDurationSeconds: Int? = null, imageCount: Int? = null, textCount: Int? = null, totalTokenCount: Int? = null, videoDurationSeconds: Int? = null)

Properties

Link copied to clipboard

Duration of audio in seconds. This field is not supported in Gemini API.

Link copied to clipboard
val imageCount: Int? = null

Number of images. This field is not supported in Gemini API.

Link copied to clipboard
val textCount: Int? = null

Number of text characters. This field is not supported in Gemini API.

Link copied to clipboard
val totalTokenCount: Int? = null

Total number of tokens that the cached content consumes.

Link copied to clipboard

Duration of video in seconds. This field is not supported in Gemini API.