Stay organized with collections
Save and categorize content based on your preferences.
Firebase.AI.ModalityTokenCount
Represents token counting info for a single modality.
Summary
Properties
|
Modality
|
The modality associated with this token count.
|
TokenCount
|
int
The number of tokens counted.
|
Properties
Modality
ContentModality Firebase::AI::ModalityTokenCount::Modality
The modality associated with this token count.
TokenCount
int Firebase::AI::ModalityTokenCount::TokenCount
The number of tokens counted.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-20 UTC.
[null,null,["Last updated 2025-05-20 UTC."],[],[],null,["Firebase.AI.ModalityTokenCount\n\nRepresents token counting info for a single modality.\n\nSummary\n\nProperties \n\nModality \n\n```c#\nContentModality Firebase::AI::ModalityTokenCount::Modality\n``` \nThe modality associated with this token count. \n\nTokenCount \n\n```c#\nint Firebase::AI::ModalityTokenCount::TokenCount\n``` \nThe number of tokens counted."]]