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

Properties of a UsageMetadata.

Package

@google-ai/generativelanguage

Properties

candidatesTokenCount

candidatesTokenCount?: (number|null);

UsageMetadata candidatesTokenCount

promptTokenCount

promptTokenCount?: (number|null);

UsageMetadata promptTokenCount

totalTokenCount

totalTokenCount?: (number|null);

UsageMetadata totalTokenCount