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.

Definition

Namespace: GenerativeAI.Types
Assembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
C#
public int PromptTokenCount { get; set; }

Property Value

Int32

See Also