Class UsageMetadata (1.67.0)

UsageMetadata(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Metadata on the usage of the cached content.

Attributes

Name Description
total_token_count int
Total number of tokens that the cached content consumes.
text_count int
Number of text characters.
image_count int
Number of images.
video_duration_seconds int
Duration of video in seconds.
audio_duration_seconds int
Duration of audio in seconds.

Methods

UsageMetadata

UsageMetadata(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Metadata on the usage of the cached content.