@firebase/ai 2.13.0 → 2.13.1-20260616165109

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.
@@ -512,6 +512,12 @@ export interface GoogleSearch {
512
512
  * @public
513
513
  */
514
514
  export interface GoogleMaps {
515
+ /**
516
+ * @deprecated The `enableWidget` feature has been deprecated by the Grounding for Google Maps
517
+ * service.
518
+ *
519
+ * If true, include the widget context token in the response.
520
+ */
515
521
  enableWidget?: boolean;
516
522
  }
517
523
  /**
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.13.0";
11
+ var version = "2.13.1-20260616165109";
12
12
 
13
13
  /**
14
14
  * @license
@@ -3145,6 +3145,12 @@ class ChatSession extends ChatSessionBase {
3145
3145
  validateChatHistory(params.history);
3146
3146
  this._history = params.history;
3147
3147
  }
3148
+ if (this.params?.systemInstruction != null) {
3149
+ this.params = {
3150
+ ...this.params,
3151
+ systemInstruction: formatSystemInstruction(this.params.systemInstruction)
3152
+ };
3153
+ }
3148
3154
  }
3149
3155
  /**
3150
3156
  * Format Content into a request for generateContent or