UGemini 2.0.1
A C# wrapper for the Google Gemini API.
|
Metadata on the generation request's token usage. More...
Public Member Functions | |
void | Append (GeminiUsageMetadata data) |
Public Member Functions inherited from Uralstech.UGemini.IAppendableData< GeminiUsageMetadata > | |
void | Append (T data) |
Appends the data to the current IAppendableData<T>. | |
Public Attributes | |
int | PromptTokenCount |
Number of tokens in the prompt. When cachedContent is set, this is still the total effective prompt size. I.e. this includes the number of tokens in the cached content. | |
int | CachedContentTokenCount |
Number of tokens in the cached part of the prompt, i.e. in the cached content. | |
int | CandidatesTokenCount |
Total number of tokens across the generated candidates. | |
int | TotalTokenCount |
Total token count for the generation request (prompt + candidates). | |
Metadata on the generation request's token usage.
int Uralstech.UGemini.Models.Generation.Candidate.GeminiUsageMetadata.PromptTokenCount |
Number of tokens in the prompt. 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.