@ai-sdk/google 4.0.0-canary.74 → 4.0.0-canary.75

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @ai-sdk/google
2
2
 
3
+ ## 4.0.0-canary.75
4
+
5
+ ### Patch Changes
6
+
7
+ - 00a0f36: feat(google, google-vertex): added `gemini-embedding-2`, `deep-research-max-preview-04-2026` and `deep-research-preview-04-2026`
8
+
3
9
  ## 4.0.0-canary.74
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -11,7 +11,7 @@ declare const googleErrorDataSchema: _ai_sdk_provider_utils.LazySchema<{
11
11
  }>;
12
12
  type GoogleErrorData = InferSchema<typeof googleErrorDataSchema>;
13
13
 
14
- type GoogleModelId = 'gemini-2.0-flash' | 'gemini-2.0-flash-001' | 'gemini-2.0-flash-lite' | 'gemini-2.0-flash-lite-001' | 'gemini-2.5-pro' | 'gemini-2.5-flash' | 'gemini-2.5-flash-image' | 'gemini-2.5-flash-lite' | 'gemini-2.5-flash-preview-tts' | 'gemini-2.5-pro-preview-tts' | 'gemini-2.5-flash-native-audio-latest' | 'gemini-2.5-flash-native-audio-preview-09-2025' | 'gemini-2.5-flash-native-audio-preview-12-2025' | 'gemini-2.5-computer-use-preview-10-2025' | 'gemini-3-pro-preview' | 'gemini-3-pro-image-preview' | 'gemini-3-flash-preview' | 'gemini-3.1-pro-preview' | 'gemini-3.1-pro-preview-customtools' | 'gemini-3.1-flash-image-preview' | 'gemini-3.1-flash-lite-preview' | 'gemini-3.1-flash-tts-preview' | 'gemini-3.5-flash' | 'gemini-pro-latest' | 'gemini-flash-latest' | 'gemini-flash-lite-latest' | 'deep-research-pro-preview-12-2025' | 'nano-banana-pro-preview' | 'aqa' | 'gemini-robotics-er-1.5-preview' | 'gemma-3-1b-it' | 'gemma-3-4b-it' | 'gemma-3n-e4b-it' | 'gemma-3n-e2b-it' | 'gemma-3-12b-it' | 'gemma-3-27b-it' | (string & {});
14
+ type GoogleModelId = 'gemini-2.0-flash' | 'gemini-2.0-flash-001' | 'gemini-2.0-flash-lite' | 'gemini-2.0-flash-lite-001' | 'gemini-2.5-pro' | 'gemini-2.5-flash' | 'gemini-2.5-flash-image' | 'gemini-2.5-flash-lite' | 'gemini-2.5-flash-preview-tts' | 'gemini-2.5-pro-preview-tts' | 'gemini-2.5-flash-native-audio-latest' | 'gemini-2.5-flash-native-audio-preview-09-2025' | 'gemini-2.5-flash-native-audio-preview-12-2025' | 'gemini-2.5-computer-use-preview-10-2025' | 'gemini-3-pro-preview' | 'gemini-3-pro-image-preview' | 'gemini-3-flash-preview' | 'gemini-3.1-pro-preview' | 'gemini-3.1-pro-preview-customtools' | 'gemini-3.1-flash-image-preview' | 'gemini-3.1-flash-lite-preview' | 'gemini-3.1-flash-tts-preview' | 'gemini-3.5-flash' | 'gemini-pro-latest' | 'gemini-flash-latest' | 'gemini-flash-lite-latest' | 'deep-research-pro-preview-12-2025' | 'deep-research-max-preview-04-2026' | 'deep-research-preview-04-2026' | 'nano-banana-pro-preview' | 'aqa' | 'gemini-robotics-er-1.5-preview' | 'gemma-3-1b-it' | 'gemma-3-4b-it' | 'gemma-3n-e4b-it' | 'gemma-3n-e2b-it' | 'gemma-3-12b-it' | 'gemma-3-27b-it' | (string & {});
15
15
  declare const googleLanguageModelOptions: _ai_sdk_provider_utils.LazySchema<{
16
16
  responseModalities?: ("TEXT" | "IMAGE")[] | undefined;
17
17
  thinkingConfig?: {
@@ -231,7 +231,7 @@ declare const googleImageModelOptionsSchema: _ai_sdk_provider_utils.LazySchema<{
231
231
  }>;
232
232
  type GoogleImageModelOptions = InferSchema<typeof googleImageModelOptionsSchema>;
233
233
 
234
- type GoogleEmbeddingModelId = 'gemini-embedding-001' | 'gemini-embedding-2-preview' | (string & {});
234
+ type GoogleEmbeddingModelId = 'gemini-embedding-001' | 'gemini-embedding-2' | 'gemini-embedding-2-preview' | (string & {});
235
235
  declare const googleEmbeddingModelOptions: _ai_sdk_provider_utils.LazySchema<{
236
236
  outputDimensionality?: number | undefined;
237
237
  taskType?: "SEMANTIC_SIMILARITY" | "CLASSIFICATION" | "CLUSTERING" | "RETRIEVAL_DOCUMENT" | "RETRIEVAL_QUERY" | "QUESTION_ANSWERING" | "FACT_VERIFICATION" | "CODE_RETRIEVAL_QUERY" | undefined;
package/dist/index.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  } from "@ai-sdk/provider-utils";
8
8
 
9
9
  // src/version.ts
10
- var VERSION = true ? "4.0.0-canary.74" : "0.0.0-test";
10
+ var VERSION = true ? "4.0.0-canary.75" : "0.0.0-test";
11
11
 
12
12
  // src/google-embedding-model.ts
13
13
  import {
@@ -1428,19 +1428,19 @@ var GoogleJSONAccumulator = class {
1428
1428
  let fragment = "";
1429
1429
  const startIdx = this.pathStack.length - 1;
1430
1430
  for (let i = startIdx; i < targetContainer.length; i++) {
1431
- const seg = targetContainer[i];
1431
+ const pathSegment = targetContainer[i];
1432
1432
  const parentEntry = this.pathStack[this.pathStack.length - 1];
1433
1433
  if (parentEntry.childCount > 0) {
1434
1434
  fragment += ",";
1435
1435
  }
1436
1436
  parentEntry.childCount++;
1437
- if (typeof seg === "string") {
1438
- fragment += `${JSON.stringify(seg)}:`;
1437
+ if (typeof pathSegment === "string") {
1438
+ fragment += `${JSON.stringify(pathSegment)}:`;
1439
1439
  }
1440
1440
  const childSeg = i + 1 < targetContainer.length ? targetContainer[i + 1] : leafSegment;
1441
1441
  const isArray = typeof childSeg === "number";
1442
1442
  fragment += isArray ? "[" : "{";
1443
- this.pathStack.push({ segment: seg, isArray, childCount: 0 });
1443
+ this.pathStack.push({ segment: pathSegment, isArray, childCount: 0 });
1444
1444
  }
1445
1445
  return fragment;
1446
1446
  }
@@ -1486,21 +1486,21 @@ function parsePath(rawPath) {
1486
1486
  }
1487
1487
  function getNestedValue(obj, segments) {
1488
1488
  let current = obj;
1489
- for (const seg of segments) {
1489
+ for (const pathSegment of segments) {
1490
1490
  if (current == null || typeof current !== "object") return void 0;
1491
- current = current[seg];
1491
+ current = current[pathSegment];
1492
1492
  }
1493
1493
  return current;
1494
1494
  }
1495
1495
  function setNestedValue(obj, segments, value) {
1496
1496
  let current = obj;
1497
1497
  for (let i = 0; i < segments.length - 1; i++) {
1498
- const seg = segments[i];
1498
+ const pathSegment = segments[i];
1499
1499
  const nextSeg = segments[i + 1];
1500
- if (current[seg] == null) {
1501
- current[seg] = typeof nextSeg === "number" ? [] : {};
1500
+ if (current[pathSegment] == null) {
1501
+ current[pathSegment] = typeof nextSeg === "number" ? [] : {};
1502
1502
  }
1503
- current = current[seg];
1503
+ current = current[pathSegment];
1504
1504
  }
1505
1505
  current[segments[segments.length - 1]] = value;
1506
1506
  }
@@ -3654,19 +3654,21 @@ function annotationToSource({
3654
3654
  var _a, _b, _c, _d, _e;
3655
3655
  switch (annotation.type) {
3656
3656
  case "url_citation": {
3657
- const a = annotation;
3658
- if (a.url == null || a.url.length === 0) return void 0;
3657
+ const urlCitation = annotation;
3658
+ if (urlCitation.url == null || urlCitation.url.length === 0) {
3659
+ return void 0;
3660
+ }
3659
3661
  return {
3660
3662
  type: "source",
3661
3663
  sourceType: "url",
3662
3664
  id: generateId3(),
3663
- url: a.url,
3664
- ...a.title != null ? { title: a.title } : {}
3665
+ url: urlCitation.url,
3666
+ ...urlCitation.title != null ? { title: urlCitation.title } : {}
3665
3667
  };
3666
3668
  }
3667
3669
  case "file_citation": {
3668
- const a = annotation;
3669
- const uri = (_b = (_a = a.url) != null ? _a : a.document_uri) != null ? _b : a.file_name;
3670
+ const fileCitation = annotation;
3671
+ const uri = (_b = (_a = fileCitation.url) != null ? _a : fileCitation.document_uri) != null ? _b : fileCitation.file_name;
3670
3672
  if (uri == null || uri.length === 0) return void 0;
3671
3673
  if (uri.startsWith("http://") || uri.startsWith("https://")) {
3672
3674
  return {
@@ -3674,29 +3676,31 @@ function annotationToSource({
3674
3676
  sourceType: "url",
3675
3677
  id: generateId3(),
3676
3678
  url: uri,
3677
- ...a.file_name != null ? { title: a.file_name } : {}
3679
+ ...fileCitation.file_name != null ? { title: fileCitation.file_name } : {}
3678
3680
  };
3679
3681
  }
3680
- const filename = (_c = a.file_name) != null ? _c : basename(uri);
3682
+ const filename = (_c = fileCitation.file_name) != null ? _c : basename(uri);
3681
3683
  const mediaType = inferDocMediaType(uri);
3682
3684
  return {
3683
3685
  type: "source",
3684
3686
  sourceType: "document",
3685
3687
  id: generateId3(),
3686
3688
  mediaType,
3687
- title: (_e = (_d = a.file_name) != null ? _d : filename) != null ? _e : uri,
3689
+ title: (_e = (_d = fileCitation.file_name) != null ? _d : filename) != null ? _e : uri,
3688
3690
  ...filename != null ? { filename } : {}
3689
3691
  };
3690
3692
  }
3691
3693
  case "place_citation": {
3692
- const a = annotation;
3693
- if (a.url == null || a.url.length === 0) return void 0;
3694
+ const placeCitation = annotation;
3695
+ if (placeCitation.url == null || placeCitation.url.length === 0) {
3696
+ return void 0;
3697
+ }
3694
3698
  return {
3695
3699
  type: "source",
3696
3700
  sourceType: "url",
3697
3701
  id: generateId3(),
3698
- url: a.url,
3699
- ...a.name != null ? { title: a.name } : {}
3702
+ url: placeCitation.url,
3703
+ ...placeCitation.name != null ? { title: placeCitation.name } : {}
3700
3704
  };
3701
3705
  }
3702
3706
  default:
@@ -4034,22 +4038,22 @@ function buildGoogleInteractionsStreamTransform({
4034
4038
  }
4035
4039
  }
4036
4040
  if (dtype === "image" && (open.kind === "pending_model_output" || open.kind === "text" || open.kind === "image")) {
4037
- const img = event.delta;
4041
+ const imageDelta = event.delta;
4038
4042
  const google2 = {};
4039
4043
  if (interactionId != null) google2.interactionId = interactionId;
4040
4044
  const providerMetadata = Object.keys(google2).length > 0 ? { google: google2 } : void 0;
4041
- if ((img == null ? void 0 : img.data) != null && img.data.length > 0) {
4045
+ if ((imageDelta == null ? void 0 : imageDelta.data) != null && imageDelta.data.length > 0) {
4042
4046
  controller.enqueue({
4043
4047
  type: "file",
4044
- mediaType: (_k = img.mime_type) != null ? _k : "image/png",
4045
- data: { type: "data", data: img.data },
4048
+ mediaType: (_k = imageDelta.mime_type) != null ? _k : "image/png",
4049
+ data: { type: "data", data: imageDelta.data },
4046
4050
  ...providerMetadata ? { providerMetadata } : {}
4047
4051
  });
4048
- } else if ((img == null ? void 0 : img.uri) != null && img.uri.length > 0) {
4052
+ } else if ((imageDelta == null ? void 0 : imageDelta.uri) != null && imageDelta.uri.length > 0) {
4049
4053
  controller.enqueue({
4050
4054
  type: "file",
4051
- mediaType: (_l = img.mime_type) != null ? _l : "image/png",
4052
- data: { type: "url", url: new URL(img.uri) },
4055
+ mediaType: (_l = imageDelta.mime_type) != null ? _l : "image/png",
4056
+ data: { type: "url", url: new URL(imageDelta.uri) },
4053
4057
  ...providerMetadata ? { providerMetadata } : {}
4054
4058
  });
4055
4059
  }
@@ -5720,11 +5724,11 @@ function streamGoogleInteractionEvents({
5720
5724
  }
5721
5725
  receivedAnyEventThisAttempt = true;
5722
5726
  if (value.success) {
5723
- const ev = value.value;
5724
- if (typeof ev.event_id === "string" && ev.event_id.length > 0) {
5725
- lastEventId = ev.event_id;
5727
+ const streamEvent = value.value;
5728
+ if (typeof streamEvent.event_id === "string" && streamEvent.event_id.length > 0) {
5729
+ lastEventId = streamEvent.event_id;
5726
5730
  }
5727
- if (ev.event_type === "interaction.completed" || ev.event_type === "error") {
5731
+ if (streamEvent.event_type === "interaction.completed" || streamEvent.event_type === "error") {
5728
5732
  complete = true;
5729
5733
  }
5730
5734
  }
@@ -5967,7 +5971,7 @@ var GoogleInteractionsLanguageModel = class _GoogleInteractionsLanguageModel {
5967
5971
  async getArgs(options) {
5968
5972
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
5969
5973
  const warnings = [];
5970
- const opts = await parseProviderOptions6({
5974
+ const googleOptions = await parseProviderOptions6({
5971
5975
  provider: "google",
5972
5976
  providerOptions: options.providerOptions,
5973
5977
  schema: googleInteractionsLanguageModelOptions
@@ -6006,8 +6010,8 @@ var GoogleInteractionsLanguageModel = class _GoogleInteractionsLanguageModel {
6006
6010
  responseFormatEntries.push(entry);
6007
6011
  }
6008
6012
  }
6009
- if ((opts == null ? void 0 : opts.responseFormat) != null) {
6010
- for (const entry of opts.responseFormat) {
6013
+ if ((googleOptions == null ? void 0 : googleOptions.responseFormat) != null) {
6014
+ for (const entry of googleOptions.responseFormat) {
6011
6015
  if (entry.type === "text") {
6012
6016
  responseFormatEntries.push(
6013
6017
  pruneUndefined({
@@ -6041,13 +6045,13 @@ var GoogleInteractionsLanguageModel = class _GoogleInteractionsLanguageModel {
6041
6045
  warnings: convWarnings
6042
6046
  } = convertToGoogleInteractionsInput({
6043
6047
  prompt: options.prompt,
6044
- previousInteractionId: (_h = opts == null ? void 0 : opts.previousInteractionId) != null ? _h : void 0,
6045
- store: (_i = opts == null ? void 0 : opts.store) != null ? _i : void 0,
6046
- mediaResolution: (_j = opts == null ? void 0 : opts.mediaResolution) != null ? _j : void 0
6048
+ previousInteractionId: (_h = googleOptions == null ? void 0 : googleOptions.previousInteractionId) != null ? _h : void 0,
6049
+ store: (_i = googleOptions == null ? void 0 : googleOptions.store) != null ? _i : void 0,
6050
+ mediaResolution: (_j = googleOptions == null ? void 0 : googleOptions.mediaResolution) != null ? _j : void 0
6047
6051
  });
6048
6052
  warnings.push(...convWarnings);
6049
6053
  let systemInstruction = convertedSystemInstruction;
6050
- const optionSystemInstruction = (_k = opts == null ? void 0 : opts.systemInstruction) != null ? _k : void 0;
6054
+ const optionSystemInstruction = (_k = googleOptions == null ? void 0 : googleOptions.systemInstruction) != null ? _k : void 0;
6051
6055
  if (systemInstruction != null && optionSystemInstruction != null) {
6052
6056
  warnings.push({
6053
6057
  type: "other",
@@ -6067,11 +6071,12 @@ var GoogleInteractionsLanguageModel = class _GoogleInteractionsLanguageModel {
6067
6071
  }
6068
6072
  if (options.maxOutputTokens != null)
6069
6073
  droppedFields.push("maxOutputTokens");
6070
- if ((opts == null ? void 0 : opts.thinkingLevel) != null) droppedFields.push("thinkingLevel");
6071
- if ((opts == null ? void 0 : opts.thinkingSummaries) != null) {
6074
+ if ((googleOptions == null ? void 0 : googleOptions.thinkingLevel) != null)
6075
+ droppedFields.push("thinkingLevel");
6076
+ if ((googleOptions == null ? void 0 : googleOptions.thinkingSummaries) != null) {
6072
6077
  droppedFields.push("thinkingSummaries");
6073
6078
  }
6074
- if ((opts == null ? void 0 : opts.imageConfig) != null) droppedFields.push("imageConfig");
6079
+ if ((googleOptions == null ? void 0 : googleOptions.imageConfig) != null) droppedFields.push("imageConfig");
6075
6080
  if (droppedFields.length > 0) {
6076
6081
  warnings.push({
6077
6082
  type: "other",
@@ -6086,11 +6091,11 @@ var GoogleInteractionsLanguageModel = class _GoogleInteractionsLanguageModel {
6086
6091
  seed: (_n = options.seed) != null ? _n : void 0,
6087
6092
  stop_sequences: options.stopSequences != null && options.stopSequences.length > 0 ? options.stopSequences : void 0,
6088
6093
  max_output_tokens: (_o = options.maxOutputTokens) != null ? _o : void 0,
6089
- thinking_level: (_p = opts == null ? void 0 : opts.thinkingLevel) != null ? _p : void 0,
6090
- thinking_summaries: (_q = opts == null ? void 0 : opts.thinkingSummaries) != null ? _q : void 0,
6094
+ thinking_level: (_p = googleOptions == null ? void 0 : googleOptions.thinkingLevel) != null ? _p : void 0,
6095
+ thinking_summaries: (_q = googleOptions == null ? void 0 : googleOptions.thinkingSummaries) != null ? _q : void 0,
6091
6096
  tool_choice: toolChoiceForBody
6092
6097
  });
6093
- if ((opts == null ? void 0 : opts.imageConfig) != null) {
6098
+ if ((googleOptions == null ? void 0 : googleOptions.imageConfig) != null) {
6094
6099
  const alreadyHasImageEntry = responseFormatEntries.some(
6095
6100
  (entry) => entry.type === "image"
6096
6101
  );
@@ -6102,58 +6107,58 @@ var GoogleInteractionsLanguageModel = class _GoogleInteractionsLanguageModel {
6102
6107
  responseFormatEntries.push({
6103
6108
  type: "image",
6104
6109
  mime_type: "image/png",
6105
- ...opts.imageConfig.aspectRatio != null ? { aspect_ratio: opts.imageConfig.aspectRatio } : {},
6106
- ...opts.imageConfig.imageSize != null ? { image_size: opts.imageConfig.imageSize } : {}
6110
+ ...googleOptions.imageConfig.aspectRatio != null ? { aspect_ratio: googleOptions.imageConfig.aspectRatio } : {},
6111
+ ...googleOptions.imageConfig.imageSize != null ? { image_size: googleOptions.imageConfig.imageSize } : {}
6107
6112
  });
6108
6113
  }
6109
6114
  }
6110
6115
  }
6111
6116
  let agentConfig;
6112
- if (isAgent && (opts == null ? void 0 : opts.agentConfig) != null) {
6113
- const ac = opts.agentConfig;
6114
- if (ac.type === "deep-research") {
6117
+ if (isAgent && (googleOptions == null ? void 0 : googleOptions.agentConfig) != null) {
6118
+ const agentConfigOptions = googleOptions.agentConfig;
6119
+ if (agentConfigOptions.type === "deep-research") {
6115
6120
  agentConfig = pruneUndefined({
6116
6121
  type: "deep-research",
6117
- thinking_summaries: (_r = ac.thinkingSummaries) != null ? _r : void 0,
6118
- visualization: (_s = ac.visualization) != null ? _s : void 0,
6119
- collaborative_planning: (_t = ac.collaborativePlanning) != null ? _t : void 0
6122
+ thinking_summaries: (_r = agentConfigOptions.thinkingSummaries) != null ? _r : void 0,
6123
+ visualization: (_s = agentConfigOptions.visualization) != null ? _s : void 0,
6124
+ collaborative_planning: (_t = agentConfigOptions.collaborativePlanning) != null ? _t : void 0
6120
6125
  });
6121
- } else if (ac.type === "dynamic") {
6126
+ } else if (agentConfigOptions.type === "dynamic") {
6122
6127
  agentConfig = { type: "dynamic" };
6123
6128
  }
6124
6129
  }
6125
6130
  let environment;
6126
- if ((opts == null ? void 0 : opts.environment) != null) {
6131
+ if ((googleOptions == null ? void 0 : googleOptions.environment) != null) {
6127
6132
  if (!isAgent) {
6128
6133
  warnings.push({
6129
6134
  type: "other",
6130
6135
  message: "google.interactions: environment is only supported when an agent is set; environment will be omitted from the request body."
6131
6136
  });
6132
- } else if (typeof opts.environment === "string") {
6133
- environment = opts.environment;
6137
+ } else if (typeof googleOptions.environment === "string") {
6138
+ environment = googleOptions.environment;
6134
6139
  } else {
6135
- const env = opts.environment;
6136
- const sources = (_u = env.sources) == null ? void 0 : _u.map((s) => {
6140
+ const environmentOptions = googleOptions.environment;
6141
+ const sources = (_u = environmentOptions.sources) == null ? void 0 : _u.map((source) => {
6137
6142
  var _a2;
6138
- if (s.type === "inline") {
6143
+ if (source.type === "inline") {
6139
6144
  return {
6140
6145
  type: "inline",
6141
- content: s.content,
6142
- target: s.target
6146
+ content: source.content,
6147
+ target: source.target
6143
6148
  };
6144
6149
  }
6145
6150
  return pruneUndefined({
6146
- type: s.type,
6147
- source: s.source,
6148
- target: (_a2 = s.target) != null ? _a2 : void 0
6151
+ type: source.type,
6152
+ source: source.source,
6153
+ target: (_a2 = source.target) != null ? _a2 : void 0
6149
6154
  });
6150
6155
  });
6151
6156
  let network;
6152
- if (env.network === "disabled") {
6157
+ if (environmentOptions.network === "disabled") {
6153
6158
  network = "disabled";
6154
- } else if (env.network != null) {
6159
+ } else if (environmentOptions.network != null) {
6155
6160
  network = {
6156
- allowlist: env.network.allowlist.map(
6161
+ allowlist: environmentOptions.network.allowlist.map(
6157
6162
  (entry) => {
6158
6163
  var _a2;
6159
6164
  return pruneUndefined({
@@ -6177,21 +6182,21 @@ var GoogleInteractionsLanguageModel = class _GoogleInteractionsLanguageModel {
6177
6182
  system_instruction: systemInstruction,
6178
6183
  tools: toolsForBody,
6179
6184
  response_format: responseFormatEntries.length > 0 ? responseFormatEntries : void 0,
6180
- response_modalities: (opts == null ? void 0 : opts.responseModalities) != null ? opts.responseModalities : void 0,
6181
- previous_interaction_id: (_v = opts == null ? void 0 : opts.previousInteractionId) != null ? _v : void 0,
6182
- service_tier: (_w = opts == null ? void 0 : opts.serviceTier) != null ? _w : void 0,
6183
- store: (_x = opts == null ? void 0 : opts.store) != null ? _x : void 0,
6185
+ response_modalities: (googleOptions == null ? void 0 : googleOptions.responseModalities) != null ? googleOptions.responseModalities : void 0,
6186
+ previous_interaction_id: (_v = googleOptions == null ? void 0 : googleOptions.previousInteractionId) != null ? _v : void 0,
6187
+ service_tier: (_w = googleOptions == null ? void 0 : googleOptions.serviceTier) != null ? _w : void 0,
6188
+ store: (_x = googleOptions == null ? void 0 : googleOptions.store) != null ? _x : void 0,
6184
6189
  generation_config: generationConfig != null && Object.keys(generationConfig).length > 0 ? generationConfig : void 0,
6185
6190
  agent_config: agentConfig,
6186
6191
  environment,
6187
- background: (_y = opts == null ? void 0 : opts.background) != null ? _y : void 0
6192
+ background: (_y = googleOptions == null ? void 0 : googleOptions.background) != null ? _y : void 0
6188
6193
  });
6189
6194
  return {
6190
6195
  args,
6191
6196
  warnings,
6192
6197
  isAgent,
6193
- isBackground: (opts == null ? void 0 : opts.background) === true,
6194
- pollingTimeoutMs: (_z = opts == null ? void 0 : opts.pollingTimeoutMs) != null ? _z : void 0
6198
+ isBackground: (googleOptions == null ? void 0 : googleOptions.background) === true,
6199
+ pollingTimeoutMs: (_z = googleOptions == null ? void 0 : googleOptions.pollingTimeoutMs) != null ? _z : void 0
6195
6200
  };
6196
6201
  }
6197
6202
  async doGenerate(options) {