Interface protos.google.ai.generativelanguage.v1beta.GenerateContentResponse.IUsageMetadata (2.6.0)

Properties of a UsageMetadata.

Package

@google-ai/generativelanguage

Properties

cachedContentTokenCount

cachedContentTokenCount?: (number|null);

UsageMetadata cachedContentTokenCount

candidatesTokenCount

candidatesTokenCount?: (number|null);

UsageMetadata candidatesTokenCount

promptTokenCount

promptTokenCount?: (number|null);

UsageMetadata promptTokenCount

totalTokenCount

totalTokenCount?: (number|null);

UsageMetadata totalTokenCount