ModalityTokenCount

Represents token counting info for a single modality.

Fields
modality enum ( Modality )

The modality associated with this token count.

tokenCount integer

Number of tokens.

JSON representation
 { 
 "modality" 
 : 
 enum (  Modality 
 
) 
 , 
 "tokenCount" 
 : 
 integer 
 } 

Modality

Content Part modality

Enums
MODALITY_UNSPECIFIED Unspecified modality.
TEXT Plain text.
IMAGE Image.
VIDEO Video.
AUDIO Audio.
DOCUMENT Document, e.g. PDF.
Create a Mobile Website
View Site in Mobile | Classic
Share by: