@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.
@@ -1271,6 +1271,12 @@ export declare class GoogleAIBackend extends Backend {
1271
1271
  * @public
1272
1272
  */
1273
1273
  export declare interface GoogleMaps {
1274
+ /**
1275
+ * @deprecated The `enableWidget` feature has been deprecated by the Grounding for Google Maps
1276
+ * service.
1277
+ *
1278
+ * If true, include the widget context token in the response.
1279
+ */
1274
1280
  enableWidget?: boolean;
1275
1281
  }
1276
1282
 
package/dist/ai.d.ts CHANGED
@@ -1438,6 +1438,12 @@ export declare interface GoogleAIGenerateContentResponse {
1438
1438
  * @public
1439
1439
  */
1440
1440
  export declare interface GoogleMaps {
1441
+ /**
1442
+ * @deprecated The `enableWidget` feature has been deprecated by the Grounding for Google Maps
1443
+ * service.
1444
+ *
1445
+ * If true, include the widget context token in the response.
1446
+ */
1441
1447
  enableWidget?: boolean;
1442
1448
  }
1443
1449
 
@@ -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.13.0";
7
+ var version = "2.13.1-20260616165109";
8
8
 
9
9
  /**
10
10
  * @license
@@ -3141,6 +3141,12 @@ class ChatSession extends ChatSessionBase {
3141
3141
  validateChatHistory(params.history);
3142
3142
  this._history = params.history;
3143
3143
  }
3144
+ if (this.params?.systemInstruction != null) {
3145
+ this.params = {
3146
+ ...this.params,
3147
+ systemInstruction: formatSystemInstruction(this.params.systemInstruction)
3148
+ };
3149
+ }
3144
3150
  }
3145
3151
  /**
3146
3152
  * Format Content into a request for generateContent or