Class GeminiTokenCountResponse
- Namespace
- Uralstech.UGemini.Models.CountTokens
A response from CountTokens.
public class GeminiTokenCountResponse
- Inheritance
-
objectGeminiTokenCountResponse
- Extension Methods
Fields
CachedContentTokenCount
Number of tokens in the cached part of the prompt (the cached content).
public int CachedContentTokenCount
Field Value
- int
PromptTokensDetails
List of modalities that were processed in the request input.
public GeminiModalityTokenCount[] PromptTokensDetails
Field Value
TotalTokens
The number of tokens that the model tokenizes the prompt into.
public int TotalTokens
Field Value
- int
Remarks
Always non-negative. When cachedContent is set, this is still the total effective prompt size.I.e.this includes the number of tokens in the cached content.
Cached content is not supported in this package.