Files

47 lines
1.1 KiB
Markdown

Project: /docs/reference/js/_project.yaml
Book: /docs/reference/_book.yaml
page_type: reference
{% comment %}
DO NOT EDIT THIS FILE!
This is generated by the JS SDK team, and any local changes will be
overwritten. Changes should be made in the source code at
https://github.com/firebase/firebase-js-sdk
{% endcomment %}
# ModalityTokenCount interface
Represents token counting info for a single modality.
<b>Signature:</b>
```typescript
export interface ModalityTokenCount
```
## Properties
| Property | Type | Description |
| --- | --- | --- |
| [modality](./ai.modalitytokencount.md#modalitytokencountmodality) | [Modality](./ai.md#modality) | The modality associated with this token count. |
| [tokenCount](./ai.modalitytokencount.md#modalitytokencounttokencount) | number | The number of tokens counted. |
## ModalityTokenCount.modality
The modality associated with this token count.
<b>Signature:</b>
```typescript
modality: Modality;
```
## ModalityTokenCount.tokenCount
The number of tokens counted.
<b>Signature:</b>
```typescript
tokenCount: number;
```