UsageMetadata interface

Usage metadata about a GenerateContentResponse.

Signature:

export interface UsageMetadata 

Properties

Property Type Description
candidatesTokenCount number
promptTokenCount number
totalTokenCount number

UsageMetadata.candidatesTokenCount

Signature:

candidatesTokenCount: number;

UsageMetadata.promptTokenCount

Signature:

promptTokenCount: number;

UsageMetadata.totalTokenCount

Signature:

totalTokenCount: number;