Firebase. AI. CountTokensResponse
The model's response to a count tokens request.
Summary
Properties |
|
|---|---|
PromptTokensDetails
|
IReadOnlyList< ModalityTokenCount >
The breakdown, by modality, of how many tokens are consumed by the prompt.
|
TotalTokens
|
int
The total number of tokens in the input given to the model as a prompt.
|
Properties
PromptTokensDetails
IReadOnlyList< ModalityTokenCount > Firebase::AI::CountTokensResponse::PromptTokensDetails
The breakdown, by modality, of how many tokens are consumed by the prompt.
TotalTokens
int Firebase::AI::CountTokensResponse::TotalTokens
The total number of tokens in the input given to the model as a prompt.