@firebase/ai 2.7.0-canary.08e3acdf0 → 2.7.0-canary.2e7432986
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
package/dist/ai-public.d.ts
CHANGED
|
@@ -3329,6 +3329,18 @@ export declare interface UsageMetadata {
|
|
|
3329
3329
|
* A list of tokens used by tools, broken down by modality.
|
|
3330
3330
|
*/
|
|
3331
3331
|
toolUsePromptTokensDetails?: ModalityTokenCount[];
|
|
3332
|
+
/**
|
|
3333
|
+
* The number of tokens in the prompt that were served from the cache.
|
|
3334
|
+
* If implicit caching is not active or no content was cached,
|
|
3335
|
+
* this will be 0.
|
|
3336
|
+
*/
|
|
3337
|
+
cachedContentTokenCount?: number;
|
|
3338
|
+
/**
|
|
3339
|
+
* Detailed breakdown of the cached tokens by modality (for example, text or
|
|
3340
|
+
* image). This list provides granular insight into which parts of
|
|
3341
|
+
* the content were cached.
|
|
3342
|
+
*/
|
|
3343
|
+
cacheTokensDetails?: ModalityTokenCount[];
|
|
3332
3344
|
}
|
|
3333
3345
|
|
|
3334
3346
|
/**
|
package/dist/ai.d.ts
CHANGED
|
@@ -3492,6 +3492,18 @@ export declare interface UsageMetadata {
|
|
|
3492
3492
|
* A list of tokens used by tools, broken down by modality.
|
|
3493
3493
|
*/
|
|
3494
3494
|
toolUsePromptTokensDetails?: ModalityTokenCount[];
|
|
3495
|
+
/**
|
|
3496
|
+
* The number of tokens in the prompt that were served from the cache.
|
|
3497
|
+
* If implicit caching is not active or no content was cached,
|
|
3498
|
+
* this will be 0.
|
|
3499
|
+
*/
|
|
3500
|
+
cachedContentTokenCount?: number;
|
|
3501
|
+
/**
|
|
3502
|
+
* Detailed breakdown of the cached tokens by modality (for example, text or
|
|
3503
|
+
* image). This list provides granular insight into which parts of
|
|
3504
|
+
* the content were cached.
|
|
3505
|
+
*/
|
|
3506
|
+
cacheTokensDetails?: ModalityTokenCount[];
|
|
3495
3507
|
}
|
|
3496
3508
|
|
|
3497
3509
|
/**
|
package/dist/esm/index.esm.js
CHANGED