UsageMetadataPromptTokenCount Property
Number of tokens in the prompt. When
CachedContent is set, this is still the
total effective prompt size meaning this includes the number of tokens in the cached content.
Namespace: GenerativeAI.TypesAssembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
public int PromptTokenCount { get; set; }
Property Value
Int32