UGemini 2.0.1
A C# wrapper for the Google Gemini API.
Loading...
Searching...
No Matches
Uralstech.UGemini.Models.Generation.Candidate.GeminiUsageMetadata Class Reference

Metadata on the generation request's token usage. More...

Inheritance diagram for Uralstech.UGemini.Models.Generation.Candidate.GeminiUsageMetadata:
Uralstech.UGemini.IAppendableData< GeminiUsageMetadata >

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).
 

Detailed Description

Metadata on the generation request's token usage.

Member Data Documentation

◆ PromptTokenCount

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.


The documentation for this class was generated from the following file: