@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.
package/dist/index.mjs CHANGED
@@ -2815,7 +2815,7 @@ const CONTENT_TYPE_HEADER = 'Content-Type';
2815
2815
  const SERVER_TIMEOUT_HEADER = 'X-Server-Timeout';
2816
2816
  const USER_AGENT_HEADER = 'User-Agent';
2817
2817
  const GOOGLE_API_CLIENT_HEADER = 'x-goog-api-client';
2818
- const SDK_VERSION = '0.11.0'; // x-release-please-version
2818
+ const SDK_VERSION = '0.12.0'; // x-release-please-version
2819
2819
  const LIBRARY_LABEL = `google-genai-sdk/${SDK_VERSION}`;
2820
2820
  const VERTEX_AI_API_DEFAULT_VERSION = 'v1beta1';
2821
2821
  const GOOGLE_AI_API_DEFAULT_VERSION = 'v1beta';
@@ -4789,6 +4789,12 @@ function liveServerContentFromMldev(apiClient, fromObject) {
4789
4789
  if (fromInterrupted != null) {
4790
4790
  setValueByPath(toObject, ['interrupted'], fromInterrupted);
4791
4791
  }
4792
+ const fromGroundingMetadata = getValueByPath(fromObject, [
4793
+ 'groundingMetadata',
4794
+ ]);
4795
+ if (fromGroundingMetadata != null) {
4796
+ setValueByPath(toObject, ['groundingMetadata'], fromGroundingMetadata);
4797
+ }
4792
4798
  const fromGenerationComplete = getValueByPath(fromObject, [
4793
4799
  'generationComplete',
4794
4800
  ]);
@@ -4823,6 +4829,12 @@ function liveServerContentFromVertex(apiClient, fromObject) {
4823
4829
  if (fromInterrupted != null) {
4824
4830
  setValueByPath(toObject, ['interrupted'], fromInterrupted);
4825
4831
  }
4832
+ const fromGroundingMetadata = getValueByPath(fromObject, [
4833
+ 'groundingMetadata',
4834
+ ]);
4835
+ if (fromGroundingMetadata != null) {
4836
+ setValueByPath(toObject, ['groundingMetadata'], fromGroundingMetadata);
4837
+ }
4826
4838
  const fromGenerationComplete = getValueByPath(fromObject, [
4827
4839
  'generationComplete',
4828
4840
  ]);