@google/genai 0.11.0 → 0.12.0

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.
@@ -4262,6 +4262,12 @@ function liveServerContentFromMldev(apiClient, fromObject) {
4262
4262
  if (fromInterrupted != null) {
4263
4263
  setValueByPath(toObject, ['interrupted'], fromInterrupted);
4264
4264
  }
4265
+ const fromGroundingMetadata = getValueByPath(fromObject, [
4266
+ 'groundingMetadata',
4267
+ ]);
4268
+ if (fromGroundingMetadata != null) {
4269
+ setValueByPath(toObject, ['groundingMetadata'], fromGroundingMetadata);
4270
+ }
4265
4271
  const fromGenerationComplete = getValueByPath(fromObject, [
4266
4272
  'generationComplete',
4267
4273
  ]);
@@ -4296,6 +4302,12 @@ function liveServerContentFromVertex(apiClient, fromObject) {
4296
4302
  if (fromInterrupted != null) {
4297
4303
  setValueByPath(toObject, ['interrupted'], fromInterrupted);
4298
4304
  }
4305
+ const fromGroundingMetadata = getValueByPath(fromObject, [
4306
+ 'groundingMetadata',
4307
+ ]);
4308
+ if (fromGroundingMetadata != null) {
4309
+ setValueByPath(toObject, ['groundingMetadata'], fromGroundingMetadata);
4310
+ }
4299
4311
  const fromGenerationComplete = getValueByPath(fromObject, [
4300
4312
  'generationComplete',
4301
4313
  ]);
@@ -8638,7 +8650,7 @@ const CONTENT_TYPE_HEADER = 'Content-Type';
8638
8650
  const SERVER_TIMEOUT_HEADER = 'X-Server-Timeout';
8639
8651
  const USER_AGENT_HEADER = 'User-Agent';
8640
8652
  const GOOGLE_API_CLIENT_HEADER = 'x-goog-api-client';
8641
- const SDK_VERSION = '0.11.0'; // x-release-please-version
8653
+ const SDK_VERSION = '0.12.0'; // x-release-please-version
8642
8654
  const LIBRARY_LABEL = `google-genai-sdk/${SDK_VERSION}`;
8643
8655
  const VERTEX_AI_API_DEFAULT_VERSION = 'v1beta1';
8644
8656
  const GOOGLE_AI_API_DEFAULT_VERSION = 'v1beta';