Represents token counting info for a single modality.
modality
enum (Modality
)
The modality associated with this token count.
tokenCount
integer
Number of tokens.
JSON representation |
---|
{
"modality": enum ( |
Modality
Content Part modality
Enums | |
---|---|
MODALITY_UNSPECIFIED |
Unspecified modality. |
TEXT |
Plain text. |
IMAGE |
Image. |
VIDEO |
Video. |
AUDIO |
Audio. |
DOCUMENT |
Document, e.g. PDF. |