@firebase/ai 2.7.0-canary.58ddd6e54 → 2.7.0-canary.65a553baf
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai-public.d.ts +12 -0
- package/dist/ai.d.ts +12 -0
- package/dist/esm/index.esm.js +1 -1
- package/dist/esm/index.esm.js.map +1 -1
- package/dist/esm/src/types/responses.d.ts +12 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.node.cjs.js +1 -1
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.mjs +1 -1
- package/dist/index.node.mjs.map +1 -1
- package/dist/src/types/responses.d.ts +12 -0
- package/package.json +8 -8
|
@@ -118,6 +118,18 @@ export interface UsageMetadata {
|
|
|
118
118
|
* A list of tokens used by tools, broken down by modality.
|
|
119
119
|
*/
|
|
120
120
|
toolUsePromptTokensDetails?: ModalityTokenCount[];
|
|
121
|
+
/**
|
|
122
|
+
* The number of tokens in the prompt that were served from the cache.
|
|
123
|
+
* If implicit caching is not active or no content was cached,
|
|
124
|
+
* this will be 0.
|
|
125
|
+
*/
|
|
126
|
+
cachedContentTokenCount?: number;
|
|
127
|
+
/**
|
|
128
|
+
* Detailed breakdown of the cached tokens by modality (for example, text or
|
|
129
|
+
* image). This list provides granular insight into which parts of
|
|
130
|
+
* the content were cached.
|
|
131
|
+
*/
|
|
132
|
+
cacheTokensDetails?: ModalityTokenCount[];
|
|
121
133
|
}
|
|
122
134
|
/**
|
|
123
135
|
* Represents token counting info for a single modality.
|