@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.
@@ -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.
package/dist/index.cjs.js CHANGED
@@ -8,7 +8,7 @@ var util = require('@firebase/util');
8
8
  var logger$1 = require('@firebase/logger');
9
9
 
10
10
  var name = "@firebase/ai";
11
- var version = "2.7.0-canary.58ddd6e54";
11
+ var version = "2.7.0-canary.65a553baf";
12
12
 
13
13
  /**
14
14
  * @license