Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

GoogleCloudAiplatformV1ModalityTokenCount

import type { GoogleCloudAiplatformV1ModalityTokenCount } from "https://googleapis.deno.dev/v1/aiplatform:v1.ts";

Represents a breakdown of token usage by modality. This message is used in CountTokensResponse and GenerateContentResponse.UsageMetadata to provide a detailed view of how many tokens are used by each modality (e.g., text, image, video) in a request. This is particularly useful for multimodal models, allowing you to track and manage token consumption for billing and quota purposes.

interface GoogleCloudAiplatformV1ModalityTokenCount {
modality?:
| "MODALITY_UNSPECIFIED"
| "TEXT"
| "IMAGE"
| "VIDEO"
| "AUDIO"
| "DOCUMENT";
tokenCount?: number;
}

§Properties

§
modality?: "MODALITY_UNSPECIFIED" | "TEXT" | "IMAGE" | "VIDEO" | "AUDIO" | "DOCUMENT"
[src]

The modality that this token count applies to.

§
tokenCount?: number
[src]

The number of tokens counted for this modality.