Firebase. AI. UsageMetadata
Token usage metadata for processing the generate content request.
Summary
Properties |
|
---|---|
CandidatesTokenCount
|
int
The total number of tokens across the generated response candidates.
|
CandidatesTokensDetails
|
IEnumerable< ModalityTokenCount >
|
PromptTokenCount
|
int
The number of tokens in the request prompt.
|
PromptTokensDetails
|
IEnumerable< ModalityTokenCount >
|
TotalTokenCount
|
int
The total number of tokens in both the request and response.
|
Properties
CandidatesTokenCount
int Firebase::AI::UsageMetadata::CandidatesTokenCount
The total number of tokens across the generated response candidates.
CandidatesTokensDetails
IEnumerable< ModalityTokenCount > Firebase::AI::UsageMetadata::CandidatesTokensDetails
PromptTokenCount
int Firebase::AI::UsageMetadata::PromptTokenCount
The number of tokens in the request prompt.
PromptTokensDetails
IEnumerable< ModalityTokenCount > Firebase::AI::UsageMetadata::PromptTokensDetails
TotalTokenCount
int Firebase::AI::UsageMetadata::TotalTokenCount
The total number of tokens in both the request and response.