@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.
@@ -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
  /**
@@ -4,7 +4,7 @@ import { FirebaseError, Deferred, getModularInstance } from '@firebase/util';
4
4
  import { Logger } from '@firebase/logger';
5
5
 
6
6
  var name = "@firebase/ai";
7
- var version = "2.7.0-canary.58ddd6e54";
7
+ var version = "2.7.0-canary.65a553baf";
8
8
 
9
9
  /**
10
10
  * @license