Interface ContentEmbeddingStatistics

Statistics of the input text associated with the result of content embedding.

interface ContentEmbeddingStatistics {
    tokenCount?: number;
    tokensDetails?: ModalityTokenCount[];
    truncated?: boolean;
}

Properties

tokenCount?: number

Gemini platform only. Number of tokens of the input text.

tokensDetails?: ModalityTokenCount[]

Gemini platform only. List of modalities and their token count for the input content.

truncated?: boolean

Gemini platform only. If the input text was truncated due to having a length longer than the allowed maximum input.