@google/genai 1.21.0 → 1.22.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.cjs CHANGED
@@ -678,6 +678,10 @@ exports.FinishReason = void 0;
678
678
  * The tool call generated by the model is invalid.
679
679
  */
680
680
  FinishReason["UNEXPECTED_TOOL_CALL"] = "UNEXPECTED_TOOL_CALL";
681
+ /**
682
+ * Image generation stopped because the generated images have prohibited content.
683
+ */
684
+ FinishReason["IMAGE_PROHIBITED_CONTENT"] = "IMAGE_PROHIBITED_CONTENT";
681
685
  })(exports.FinishReason || (exports.FinishReason = {}));
682
686
  /** Output only. Harm probability levels in the content. */
683
687
  exports.HarmProbability = void 0;
@@ -911,6 +915,22 @@ exports.AdapterSize = void 0;
911
915
  */
912
916
  AdapterSize["ADAPTER_SIZE_THIRTY_TWO"] = "ADAPTER_SIZE_THIRTY_TWO";
913
917
  })(exports.AdapterSize || (exports.AdapterSize = {}));
918
+ /** Optional. The tuning task. Either I2V or T2V. */
919
+ exports.TuningTask = void 0;
920
+ (function (TuningTask) {
921
+ /**
922
+ * Default value. This value is unused.
923
+ */
924
+ TuningTask["TUNING_TASK_UNSPECIFIED"] = "TUNING_TASK_UNSPECIFIED";
925
+ /**
926
+ * Tuning task for image to video.
927
+ */
928
+ TuningTask["TUNING_TASK_I2V"] = "TUNING_TASK_I2V";
929
+ /**
930
+ * Tuning task for text to video.
931
+ */
932
+ TuningTask["TUNING_TASK_T2V"] = "TUNING_TASK_T2V";
933
+ })(exports.TuningTask || (exports.TuningTask = {}));
914
934
  /** Options for feature selection preference. */
915
935
  exports.FeatureSelectionPreference = void 0;
916
936
  (function (FeatureSelectionPreference) {
@@ -3278,6 +3298,20 @@ function citationMetadataFromMldev$1(fromObject) {
3278
3298
  }
3279
3299
  return toObject;
3280
3300
  }
3301
+ function computerUseToMldev$4(fromObject) {
3302
+ const toObject = {};
3303
+ const fromEnvironment = getValueByPath(fromObject, ['environment']);
3304
+ if (fromEnvironment != null) {
3305
+ setValueByPath(toObject, ['environment'], fromEnvironment);
3306
+ }
3307
+ const fromExcludedPredefinedFunctions = getValueByPath(fromObject, [
3308
+ 'excludedPredefinedFunctions',
3309
+ ]);
3310
+ if (fromExcludedPredefinedFunctions != null) {
3311
+ setValueByPath(toObject, ['excludedPredefinedFunctions'], fromExcludedPredefinedFunctions);
3312
+ }
3313
+ return toObject;
3314
+ }
3281
3315
  function contentEmbeddingFromMldev$1(fromObject) {
3282
3316
  const toObject = {};
3283
3317
  const fromValues = getValueByPath(fromObject, ['values']);
@@ -3780,7 +3814,11 @@ function generateContentConfigToMldev$1(apiClient, fromObject, parentObject) {
3780
3814
  'thinkingConfig',
3781
3815
  ]);
3782
3816
  if (fromThinkingConfig != null) {
3783
- setValueByPath(toObject, ['thinkingConfig'], thinkingConfigToMldev$1(fromThinkingConfig));
3817
+ setValueByPath(toObject, ['thinkingConfig'], thinkingConfigToMldev$3(fromThinkingConfig));
3818
+ }
3819
+ const fromImageConfig = getValueByPath(fromObject, ['imageConfig']);
3820
+ if (fromImageConfig != null) {
3821
+ setValueByPath(toObject, ['imageConfig'], imageConfigToMldev$1(fromImageConfig));
3784
3822
  }
3785
3823
  return toObject;
3786
3824
  }
@@ -3863,6 +3901,14 @@ function googleSearchToMldev$4(fromObject) {
3863
3901
  }
3864
3902
  return toObject;
3865
3903
  }
3904
+ function imageConfigToMldev$1(fromObject) {
3905
+ const toObject = {};
3906
+ const fromAspectRatio = getValueByPath(fromObject, ['aspectRatio']);
3907
+ if (fromAspectRatio != null) {
3908
+ setValueByPath(toObject, ['aspectRatio'], fromAspectRatio);
3909
+ }
3910
+ return toObject;
3911
+ }
3866
3912
  function inlinedEmbedContentResponseFromMldev(fromObject) {
3867
3913
  const toObject = {};
3868
3914
  const fromResponse = getValueByPath(fromObject, ['response']);
@@ -4365,7 +4411,7 @@ function speechConfigToMldev$3(fromObject) {
4365
4411
  }
4366
4412
  return toObject;
4367
4413
  }
4368
- function thinkingConfigToMldev$1(fromObject) {
4414
+ function thinkingConfigToMldev$3(fromObject) {
4369
4415
  const toObject = {};
4370
4416
  const fromIncludeThoughts = getValueByPath(fromObject, [
4371
4417
  'includeThoughts',
@@ -4381,20 +4427,6 @@ function thinkingConfigToMldev$1(fromObject) {
4381
4427
  }
4382
4428
  return toObject;
4383
4429
  }
4384
- function toolComputerUseToMldev$4(fromObject) {
4385
- const toObject = {};
4386
- const fromEnvironment = getValueByPath(fromObject, ['environment']);
4387
- if (fromEnvironment != null) {
4388
- setValueByPath(toObject, ['environment'], fromEnvironment);
4389
- }
4390
- const fromExcludedPredefinedFunctions = getValueByPath(fromObject, [
4391
- 'excludedPredefinedFunctions',
4392
- ]);
4393
- if (fromExcludedPredefinedFunctions != null) {
4394
- setValueByPath(toObject, ['excludedPredefinedFunctions'], fromExcludedPredefinedFunctions);
4395
- }
4396
- return toObject;
4397
- }
4398
4430
  function toolConfigToMldev$2(fromObject) {
4399
4431
  const toObject = {};
4400
4432
  const fromFunctionCallingConfig = getValueByPath(fromObject, [
@@ -4450,7 +4482,7 @@ function toolToMldev$4(fromObject) {
4450
4482
  }
4451
4483
  const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
4452
4484
  if (fromComputerUse != null) {
4453
- setValueByPath(toObject, ['computerUse'], toolComputerUseToMldev$4(fromComputerUse));
4485
+ setValueByPath(toObject, ['computerUse'], computerUseToMldev$4(fromComputerUse));
4454
4486
  }
4455
4487
  const fromCodeExecution = getValueByPath(fromObject, [
4456
4488
  'codeExecution',
@@ -5448,6 +5480,34 @@ function cachedContentFromVertex(fromObject) {
5448
5480
  }
5449
5481
  return toObject;
5450
5482
  }
5483
+ function computerUseToMldev$3(fromObject) {
5484
+ const toObject = {};
5485
+ const fromEnvironment = getValueByPath(fromObject, ['environment']);
5486
+ if (fromEnvironment != null) {
5487
+ setValueByPath(toObject, ['environment'], fromEnvironment);
5488
+ }
5489
+ const fromExcludedPredefinedFunctions = getValueByPath(fromObject, [
5490
+ 'excludedPredefinedFunctions',
5491
+ ]);
5492
+ if (fromExcludedPredefinedFunctions != null) {
5493
+ setValueByPath(toObject, ['excludedPredefinedFunctions'], fromExcludedPredefinedFunctions);
5494
+ }
5495
+ return toObject;
5496
+ }
5497
+ function computerUseToVertex$2(fromObject) {
5498
+ const toObject = {};
5499
+ const fromEnvironment = getValueByPath(fromObject, ['environment']);
5500
+ if (fromEnvironment != null) {
5501
+ setValueByPath(toObject, ['environment'], fromEnvironment);
5502
+ }
5503
+ const fromExcludedPredefinedFunctions = getValueByPath(fromObject, [
5504
+ 'excludedPredefinedFunctions',
5505
+ ]);
5506
+ if (fromExcludedPredefinedFunctions != null) {
5507
+ setValueByPath(toObject, ['excludedPredefinedFunctions'], fromExcludedPredefinedFunctions);
5508
+ }
5509
+ return toObject;
5510
+ }
5451
5511
  function contentToMldev$3(fromObject) {
5452
5512
  const toObject = {};
5453
5513
  const fromParts = getValueByPath(fromObject, ['parts']);
@@ -6192,34 +6252,6 @@ function retrievalConfigToVertex$1(fromObject) {
6192
6252
  }
6193
6253
  return toObject;
6194
6254
  }
6195
- function toolComputerUseToMldev$3(fromObject) {
6196
- const toObject = {};
6197
- const fromEnvironment = getValueByPath(fromObject, ['environment']);
6198
- if (fromEnvironment != null) {
6199
- setValueByPath(toObject, ['environment'], fromEnvironment);
6200
- }
6201
- const fromExcludedPredefinedFunctions = getValueByPath(fromObject, [
6202
- 'excludedPredefinedFunctions',
6203
- ]);
6204
- if (fromExcludedPredefinedFunctions != null) {
6205
- setValueByPath(toObject, ['excludedPredefinedFunctions'], fromExcludedPredefinedFunctions);
6206
- }
6207
- return toObject;
6208
- }
6209
- function toolComputerUseToVertex$2(fromObject) {
6210
- const toObject = {};
6211
- const fromEnvironment = getValueByPath(fromObject, ['environment']);
6212
- if (fromEnvironment != null) {
6213
- setValueByPath(toObject, ['environment'], fromEnvironment);
6214
- }
6215
- const fromExcludedPredefinedFunctions = getValueByPath(fromObject, [
6216
- 'excludedPredefinedFunctions',
6217
- ]);
6218
- if (fromExcludedPredefinedFunctions != null) {
6219
- setValueByPath(toObject, ['excludedPredefinedFunctions'], fromExcludedPredefinedFunctions);
6220
- }
6221
- return toObject;
6222
- }
6223
6255
  function toolConfigToMldev$1(fromObject) {
6224
6256
  const toObject = {};
6225
6257
  const fromFunctionCallingConfig = getValueByPath(fromObject, [
@@ -6291,7 +6323,7 @@ function toolToMldev$3(fromObject) {
6291
6323
  }
6292
6324
  const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
6293
6325
  if (fromComputerUse != null) {
6294
- setValueByPath(toObject, ['computerUse'], toolComputerUseToMldev$3(fromComputerUse));
6326
+ setValueByPath(toObject, ['computerUse'], computerUseToMldev$3(fromComputerUse));
6295
6327
  }
6296
6328
  const fromCodeExecution = getValueByPath(fromObject, [
6297
6329
  'codeExecution',
@@ -6345,7 +6377,7 @@ function toolToVertex$2(fromObject) {
6345
6377
  }
6346
6378
  const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
6347
6379
  if (fromComputerUse != null) {
6348
- setValueByPath(toObject, ['computerUse'], toolComputerUseToVertex$2(fromComputerUse));
6380
+ setValueByPath(toObject, ['computerUse'], computerUseToVertex$2(fromComputerUse));
6349
6381
  }
6350
6382
  const fromCodeExecution = getValueByPath(fromObject, [
6351
6383
  'codeExecution',
@@ -7235,7 +7267,7 @@ const CONTENT_TYPE_HEADER = 'Content-Type';
7235
7267
  const SERVER_TIMEOUT_HEADER = 'X-Server-Timeout';
7236
7268
  const USER_AGENT_HEADER = 'User-Agent';
7237
7269
  const GOOGLE_API_CLIENT_HEADER = 'x-goog-api-client';
7238
- const SDK_VERSION = '1.21.0'; // x-release-please-version
7270
+ const SDK_VERSION = '1.22.0'; // x-release-please-version
7239
7271
  const LIBRARY_LABEL = `google-genai-sdk/${SDK_VERSION}`;
7240
7272
  const VERTEX_AI_API_DEFAULT_VERSION = 'v1beta1';
7241
7273
  const GOOGLE_AI_API_DEFAULT_VERSION = 'v1beta';
@@ -8669,6 +8701,34 @@ function blobToVertex$1(fromObject) {
8669
8701
  }
8670
8702
  return toObject;
8671
8703
  }
8704
+ function computerUseToMldev$2(fromObject) {
8705
+ const toObject = {};
8706
+ const fromEnvironment = getValueByPath(fromObject, ['environment']);
8707
+ if (fromEnvironment != null) {
8708
+ setValueByPath(toObject, ['environment'], fromEnvironment);
8709
+ }
8710
+ const fromExcludedPredefinedFunctions = getValueByPath(fromObject, [
8711
+ 'excludedPredefinedFunctions',
8712
+ ]);
8713
+ if (fromExcludedPredefinedFunctions != null) {
8714
+ setValueByPath(toObject, ['excludedPredefinedFunctions'], fromExcludedPredefinedFunctions);
8715
+ }
8716
+ return toObject;
8717
+ }
8718
+ function computerUseToVertex$1(fromObject) {
8719
+ const toObject = {};
8720
+ const fromEnvironment = getValueByPath(fromObject, ['environment']);
8721
+ if (fromEnvironment != null) {
8722
+ setValueByPath(toObject, ['environment'], fromEnvironment);
8723
+ }
8724
+ const fromExcludedPredefinedFunctions = getValueByPath(fromObject, [
8725
+ 'excludedPredefinedFunctions',
8726
+ ]);
8727
+ if (fromExcludedPredefinedFunctions != null) {
8728
+ setValueByPath(toObject, ['excludedPredefinedFunctions'], fromExcludedPredefinedFunctions);
8729
+ }
8730
+ return toObject;
8731
+ }
8672
8732
  function contentFromMldev$1(fromObject) {
8673
8733
  const toObject = {};
8674
8734
  const fromParts = getValueByPath(fromObject, ['parts']);
@@ -9132,6 +9192,12 @@ function liveConnectConfigToMldev$1(fromObject, parentObject) {
9132
9192
  if (parentObject !== undefined && fromSpeechConfig != null) {
9133
9193
  setValueByPath(parentObject, ['setup', 'generationConfig', 'speechConfig'], speechConfigToMldev$2(tLiveSpeechConfig(fromSpeechConfig)));
9134
9194
  }
9195
+ const fromThinkingConfig = getValueByPath(fromObject, [
9196
+ 'thinkingConfig',
9197
+ ]);
9198
+ if (parentObject !== undefined && fromThinkingConfig != null) {
9199
+ setValueByPath(parentObject, ['setup', 'generationConfig', 'thinkingConfig'], thinkingConfigToMldev$2(fromThinkingConfig));
9200
+ }
9135
9201
  const fromEnableAffectiveDialog = getValueByPath(fromObject, [
9136
9202
  'enableAffectiveDialog',
9137
9203
  ]);
@@ -9236,6 +9302,12 @@ function liveConnectConfigToVertex(fromObject, parentObject) {
9236
9302
  if (parentObject !== undefined && fromSpeechConfig != null) {
9237
9303
  setValueByPath(parentObject, ['setup', 'generationConfig', 'speechConfig'], speechConfigToVertex$1(tLiveSpeechConfig(fromSpeechConfig)));
9238
9304
  }
9305
+ const fromThinkingConfig = getValueByPath(fromObject, [
9306
+ 'thinkingConfig',
9307
+ ]);
9308
+ if (parentObject !== undefined && fromThinkingConfig != null) {
9309
+ setValueByPath(parentObject, ['setup', 'generationConfig', 'thinkingConfig'], thinkingConfigToVertex$1(fromThinkingConfig));
9310
+ }
9239
9311
  const fromEnableAffectiveDialog = getValueByPath(fromObject, [
9240
9312
  'enableAffectiveDialog',
9241
9313
  ]);
@@ -10398,31 +10470,35 @@ function speechConfigToVertex$1(fromObject) {
10398
10470
  }
10399
10471
  return toObject;
10400
10472
  }
10401
- function toolComputerUseToMldev$2(fromObject) {
10473
+ function thinkingConfigToMldev$2(fromObject) {
10402
10474
  const toObject = {};
10403
- const fromEnvironment = getValueByPath(fromObject, ['environment']);
10404
- if (fromEnvironment != null) {
10405
- setValueByPath(toObject, ['environment'], fromEnvironment);
10475
+ const fromIncludeThoughts = getValueByPath(fromObject, [
10476
+ 'includeThoughts',
10477
+ ]);
10478
+ if (fromIncludeThoughts != null) {
10479
+ setValueByPath(toObject, ['includeThoughts'], fromIncludeThoughts);
10406
10480
  }
10407
- const fromExcludedPredefinedFunctions = getValueByPath(fromObject, [
10408
- 'excludedPredefinedFunctions',
10481
+ const fromThinkingBudget = getValueByPath(fromObject, [
10482
+ 'thinkingBudget',
10409
10483
  ]);
10410
- if (fromExcludedPredefinedFunctions != null) {
10411
- setValueByPath(toObject, ['excludedPredefinedFunctions'], fromExcludedPredefinedFunctions);
10484
+ if (fromThinkingBudget != null) {
10485
+ setValueByPath(toObject, ['thinkingBudget'], fromThinkingBudget);
10412
10486
  }
10413
10487
  return toObject;
10414
10488
  }
10415
- function toolComputerUseToVertex$1(fromObject) {
10489
+ function thinkingConfigToVertex$1(fromObject) {
10416
10490
  const toObject = {};
10417
- const fromEnvironment = getValueByPath(fromObject, ['environment']);
10418
- if (fromEnvironment != null) {
10419
- setValueByPath(toObject, ['environment'], fromEnvironment);
10491
+ const fromIncludeThoughts = getValueByPath(fromObject, [
10492
+ 'includeThoughts',
10493
+ ]);
10494
+ if (fromIncludeThoughts != null) {
10495
+ setValueByPath(toObject, ['includeThoughts'], fromIncludeThoughts);
10420
10496
  }
10421
- const fromExcludedPredefinedFunctions = getValueByPath(fromObject, [
10422
- 'excludedPredefinedFunctions',
10497
+ const fromThinkingBudget = getValueByPath(fromObject, [
10498
+ 'thinkingBudget',
10423
10499
  ]);
10424
- if (fromExcludedPredefinedFunctions != null) {
10425
- setValueByPath(toObject, ['excludedPredefinedFunctions'], fromExcludedPredefinedFunctions);
10500
+ if (fromThinkingBudget != null) {
10501
+ setValueByPath(toObject, ['thinkingBudget'], fromThinkingBudget);
10426
10502
  }
10427
10503
  return toObject;
10428
10504
  }
@@ -10465,7 +10541,7 @@ function toolToMldev$2(fromObject) {
10465
10541
  }
10466
10542
  const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
10467
10543
  if (fromComputerUse != null) {
10468
- setValueByPath(toObject, ['computerUse'], toolComputerUseToMldev$2(fromComputerUse));
10544
+ setValueByPath(toObject, ['computerUse'], computerUseToMldev$2(fromComputerUse));
10469
10545
  }
10470
10546
  const fromCodeExecution = getValueByPath(fromObject, [
10471
10547
  'codeExecution',
@@ -10519,7 +10595,7 @@ function toolToVertex$1(fromObject) {
10519
10595
  }
10520
10596
  const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
10521
10597
  if (fromComputerUse != null) {
10522
- setValueByPath(toObject, ['computerUse'], toolComputerUseToVertex$1(fromComputerUse));
10598
+ setValueByPath(toObject, ['computerUse'], computerUseToVertex$1(fromComputerUse));
10523
10599
  }
10524
10600
  const fromCodeExecution = getValueByPath(fromObject, [
10525
10601
  'codeExecution',
@@ -11156,6 +11232,34 @@ function computeTokensResponseFromVertex(fromObject) {
11156
11232
  }
11157
11233
  return toObject;
11158
11234
  }
11235
+ function computerUseToMldev$1(fromObject) {
11236
+ const toObject = {};
11237
+ const fromEnvironment = getValueByPath(fromObject, ['environment']);
11238
+ if (fromEnvironment != null) {
11239
+ setValueByPath(toObject, ['environment'], fromEnvironment);
11240
+ }
11241
+ const fromExcludedPredefinedFunctions = getValueByPath(fromObject, [
11242
+ 'excludedPredefinedFunctions',
11243
+ ]);
11244
+ if (fromExcludedPredefinedFunctions != null) {
11245
+ setValueByPath(toObject, ['excludedPredefinedFunctions'], fromExcludedPredefinedFunctions);
11246
+ }
11247
+ return toObject;
11248
+ }
11249
+ function computerUseToVertex(fromObject) {
11250
+ const toObject = {};
11251
+ const fromEnvironment = getValueByPath(fromObject, ['environment']);
11252
+ if (fromEnvironment != null) {
11253
+ setValueByPath(toObject, ['environment'], fromEnvironment);
11254
+ }
11255
+ const fromExcludedPredefinedFunctions = getValueByPath(fromObject, [
11256
+ 'excludedPredefinedFunctions',
11257
+ ]);
11258
+ if (fromExcludedPredefinedFunctions != null) {
11259
+ setValueByPath(toObject, ['excludedPredefinedFunctions'], fromExcludedPredefinedFunctions);
11260
+ }
11261
+ return toObject;
11262
+ }
11159
11263
  function contentEmbeddingFromMldev(fromObject) {
11160
11264
  const toObject = {};
11161
11265
  const fromValues = getValueByPath(fromObject, ['values']);
@@ -12146,7 +12250,11 @@ function generateContentConfigToMldev(apiClient, fromObject, parentObject) {
12146
12250
  'thinkingConfig',
12147
12251
  ]);
12148
12252
  if (fromThinkingConfig != null) {
12149
- setValueByPath(toObject, ['thinkingConfig'], thinkingConfigToMldev(fromThinkingConfig));
12253
+ setValueByPath(toObject, ['thinkingConfig'], thinkingConfigToMldev$1(fromThinkingConfig));
12254
+ }
12255
+ const fromImageConfig = getValueByPath(fromObject, ['imageConfig']);
12256
+ if (fromImageConfig != null) {
12257
+ setValueByPath(toObject, ['imageConfig'], imageConfigToMldev(fromImageConfig));
12150
12258
  }
12151
12259
  return toObject;
12152
12260
  }
@@ -12308,6 +12416,10 @@ function generateContentConfigToVertex(apiClient, fromObject, parentObject) {
12308
12416
  if (fromThinkingConfig != null) {
12309
12417
  setValueByPath(toObject, ['thinkingConfig'], thinkingConfigToVertex(fromThinkingConfig));
12310
12418
  }
12419
+ const fromImageConfig = getValueByPath(fromObject, ['imageConfig']);
12420
+ if (fromImageConfig != null) {
12421
+ setValueByPath(toObject, ['imageConfig'], imageConfigToVertex(fromImageConfig));
12422
+ }
12311
12423
  return toObject;
12312
12424
  }
12313
12425
  function generateContentParametersToMldev(apiClient, fromObject) {
@@ -13190,6 +13302,22 @@ function googleSearchToVertex(fromObject) {
13190
13302
  }
13191
13303
  return toObject;
13192
13304
  }
13305
+ function imageConfigToMldev(fromObject) {
13306
+ const toObject = {};
13307
+ const fromAspectRatio = getValueByPath(fromObject, ['aspectRatio']);
13308
+ if (fromAspectRatio != null) {
13309
+ setValueByPath(toObject, ['aspectRatio'], fromAspectRatio);
13310
+ }
13311
+ return toObject;
13312
+ }
13313
+ function imageConfigToVertex(fromObject) {
13314
+ const toObject = {};
13315
+ const fromAspectRatio = getValueByPath(fromObject, ['aspectRatio']);
13316
+ if (fromAspectRatio != null) {
13317
+ setValueByPath(toObject, ['aspectRatio'], fromAspectRatio);
13318
+ }
13319
+ return toObject;
13320
+ }
13193
13321
  function imageFromMldev(fromObject) {
13194
13322
  const toObject = {};
13195
13323
  const fromImageBytes = getValueByPath(fromObject, [
@@ -14395,7 +14523,7 @@ function subjectReferenceConfigToVertex(fromObject) {
14395
14523
  }
14396
14524
  return toObject;
14397
14525
  }
14398
- function thinkingConfigToMldev(fromObject) {
14526
+ function thinkingConfigToMldev$1(fromObject) {
14399
14527
  const toObject = {};
14400
14528
  const fromIncludeThoughts = getValueByPath(fromObject, [
14401
14529
  'includeThoughts',
@@ -14427,34 +14555,6 @@ function thinkingConfigToVertex(fromObject) {
14427
14555
  }
14428
14556
  return toObject;
14429
14557
  }
14430
- function toolComputerUseToMldev$1(fromObject) {
14431
- const toObject = {};
14432
- const fromEnvironment = getValueByPath(fromObject, ['environment']);
14433
- if (fromEnvironment != null) {
14434
- setValueByPath(toObject, ['environment'], fromEnvironment);
14435
- }
14436
- const fromExcludedPredefinedFunctions = getValueByPath(fromObject, [
14437
- 'excludedPredefinedFunctions',
14438
- ]);
14439
- if (fromExcludedPredefinedFunctions != null) {
14440
- setValueByPath(toObject, ['excludedPredefinedFunctions'], fromExcludedPredefinedFunctions);
14441
- }
14442
- return toObject;
14443
- }
14444
- function toolComputerUseToVertex(fromObject) {
14445
- const toObject = {};
14446
- const fromEnvironment = getValueByPath(fromObject, ['environment']);
14447
- if (fromEnvironment != null) {
14448
- setValueByPath(toObject, ['environment'], fromEnvironment);
14449
- }
14450
- const fromExcludedPredefinedFunctions = getValueByPath(fromObject, [
14451
- 'excludedPredefinedFunctions',
14452
- ]);
14453
- if (fromExcludedPredefinedFunctions != null) {
14454
- setValueByPath(toObject, ['excludedPredefinedFunctions'], fromExcludedPredefinedFunctions);
14455
- }
14456
- return toObject;
14457
- }
14458
14558
  function toolConfigToMldev(fromObject) {
14459
14559
  const toObject = {};
14460
14560
  const fromFunctionCallingConfig = getValueByPath(fromObject, [
@@ -14526,7 +14626,7 @@ function toolToMldev$1(fromObject) {
14526
14626
  }
14527
14627
  const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
14528
14628
  if (fromComputerUse != null) {
14529
- setValueByPath(toObject, ['computerUse'], toolComputerUseToMldev$1(fromComputerUse));
14629
+ setValueByPath(toObject, ['computerUse'], computerUseToMldev$1(fromComputerUse));
14530
14630
  }
14531
14631
  const fromCodeExecution = getValueByPath(fromObject, [
14532
14632
  'codeExecution',
@@ -14580,7 +14680,7 @@ function toolToVertex(fromObject) {
14580
14680
  }
14581
14681
  const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
14582
14682
  if (fromComputerUse != null) {
14583
- setValueByPath(toObject, ['computerUse'], toolComputerUseToVertex(fromComputerUse));
14683
+ setValueByPath(toObject, ['computerUse'], computerUseToVertex(fromComputerUse));
14584
14684
  }
14585
14685
  const fromCodeExecution = getValueByPath(fromObject, [
14586
14686
  'codeExecution',
@@ -17629,6 +17729,20 @@ function blobToMldev(fromObject) {
17629
17729
  }
17630
17730
  return toObject;
17631
17731
  }
17732
+ function computerUseToMldev(fromObject) {
17733
+ const toObject = {};
17734
+ const fromEnvironment = getValueByPath(fromObject, ['environment']);
17735
+ if (fromEnvironment != null) {
17736
+ setValueByPath(toObject, ['environment'], fromEnvironment);
17737
+ }
17738
+ const fromExcludedPredefinedFunctions = getValueByPath(fromObject, [
17739
+ 'excludedPredefinedFunctions',
17740
+ ]);
17741
+ if (fromExcludedPredefinedFunctions != null) {
17742
+ setValueByPath(toObject, ['excludedPredefinedFunctions'], fromExcludedPredefinedFunctions);
17743
+ }
17744
+ return toObject;
17745
+ }
17632
17746
  function contentToMldev(fromObject) {
17633
17747
  const toObject = {};
17634
17748
  const fromParts = getValueByPath(fromObject, ['parts']);
@@ -17863,6 +17977,12 @@ function liveConnectConfigToMldev(fromObject, parentObject) {
17863
17977
  if (parentObject !== undefined && fromSpeechConfig != null) {
17864
17978
  setValueByPath(parentObject, ['setup', 'generationConfig', 'speechConfig'], speechConfigToMldev(tLiveSpeechConfig(fromSpeechConfig)));
17865
17979
  }
17980
+ const fromThinkingConfig = getValueByPath(fromObject, [
17981
+ 'thinkingConfig',
17982
+ ]);
17983
+ if (parentObject !== undefined && fromThinkingConfig != null) {
17984
+ setValueByPath(parentObject, ['setup', 'generationConfig', 'thinkingConfig'], thinkingConfigToMldev(fromThinkingConfig));
17985
+ }
17866
17986
  const fromEnableAffectiveDialog = getValueByPath(fromObject, [
17867
17987
  'enableAffectiveDialog',
17868
17988
  ]);
@@ -18090,17 +18210,19 @@ function speechConfigToMldev(fromObject) {
18090
18210
  }
18091
18211
  return toObject;
18092
18212
  }
18093
- function toolComputerUseToMldev(fromObject) {
18213
+ function thinkingConfigToMldev(fromObject) {
18094
18214
  const toObject = {};
18095
- const fromEnvironment = getValueByPath(fromObject, ['environment']);
18096
- if (fromEnvironment != null) {
18097
- setValueByPath(toObject, ['environment'], fromEnvironment);
18215
+ const fromIncludeThoughts = getValueByPath(fromObject, [
18216
+ 'includeThoughts',
18217
+ ]);
18218
+ if (fromIncludeThoughts != null) {
18219
+ setValueByPath(toObject, ['includeThoughts'], fromIncludeThoughts);
18098
18220
  }
18099
- const fromExcludedPredefinedFunctions = getValueByPath(fromObject, [
18100
- 'excludedPredefinedFunctions',
18221
+ const fromThinkingBudget = getValueByPath(fromObject, [
18222
+ 'thinkingBudget',
18101
18223
  ]);
18102
- if (fromExcludedPredefinedFunctions != null) {
18103
- setValueByPath(toObject, ['excludedPredefinedFunctions'], fromExcludedPredefinedFunctions);
18224
+ if (fromThinkingBudget != null) {
18225
+ setValueByPath(toObject, ['thinkingBudget'], fromThinkingBudget);
18104
18226
  }
18105
18227
  return toObject;
18106
18228
  }
@@ -18143,7 +18265,7 @@ function toolToMldev(fromObject) {
18143
18265
  }
18144
18266
  const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
18145
18267
  if (fromComputerUse != null) {
18146
- setValueByPath(toObject, ['computerUse'], toolComputerUseToMldev(fromComputerUse));
18268
+ setValueByPath(toObject, ['computerUse'], computerUseToMldev(fromComputerUse));
18147
18269
  }
18148
18270
  const fromCodeExecution = getValueByPath(fromObject, [
18149
18271
  'codeExecution',
@@ -18926,6 +19048,12 @@ function tuningJobFromMldev(fromObject) {
18926
19048
  if (fromTunedModelDisplayName != null) {
18927
19049
  setValueByPath(toObject, ['tunedModelDisplayName'], fromTunedModelDisplayName);
18928
19050
  }
19051
+ const fromVeoTuningSpec = getValueByPath(fromObject, [
19052
+ 'veoTuningSpec',
19053
+ ]);
19054
+ if (fromVeoTuningSpec != null) {
19055
+ setValueByPath(toObject, ['veoTuningSpec'], fromVeoTuningSpec);
19056
+ }
18929
19057
  return toObject;
18930
19058
  }
18931
19059
  function tuningJobFromVertex(fromObject) {
@@ -19040,6 +19168,12 @@ function tuningJobFromVertex(fromObject) {
19040
19168
  if (fromTunedModelDisplayName != null) {
19041
19169
  setValueByPath(toObject, ['tunedModelDisplayName'], fromTunedModelDisplayName);
19042
19170
  }
19171
+ const fromVeoTuningSpec = getValueByPath(fromObject, [
19172
+ 'veoTuningSpec',
19173
+ ]);
19174
+ if (fromVeoTuningSpec != null) {
19175
+ setValueByPath(toObject, ['veoTuningSpec'], fromVeoTuningSpec);
19176
+ }
19043
19177
  return toObject;
19044
19178
  }
19045
19179
  function tuningOperationFromMldev(fromObject) {