@google/genai 2.9.0 → 2.11.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/genai.d.ts +1149 -566
- package/dist/index.cjs +579 -105
- package/dist/index.mjs +575 -106
- package/dist/index.mjs.map +1 -1
- package/dist/node/index.cjs +579 -105
- package/dist/node/index.mjs +575 -106
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/node.d.ts +1149 -566
- package/dist/tokenizer/node.cjs +213 -73
- package/dist/tokenizer/node.d.ts +245 -14
- package/dist/tokenizer/node.mjs +213 -73
- package/dist/tokenizer/node.mjs.map +1 -1
- package/dist/vertex_internal/index.cjs +214 -74
- package/dist/vertex_internal/index.cjs.map +1 -1
- package/dist/vertex_internal/index.d.ts +339 -82
- package/dist/vertex_internal/index.js +214 -74
- package/dist/vertex_internal/index.js.map +1 -1
- package/dist/web/index.mjs +575 -106
- package/dist/web/index.mjs.map +1 -1
- package/dist/web/web.d.ts +1149 -566
- package/package.json +2 -9
package/dist/web/index.mjs
CHANGED
|
@@ -674,26 +674,6 @@ var Type;
|
|
|
674
674
|
*/
|
|
675
675
|
Type["NULL"] = "NULL";
|
|
676
676
|
})(Type || (Type = {}));
|
|
677
|
-
/** The environment being operated. */
|
|
678
|
-
var Environment;
|
|
679
|
-
(function (Environment) {
|
|
680
|
-
/**
|
|
681
|
-
* Defaults to browser.
|
|
682
|
-
*/
|
|
683
|
-
Environment["ENVIRONMENT_UNSPECIFIED"] = "ENVIRONMENT_UNSPECIFIED";
|
|
684
|
-
/**
|
|
685
|
-
* Operates in a web browser.
|
|
686
|
-
*/
|
|
687
|
-
Environment["ENVIRONMENT_BROWSER"] = "ENVIRONMENT_BROWSER";
|
|
688
|
-
/**
|
|
689
|
-
* Operates in a mobile environment.
|
|
690
|
-
*/
|
|
691
|
-
Environment["ENVIRONMENT_MOBILE"] = "ENVIRONMENT_MOBILE";
|
|
692
|
-
/**
|
|
693
|
-
* Operates in a desktop environment.
|
|
694
|
-
*/
|
|
695
|
-
Environment["ENVIRONMENT_DESKTOP"] = "ENVIRONMENT_DESKTOP";
|
|
696
|
-
})(Environment || (Environment = {}));
|
|
697
677
|
/** Type of auth scheme. This enum is not supported in Gemini API. */
|
|
698
678
|
var AuthType;
|
|
699
679
|
(function (AuthType) {
|
|
@@ -764,6 +744,62 @@ var ApiSpec;
|
|
|
764
744
|
*/
|
|
765
745
|
ApiSpec["ELASTIC_SEARCH"] = "ELASTIC_SEARCH";
|
|
766
746
|
})(ApiSpec || (ApiSpec = {}));
|
|
747
|
+
/** The environment being operated. */
|
|
748
|
+
var Environment;
|
|
749
|
+
(function (Environment) {
|
|
750
|
+
/**
|
|
751
|
+
* Defaults to browser.
|
|
752
|
+
*/
|
|
753
|
+
Environment["ENVIRONMENT_UNSPECIFIED"] = "ENVIRONMENT_UNSPECIFIED";
|
|
754
|
+
/**
|
|
755
|
+
* Operates in a web browser.
|
|
756
|
+
*/
|
|
757
|
+
Environment["ENVIRONMENT_BROWSER"] = "ENVIRONMENT_BROWSER";
|
|
758
|
+
/**
|
|
759
|
+
* Operates in a mobile environment.
|
|
760
|
+
*/
|
|
761
|
+
Environment["ENVIRONMENT_MOBILE"] = "ENVIRONMENT_MOBILE";
|
|
762
|
+
/**
|
|
763
|
+
* Operates in a desktop environment.
|
|
764
|
+
*/
|
|
765
|
+
Environment["ENVIRONMENT_DESKTOP"] = "ENVIRONMENT_DESKTOP";
|
|
766
|
+
})(Environment || (Environment = {}));
|
|
767
|
+
/** SafetyPolicy */
|
|
768
|
+
var SafetyPolicy;
|
|
769
|
+
(function (SafetyPolicy) {
|
|
770
|
+
/**
|
|
771
|
+
* Unspecified safety policy.
|
|
772
|
+
*/
|
|
773
|
+
SafetyPolicy["SAFETY_POLICY_UNSPECIFIED"] = "SAFETY_POLICY_UNSPECIFIED";
|
|
774
|
+
/**
|
|
775
|
+
* Safety policy for financial transactions.
|
|
776
|
+
*/
|
|
777
|
+
SafetyPolicy["FINANCIAL_TRANSACTIONS"] = "FINANCIAL_TRANSACTIONS";
|
|
778
|
+
/**
|
|
779
|
+
* Safety policy for sensitive data modification.
|
|
780
|
+
*/
|
|
781
|
+
SafetyPolicy["SENSITIVE_DATA_MODIFICATION"] = "SENSITIVE_DATA_MODIFICATION";
|
|
782
|
+
/**
|
|
783
|
+
* Safety policy for communication tools (e.g. Gmail, Chat, Meet).
|
|
784
|
+
*/
|
|
785
|
+
SafetyPolicy["COMMUNICATION_TOOL"] = "COMMUNICATION_TOOL";
|
|
786
|
+
/**
|
|
787
|
+
* Safety policy for account creation.
|
|
788
|
+
*/
|
|
789
|
+
SafetyPolicy["ACCOUNT_CREATION"] = "ACCOUNT_CREATION";
|
|
790
|
+
/**
|
|
791
|
+
* Safety policy for data modification.
|
|
792
|
+
*/
|
|
793
|
+
SafetyPolicy["DATA_MODIFICATION"] = "DATA_MODIFICATION";
|
|
794
|
+
/**
|
|
795
|
+
* Safety policy for user consent management.
|
|
796
|
+
*/
|
|
797
|
+
SafetyPolicy["USER_CONSENT_MANAGEMENT"] = "USER_CONSENT_MANAGEMENT";
|
|
798
|
+
/**
|
|
799
|
+
* Safety policy for legal terms and agreements.
|
|
800
|
+
*/
|
|
801
|
+
SafetyPolicy["LEGAL_TERMS_AND_AGREEMENTS"] = "LEGAL_TERMS_AND_AGREEMENTS";
|
|
802
|
+
})(SafetyPolicy || (SafetyPolicy = {}));
|
|
767
803
|
/** Sites with confidence level chosen & above this value will be blocked from the search results. This enum is not supported in Gemini API. */
|
|
768
804
|
var PhishBlockThreshold;
|
|
769
805
|
(function (PhishBlockThreshold) {
|
|
@@ -796,7 +832,7 @@ var PhishBlockThreshold;
|
|
|
796
832
|
*/
|
|
797
833
|
PhishBlockThreshold["BLOCK_ONLY_EXTREMELY_HIGH"] = "BLOCK_ONLY_EXTREMELY_HIGH";
|
|
798
834
|
})(PhishBlockThreshold || (PhishBlockThreshold = {}));
|
|
799
|
-
/** Specifies the function Behavior.
|
|
835
|
+
/** Specifies the function Behavior. If not specified, the system keeps the current function call behavior. This field is currently only supported by the BidiGenerateContent method. */
|
|
800
836
|
var Behavior;
|
|
801
837
|
(function (Behavior) {
|
|
802
838
|
/**
|
|
@@ -1310,6 +1346,110 @@ var Modality;
|
|
|
1310
1346
|
*/
|
|
1311
1347
|
Modality["VIDEO"] = "VIDEO";
|
|
1312
1348
|
})(Modality || (Modality = {}));
|
|
1349
|
+
/** Delivery mode for the generated content. */
|
|
1350
|
+
var Delivery;
|
|
1351
|
+
(function (Delivery) {
|
|
1352
|
+
/**
|
|
1353
|
+
* Default value. This value is unused.
|
|
1354
|
+
*/
|
|
1355
|
+
Delivery["DELIVERY_UNSPECIFIED"] = "DELIVERY_UNSPECIFIED";
|
|
1356
|
+
/**
|
|
1357
|
+
* Generated bytes are returned inline in the response.
|
|
1358
|
+
*/
|
|
1359
|
+
Delivery["INLINE"] = "INLINE";
|
|
1360
|
+
/**
|
|
1361
|
+
* Generated content is stored and a URI is returned.
|
|
1362
|
+
*/
|
|
1363
|
+
Delivery["URI"] = "URI";
|
|
1364
|
+
})(Delivery || (Delivery = {}));
|
|
1365
|
+
/** The aspect ratio for the image output. */
|
|
1366
|
+
var AspectRatio;
|
|
1367
|
+
(function (AspectRatio) {
|
|
1368
|
+
/**
|
|
1369
|
+
* Default value. This value is unused.
|
|
1370
|
+
*/
|
|
1371
|
+
AspectRatio["ASPECT_RATIO_UNSPECIFIED"] = "ASPECT_RATIO_UNSPECIFIED";
|
|
1372
|
+
/**
|
|
1373
|
+
* 1:1 aspect ratio.
|
|
1374
|
+
*/
|
|
1375
|
+
AspectRatio["ASPECT_RATIO_ONE_BY_ONE"] = "ASPECT_RATIO_ONE_BY_ONE";
|
|
1376
|
+
/**
|
|
1377
|
+
* 2:3 aspect ratio.
|
|
1378
|
+
*/
|
|
1379
|
+
AspectRatio["ASPECT_RATIO_TWO_BY_THREE"] = "ASPECT_RATIO_TWO_BY_THREE";
|
|
1380
|
+
/**
|
|
1381
|
+
* 3:2 aspect ratio.
|
|
1382
|
+
*/
|
|
1383
|
+
AspectRatio["ASPECT_RATIO_THREE_BY_TWO"] = "ASPECT_RATIO_THREE_BY_TWO";
|
|
1384
|
+
/**
|
|
1385
|
+
* 3:4 aspect ratio.
|
|
1386
|
+
*/
|
|
1387
|
+
AspectRatio["ASPECT_RATIO_THREE_BY_FOUR"] = "ASPECT_RATIO_THREE_BY_FOUR";
|
|
1388
|
+
/**
|
|
1389
|
+
* 4:3 aspect ratio.
|
|
1390
|
+
*/
|
|
1391
|
+
AspectRatio["ASPECT_RATIO_FOUR_BY_THREE"] = "ASPECT_RATIO_FOUR_BY_THREE";
|
|
1392
|
+
/**
|
|
1393
|
+
* 4:5 aspect ratio.
|
|
1394
|
+
*/
|
|
1395
|
+
AspectRatio["ASPECT_RATIO_FOUR_BY_FIVE"] = "ASPECT_RATIO_FOUR_BY_FIVE";
|
|
1396
|
+
/**
|
|
1397
|
+
* 5:4 aspect ratio.
|
|
1398
|
+
*/
|
|
1399
|
+
AspectRatio["ASPECT_RATIO_FIVE_BY_FOUR"] = "ASPECT_RATIO_FIVE_BY_FOUR";
|
|
1400
|
+
/**
|
|
1401
|
+
* 9:16 aspect ratio.
|
|
1402
|
+
*/
|
|
1403
|
+
AspectRatio["ASPECT_RATIO_NINE_BY_SIXTEEN"] = "ASPECT_RATIO_NINE_BY_SIXTEEN";
|
|
1404
|
+
/**
|
|
1405
|
+
* 16:9 aspect ratio.
|
|
1406
|
+
*/
|
|
1407
|
+
AspectRatio["ASPECT_RATIO_SIXTEEN_BY_NINE"] = "ASPECT_RATIO_SIXTEEN_BY_NINE";
|
|
1408
|
+
/**
|
|
1409
|
+
* 21:9 aspect ratio.
|
|
1410
|
+
*/
|
|
1411
|
+
AspectRatio["ASPECT_RATIO_TWENTY_ONE_BY_NINE"] = "ASPECT_RATIO_TWENTY_ONE_BY_NINE";
|
|
1412
|
+
/**
|
|
1413
|
+
* 1:8 aspect ratio.
|
|
1414
|
+
*/
|
|
1415
|
+
AspectRatio["ASPECT_RATIO_ONE_BY_EIGHT"] = "ASPECT_RATIO_ONE_BY_EIGHT";
|
|
1416
|
+
/**
|
|
1417
|
+
* 8:1 aspect ratio.
|
|
1418
|
+
*/
|
|
1419
|
+
AspectRatio["ASPECT_RATIO_EIGHT_BY_ONE"] = "ASPECT_RATIO_EIGHT_BY_ONE";
|
|
1420
|
+
/**
|
|
1421
|
+
* 1:4 aspect ratio.
|
|
1422
|
+
*/
|
|
1423
|
+
AspectRatio["ASPECT_RATIO_ONE_BY_FOUR"] = "ASPECT_RATIO_ONE_BY_FOUR";
|
|
1424
|
+
/**
|
|
1425
|
+
* 4:1 aspect ratio.
|
|
1426
|
+
*/
|
|
1427
|
+
AspectRatio["ASPECT_RATIO_FOUR_BY_ONE"] = "ASPECT_RATIO_FOUR_BY_ONE";
|
|
1428
|
+
})(AspectRatio || (AspectRatio = {}));
|
|
1429
|
+
/** The size of the image output. */
|
|
1430
|
+
var ImageSize;
|
|
1431
|
+
(function (ImageSize) {
|
|
1432
|
+
/**
|
|
1433
|
+
* Default value. This value is unused.
|
|
1434
|
+
*/
|
|
1435
|
+
ImageSize["IMAGE_SIZE_UNSPECIFIED"] = "IMAGE_SIZE_UNSPECIFIED";
|
|
1436
|
+
/**
|
|
1437
|
+
* 512px image size.
|
|
1438
|
+
*/
|
|
1439
|
+
ImageSize["IMAGE_SIZE_FIVE_TWELVE"] = "IMAGE_SIZE_FIVE_TWELVE";
|
|
1440
|
+
/**
|
|
1441
|
+
* 1K image size.
|
|
1442
|
+
*/
|
|
1443
|
+
ImageSize["IMAGE_SIZE_ONE_K"] = "IMAGE_SIZE_ONE_K";
|
|
1444
|
+
/**
|
|
1445
|
+
* 2K image size.
|
|
1446
|
+
*/
|
|
1447
|
+
ImageSize["IMAGE_SIZE_TWO_K"] = "IMAGE_SIZE_TWO_K";
|
|
1448
|
+
/**
|
|
1449
|
+
* 4K image size.
|
|
1450
|
+
*/
|
|
1451
|
+
ImageSize["IMAGE_SIZE_FOUR_K"] = "IMAGE_SIZE_FOUR_K";
|
|
1452
|
+
})(ImageSize || (ImageSize = {}));
|
|
1313
1453
|
/** Tuning mode. This enum is not supported in Gemini API. */
|
|
1314
1454
|
var TuningMode;
|
|
1315
1455
|
(function (TuningMode) {
|
|
@@ -1358,6 +1498,58 @@ var AdapterSize;
|
|
|
1358
1498
|
*/
|
|
1359
1499
|
AdapterSize["ADAPTER_SIZE_THIRTY_TWO"] = "ADAPTER_SIZE_THIRTY_TWO";
|
|
1360
1500
|
})(AdapterSize || (AdapterSize = {}));
|
|
1501
|
+
/** Defines the type for parsing sample response. This enum is not supported in Gemini API. */
|
|
1502
|
+
var ResponseParseType;
|
|
1503
|
+
(function (ResponseParseType) {
|
|
1504
|
+
/**
|
|
1505
|
+
* Default value. Fallback to IDENTITY
|
|
1506
|
+
*/
|
|
1507
|
+
ResponseParseType["RESPONSE_PARSE_TYPE_UNSPECIFIED"] = "RESPONSE_PARSE_TYPE_UNSPECIFIED";
|
|
1508
|
+
/**
|
|
1509
|
+
* Returns the sample response as is.
|
|
1510
|
+
*/
|
|
1511
|
+
ResponseParseType["IDENTITY"] = "IDENTITY";
|
|
1512
|
+
/**
|
|
1513
|
+
* Uses regex to extract the important part of sample response. Similar to [GoogleSQL](https://cloud.google.com/bigquery/docs/reference/standard-sql/string_functions#regexp_extract) `REGEX_EXTRACT(response, regex_extract_expression)`, but different in that if there are multiple matches, the last match will be returned.
|
|
1514
|
+
*/
|
|
1515
|
+
ResponseParseType["REGEX_EXTRACT"] = "REGEX_EXTRACT";
|
|
1516
|
+
})(ResponseParseType || (ResponseParseType = {}));
|
|
1517
|
+
/** Match operation to use for evaluating rewards. This enum is not supported in Gemini API. */
|
|
1518
|
+
var MatchOperation;
|
|
1519
|
+
(function (MatchOperation) {
|
|
1520
|
+
/**
|
|
1521
|
+
* Default value. A user error will be returned if not set.
|
|
1522
|
+
*/
|
|
1523
|
+
MatchOperation["MATCH_OPERATION_UNSPECIFIED"] = "MATCH_OPERATION_UNSPECIFIED";
|
|
1524
|
+
/**
|
|
1525
|
+
* Equivalent to [GoogleSQL](https://cloud.google.com/bigquery/docs/reference/standard-sql/string_functions#regexp_contains) `REGEX_CONTAINS(target, expression)`.
|
|
1526
|
+
*/
|
|
1527
|
+
MatchOperation["REGEX_CONTAINS"] = "REGEX_CONTAINS";
|
|
1528
|
+
/**
|
|
1529
|
+
* The match operation returns `true` if expression is a substring of the target.
|
|
1530
|
+
*/
|
|
1531
|
+
MatchOperation["PARTIAL_MATCH"] = "PARTIAL_MATCH";
|
|
1532
|
+
/**
|
|
1533
|
+
* The match operation returns `true` expression is an exact match of the target.
|
|
1534
|
+
*/
|
|
1535
|
+
MatchOperation["EXACT_MATCH"] = "EXACT_MATCH";
|
|
1536
|
+
})(MatchOperation || (MatchOperation = {}));
|
|
1537
|
+
/** Represents how much to think for the tuning job. */
|
|
1538
|
+
var ReinforcementTuningThinkingLevel;
|
|
1539
|
+
(function (ReinforcementTuningThinkingLevel) {
|
|
1540
|
+
/**
|
|
1541
|
+
* Unspecified thinking level.
|
|
1542
|
+
*/
|
|
1543
|
+
ReinforcementTuningThinkingLevel["REINFORCEMENT_TUNING_THINKING_LEVEL_UNSPECIFIED"] = "REINFORCEMENT_TUNING_THINKING_LEVEL_UNSPECIFIED";
|
|
1544
|
+
/**
|
|
1545
|
+
* Little to no thinking.
|
|
1546
|
+
*/
|
|
1547
|
+
ReinforcementTuningThinkingLevel["MINIMAL"] = "MINIMAL";
|
|
1548
|
+
/**
|
|
1549
|
+
* High thinking level.
|
|
1550
|
+
*/
|
|
1551
|
+
ReinforcementTuningThinkingLevel["HIGH"] = "HIGH";
|
|
1552
|
+
})(ReinforcementTuningThinkingLevel || (ReinforcementTuningThinkingLevel = {}));
|
|
1361
1553
|
/** Job state. */
|
|
1362
1554
|
var JobState;
|
|
1363
1555
|
(function (JobState) {
|
|
@@ -1842,58 +2034,6 @@ var ImageResizeMode;
|
|
|
1842
2034
|
*/
|
|
1843
2035
|
ImageResizeMode["PAD"] = "PAD";
|
|
1844
2036
|
})(ImageResizeMode || (ImageResizeMode = {}));
|
|
1845
|
-
/** Defines how to parse sample response. */
|
|
1846
|
-
var ResponseParseType;
|
|
1847
|
-
(function (ResponseParseType) {
|
|
1848
|
-
/**
|
|
1849
|
-
* Default value. This value is unused.
|
|
1850
|
-
*/
|
|
1851
|
-
ResponseParseType["RESPONSE_PARSE_TYPE_UNSPECIFIED"] = "RESPONSE_PARSE_TYPE_UNSPECIFIED";
|
|
1852
|
-
/**
|
|
1853
|
-
* Use the sample response as is.
|
|
1854
|
-
*/
|
|
1855
|
-
ResponseParseType["IDENTITY"] = "IDENTITY";
|
|
1856
|
-
/**
|
|
1857
|
-
* Use regex to extract the important part of sample response.
|
|
1858
|
-
*/
|
|
1859
|
-
ResponseParseType["REGEX_EXTRACT"] = "REGEX_EXTRACT";
|
|
1860
|
-
})(ResponseParseType || (ResponseParseType = {}));
|
|
1861
|
-
/** Match operation to use for evaluation. */
|
|
1862
|
-
var MatchOperation;
|
|
1863
|
-
(function (MatchOperation) {
|
|
1864
|
-
/**
|
|
1865
|
-
* Default value. This value is unused.
|
|
1866
|
-
*/
|
|
1867
|
-
MatchOperation["MATCH_OPERATION_UNSPECIFIED"] = "MATCH_OPERATION_UNSPECIFIED";
|
|
1868
|
-
/**
|
|
1869
|
-
* Equivalent to GoogleSQL `REGEX_CONTAINS(target, expression)`.
|
|
1870
|
-
*/
|
|
1871
|
-
MatchOperation["REGEX_CONTAINS"] = "REGEX_CONTAINS";
|
|
1872
|
-
/**
|
|
1873
|
-
* `expression` is a substring of target.
|
|
1874
|
-
*/
|
|
1875
|
-
MatchOperation["PARTIAL_MATCH"] = "PARTIAL_MATCH";
|
|
1876
|
-
/**
|
|
1877
|
-
* `expression` is an exact match of target.
|
|
1878
|
-
*/
|
|
1879
|
-
MatchOperation["EXACT_MATCH"] = "EXACT_MATCH";
|
|
1880
|
-
})(MatchOperation || (MatchOperation = {}));
|
|
1881
|
-
/** Represents how much to think for the tuning job. */
|
|
1882
|
-
var ReinforcementTuningThinkingLevel;
|
|
1883
|
-
(function (ReinforcementTuningThinkingLevel) {
|
|
1884
|
-
/**
|
|
1885
|
-
* Unspecified thinking level.
|
|
1886
|
-
*/
|
|
1887
|
-
ReinforcementTuningThinkingLevel["REINFORCEMENT_TUNING_THINKING_LEVEL_UNSPECIFIED"] = "REINFORCEMENT_TUNING_THINKING_LEVEL_UNSPECIFIED";
|
|
1888
|
-
/**
|
|
1889
|
-
* Little to no thinking.
|
|
1890
|
-
*/
|
|
1891
|
-
ReinforcementTuningThinkingLevel["MINIMAL"] = "MINIMAL";
|
|
1892
|
-
/**
|
|
1893
|
-
* High thinking level.
|
|
1894
|
-
*/
|
|
1895
|
-
ReinforcementTuningThinkingLevel["HIGH"] = "HIGH";
|
|
1896
|
-
})(ReinforcementTuningThinkingLevel || (ReinforcementTuningThinkingLevel = {}));
|
|
1897
2037
|
/** Enum representing the tuning method. */
|
|
1898
2038
|
var TuningMethod;
|
|
1899
2039
|
(function (TuningMethod) {
|
|
@@ -2690,6 +2830,21 @@ class ListModelsResponse {
|
|
|
2690
2830
|
}
|
|
2691
2831
|
class DeleteModelResponse {
|
|
2692
2832
|
}
|
|
2833
|
+
/** Configuration for audio-specific output formatting. */
|
|
2834
|
+
class AudioResponseFormat {
|
|
2835
|
+
}
|
|
2836
|
+
/** Configuration for image-specific output formatting. */
|
|
2837
|
+
class ImageResponseFormat {
|
|
2838
|
+
}
|
|
2839
|
+
/** Configuration for text-specific output formatting. */
|
|
2840
|
+
class TextResponseFormat {
|
|
2841
|
+
}
|
|
2842
|
+
/** Configuration for video-specific output formatting. This data type is not supported in Gemini API. */
|
|
2843
|
+
class VideoResponseFormat {
|
|
2844
|
+
}
|
|
2845
|
+
/** Configuration for the model to configure output formatting and delivery. This data type is not supported in Gemini API. */
|
|
2846
|
+
class ResponseFormat {
|
|
2847
|
+
}
|
|
2693
2848
|
/** Response for counting tokens. */
|
|
2694
2849
|
class CountTokensResponse {
|
|
2695
2850
|
}
|
|
@@ -2718,10 +2873,10 @@ class GenerateVideosOperation {
|
|
|
2718
2873
|
return operation;
|
|
2719
2874
|
}
|
|
2720
2875
|
}
|
|
2721
|
-
/** Defines how to parse sample response for reinforcement tuning. */
|
|
2876
|
+
/** Defines how to parse sample response config for reinforcement tuning. The parsed response (i.e., substring) will be passed to the reward functions. For example, the input prompt might be: > "Perform step-by-step thoughts first to problem A, finally output answer in the <ans> </ans> block." The sample response from the model under tuning might look like: > "<ans>Yes</ans>" Here, users can define the following parse config: ``` { "parseType": "REGEX_EXTRACT", "regexExtractExpression": ".*(.*?)" } ``` The resulting parsed response would be `"Yes"` and will be passed to the reward functions for evaluating rewards. This data type is not supported in Gemini API. */
|
|
2722
2877
|
class ReinforcementTuningParseResponseConfig {
|
|
2723
2878
|
}
|
|
2724
|
-
/** Scores responses by directly converting parsed autorater response to float reward
|
|
2879
|
+
/** Scores responses by directly converting the parsed autorater response to a float reward. Note: Reward is clipped to be within `[-1, 1]`, i.e., `reward = max(min(reward, 1.0), -1.0)`. This data type is not supported in Gemini API. */
|
|
2725
2880
|
class ReinforcementTuningAutoraterScorerParsedResponseConversionScorer {
|
|
2726
2881
|
}
|
|
2727
2882
|
/** The results from an evaluation run performed by the EvaluationService. This data type is not supported in Gemini API. */
|
|
@@ -5161,6 +5316,9 @@ function toolToMldev$4(fromObject) {
|
|
|
5161
5316
|
}
|
|
5162
5317
|
setValueByPath(toObject, ['mcpServers'], transformedList);
|
|
5163
5318
|
}
|
|
5319
|
+
if (getValueByPath(fromObject, ['exaAiSearch']) !== undefined) {
|
|
5320
|
+
throw new Error('exaAiSearch parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');
|
|
5321
|
+
}
|
|
5164
5322
|
return toObject;
|
|
5165
5323
|
}
|
|
5166
5324
|
function vertexMultimodalDatasetDestinationFromVertex(fromObject) {
|
|
@@ -5943,6 +6101,29 @@ function codeExecutionResultToVertex$3(fromObject) {
|
|
|
5943
6101
|
}
|
|
5944
6102
|
return toObject;
|
|
5945
6103
|
}
|
|
6104
|
+
function computerUseToVertex$2(fromObject) {
|
|
6105
|
+
const toObject = {};
|
|
6106
|
+
const fromEnvironment = getValueByPath(fromObject, ['environment']);
|
|
6107
|
+
if (fromEnvironment != null) {
|
|
6108
|
+
setValueByPath(toObject, ['environment'], fromEnvironment);
|
|
6109
|
+
}
|
|
6110
|
+
const fromExcludedPredefinedFunctions = getValueByPath(fromObject, [
|
|
6111
|
+
'excludedPredefinedFunctions',
|
|
6112
|
+
]);
|
|
6113
|
+
if (fromExcludedPredefinedFunctions != null) {
|
|
6114
|
+
setValueByPath(toObject, ['excludedPredefinedFunctions'], fromExcludedPredefinedFunctions);
|
|
6115
|
+
}
|
|
6116
|
+
const fromEnablePromptInjectionDetection = getValueByPath(fromObject, [
|
|
6117
|
+
'enablePromptInjectionDetection',
|
|
6118
|
+
]);
|
|
6119
|
+
if (fromEnablePromptInjectionDetection != null) {
|
|
6120
|
+
setValueByPath(toObject, ['enablePromptInjectionDetection'], fromEnablePromptInjectionDetection);
|
|
6121
|
+
}
|
|
6122
|
+
if (getValueByPath(fromObject, ['disabledSafetyPolicies']) !== undefined) {
|
|
6123
|
+
throw new Error('disabledSafetyPolicies parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');
|
|
6124
|
+
}
|
|
6125
|
+
return toObject;
|
|
6126
|
+
}
|
|
5946
6127
|
function contentToMldev$3(fromObject) {
|
|
5947
6128
|
const toObject = {};
|
|
5948
6129
|
const fromParts = getValueByPath(fromObject, ['parts']);
|
|
@@ -6608,6 +6789,9 @@ function toolToMldev$3(fromObject) {
|
|
|
6608
6789
|
}
|
|
6609
6790
|
setValueByPath(toObject, ['mcpServers'], transformedList);
|
|
6610
6791
|
}
|
|
6792
|
+
if (getValueByPath(fromObject, ['exaAiSearch']) !== undefined) {
|
|
6793
|
+
throw new Error('exaAiSearch parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');
|
|
6794
|
+
}
|
|
6611
6795
|
return toObject;
|
|
6612
6796
|
}
|
|
6613
6797
|
function toolToVertex$2(fromObject) {
|
|
@@ -6618,7 +6802,7 @@ function toolToVertex$2(fromObject) {
|
|
|
6618
6802
|
}
|
|
6619
6803
|
const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
|
|
6620
6804
|
if (fromComputerUse != null) {
|
|
6621
|
-
setValueByPath(toObject, ['computerUse'], fromComputerUse);
|
|
6805
|
+
setValueByPath(toObject, ['computerUse'], computerUseToVertex$2(fromComputerUse));
|
|
6622
6806
|
}
|
|
6623
6807
|
if (getValueByPath(fromObject, ['fileSearch']) !== undefined) {
|
|
6624
6808
|
throw new Error('fileSearch parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');
|
|
@@ -6681,6 +6865,10 @@ function toolToVertex$2(fromObject) {
|
|
|
6681
6865
|
}
|
|
6682
6866
|
setValueByPath(toObject, ['mcpServers'], transformedList);
|
|
6683
6867
|
}
|
|
6868
|
+
const fromExaAiSearch = getValueByPath(fromObject, ['exaAiSearch']);
|
|
6869
|
+
if (fromExaAiSearch != null) {
|
|
6870
|
+
setValueByPath(toObject, ['exaAiSearch'], fromExaAiSearch);
|
|
6871
|
+
}
|
|
6684
6872
|
return toObject;
|
|
6685
6873
|
}
|
|
6686
6874
|
function updateCachedContentConfigToMldev(fromObject, parentObject) {
|
|
@@ -7685,7 +7873,7 @@ class Files extends BaseModule {
|
|
|
7685
7873
|
* file extension.
|
|
7686
7874
|
* - For Blob object inputs, the `mimeType` will be set to the Blob's `type`
|
|
7687
7875
|
* property.
|
|
7688
|
-
*
|
|
7876
|
+
* Some examples for file extension to mimeType mapping:
|
|
7689
7877
|
* .txt -> text/plain
|
|
7690
7878
|
* .json -> application/json
|
|
7691
7879
|
* .jpg -> image/jpeg
|
|
@@ -8048,6 +8236,29 @@ function codeExecutionResultToVertex$2(fromObject) {
|
|
|
8048
8236
|
}
|
|
8049
8237
|
return toObject;
|
|
8050
8238
|
}
|
|
8239
|
+
function computerUseToVertex$1(fromObject) {
|
|
8240
|
+
const toObject = {};
|
|
8241
|
+
const fromEnvironment = getValueByPath(fromObject, ['environment']);
|
|
8242
|
+
if (fromEnvironment != null) {
|
|
8243
|
+
setValueByPath(toObject, ['environment'], fromEnvironment);
|
|
8244
|
+
}
|
|
8245
|
+
const fromExcludedPredefinedFunctions = getValueByPath(fromObject, [
|
|
8246
|
+
'excludedPredefinedFunctions',
|
|
8247
|
+
]);
|
|
8248
|
+
if (fromExcludedPredefinedFunctions != null) {
|
|
8249
|
+
setValueByPath(toObject, ['excludedPredefinedFunctions'], fromExcludedPredefinedFunctions);
|
|
8250
|
+
}
|
|
8251
|
+
const fromEnablePromptInjectionDetection = getValueByPath(fromObject, [
|
|
8252
|
+
'enablePromptInjectionDetection',
|
|
8253
|
+
]);
|
|
8254
|
+
if (fromEnablePromptInjectionDetection != null) {
|
|
8255
|
+
setValueByPath(toObject, ['enablePromptInjectionDetection'], fromEnablePromptInjectionDetection);
|
|
8256
|
+
}
|
|
8257
|
+
if (getValueByPath(fromObject, ['disabledSafetyPolicies']) !== undefined) {
|
|
8258
|
+
throw new Error('disabledSafetyPolicies parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');
|
|
8259
|
+
}
|
|
8260
|
+
return toObject;
|
|
8261
|
+
}
|
|
8051
8262
|
function contentToMldev$2(fromObject) {
|
|
8052
8263
|
const toObject = {};
|
|
8053
8264
|
const fromParts = getValueByPath(fromObject, ['parts']);
|
|
@@ -8232,7 +8443,7 @@ function generationConfigToVertex$1(fromObject) {
|
|
|
8232
8443
|
}
|
|
8233
8444
|
const fromSpeechConfig = getValueByPath(fromObject, ['speechConfig']);
|
|
8234
8445
|
if (fromSpeechConfig != null) {
|
|
8235
|
-
setValueByPath(toObject, ['speechConfig'], fromSpeechConfig);
|
|
8446
|
+
setValueByPath(toObject, ['speechConfig'], speechConfigToVertex$1(fromSpeechConfig));
|
|
8236
8447
|
}
|
|
8237
8448
|
const fromStopSequences = getValueByPath(fromObject, [
|
|
8238
8449
|
'stopSequences',
|
|
@@ -8262,6 +8473,21 @@ function generationConfigToVertex$1(fromObject) {
|
|
|
8262
8473
|
undefined) {
|
|
8263
8474
|
throw new Error('enableEnhancedCivicAnswers parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');
|
|
8264
8475
|
}
|
|
8476
|
+
const fromResponseFormat = getValueByPath(fromObject, [
|
|
8477
|
+
'responseFormat',
|
|
8478
|
+
]);
|
|
8479
|
+
if (fromResponseFormat != null) {
|
|
8480
|
+
let transformedList = fromResponseFormat;
|
|
8481
|
+
if (Array.isArray(transformedList)) {
|
|
8482
|
+
transformedList = transformedList.map((item) => {
|
|
8483
|
+
return item;
|
|
8484
|
+
});
|
|
8485
|
+
}
|
|
8486
|
+
setValueByPath(toObject, ['responseFormat'], transformedList);
|
|
8487
|
+
}
|
|
8488
|
+
if (getValueByPath(fromObject, ['translationConfig']) !== undefined) {
|
|
8489
|
+
throw new Error('translationConfig parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');
|
|
8490
|
+
}
|
|
8265
8491
|
return toObject;
|
|
8266
8492
|
}
|
|
8267
8493
|
function googleMapsToMldev$2(fromObject) {
|
|
@@ -8475,7 +8701,7 @@ function liveConnectConfigToVertex(fromObject, parentObject) {
|
|
|
8475
8701
|
}
|
|
8476
8702
|
const fromSpeechConfig = getValueByPath(fromObject, ['speechConfig']);
|
|
8477
8703
|
if (parentObject !== undefined && fromSpeechConfig != null) {
|
|
8478
|
-
setValueByPath(parentObject, ['setup', 'generationConfig', 'speechConfig'], tLiveSpeechConfig(fromSpeechConfig));
|
|
8704
|
+
setValueByPath(parentObject, ['setup', 'generationConfig', 'speechConfig'], speechConfigToVertex$1(tLiveSpeechConfig(fromSpeechConfig)));
|
|
8479
8705
|
}
|
|
8480
8706
|
const fromThinkingConfig = getValueByPath(fromObject, [
|
|
8481
8707
|
'thinkingConfig',
|
|
@@ -8764,6 +8990,22 @@ function mcpServerToVertex$1(fromObject) {
|
|
|
8764
8990
|
}
|
|
8765
8991
|
return toObject;
|
|
8766
8992
|
}
|
|
8993
|
+
function multiSpeakerVoiceConfigToVertex$1(fromObject) {
|
|
8994
|
+
const toObject = {};
|
|
8995
|
+
const fromSpeakerVoiceConfigs = getValueByPath(fromObject, [
|
|
8996
|
+
'speakerVoiceConfigs',
|
|
8997
|
+
]);
|
|
8998
|
+
if (fromSpeakerVoiceConfigs != null) {
|
|
8999
|
+
let transformedList = fromSpeakerVoiceConfigs;
|
|
9000
|
+
if (Array.isArray(transformedList)) {
|
|
9001
|
+
transformedList = transformedList.map((item) => {
|
|
9002
|
+
return speakerVoiceConfigToVertex$1(item);
|
|
9003
|
+
});
|
|
9004
|
+
}
|
|
9005
|
+
setValueByPath(toObject, ['speakerVoiceConfigs'], transformedList);
|
|
9006
|
+
}
|
|
9007
|
+
return toObject;
|
|
9008
|
+
}
|
|
8767
9009
|
function partToMldev$2(fromObject) {
|
|
8768
9010
|
const toObject = {};
|
|
8769
9011
|
const fromMediaResolution = getValueByPath(fromObject, [
|
|
@@ -8905,6 +9147,26 @@ function partToVertex$2(fromObject) {
|
|
|
8905
9147
|
}
|
|
8906
9148
|
return toObject;
|
|
8907
9149
|
}
|
|
9150
|
+
function replicatedVoiceConfigToVertex$1(fromObject) {
|
|
9151
|
+
const toObject = {};
|
|
9152
|
+
const fromMimeType = getValueByPath(fromObject, ['mimeType']);
|
|
9153
|
+
if (fromMimeType != null) {
|
|
9154
|
+
setValueByPath(toObject, ['mimeType'], fromMimeType);
|
|
9155
|
+
}
|
|
9156
|
+
const fromVoiceSampleAudio = getValueByPath(fromObject, [
|
|
9157
|
+
'voiceSampleAudio',
|
|
9158
|
+
]);
|
|
9159
|
+
if (fromVoiceSampleAudio != null) {
|
|
9160
|
+
setValueByPath(toObject, ['voiceSampleAudio'], fromVoiceSampleAudio);
|
|
9161
|
+
}
|
|
9162
|
+
if (getValueByPath(fromObject, ['consentAudio']) !== undefined) {
|
|
9163
|
+
throw new Error('consentAudio parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');
|
|
9164
|
+
}
|
|
9165
|
+
if (getValueByPath(fromObject, ['voiceConsentSignature']) !== undefined) {
|
|
9166
|
+
throw new Error('voiceConsentSignature parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');
|
|
9167
|
+
}
|
|
9168
|
+
return toObject;
|
|
9169
|
+
}
|
|
8908
9170
|
function safetySettingToMldev$2(fromObject) {
|
|
8909
9171
|
const toObject = {};
|
|
8910
9172
|
const fromCategory = getValueByPath(fromObject, ['category']);
|
|
@@ -8931,6 +9193,36 @@ function sessionResumptionConfigToMldev$1(fromObject) {
|
|
|
8931
9193
|
}
|
|
8932
9194
|
return toObject;
|
|
8933
9195
|
}
|
|
9196
|
+
function speakerVoiceConfigToVertex$1(fromObject) {
|
|
9197
|
+
const toObject = {};
|
|
9198
|
+
const fromSpeaker = getValueByPath(fromObject, ['speaker']);
|
|
9199
|
+
if (fromSpeaker != null) {
|
|
9200
|
+
setValueByPath(toObject, ['speaker'], fromSpeaker);
|
|
9201
|
+
}
|
|
9202
|
+
const fromVoiceConfig = getValueByPath(fromObject, ['voiceConfig']);
|
|
9203
|
+
if (fromVoiceConfig != null) {
|
|
9204
|
+
setValueByPath(toObject, ['voiceConfig'], voiceConfigToVertex$1(fromVoiceConfig));
|
|
9205
|
+
}
|
|
9206
|
+
return toObject;
|
|
9207
|
+
}
|
|
9208
|
+
function speechConfigToVertex$1(fromObject) {
|
|
9209
|
+
const toObject = {};
|
|
9210
|
+
const fromVoiceConfig = getValueByPath(fromObject, ['voiceConfig']);
|
|
9211
|
+
if (fromVoiceConfig != null) {
|
|
9212
|
+
setValueByPath(toObject, ['voiceConfig'], voiceConfigToVertex$1(fromVoiceConfig));
|
|
9213
|
+
}
|
|
9214
|
+
const fromLanguageCode = getValueByPath(fromObject, ['languageCode']);
|
|
9215
|
+
if (fromLanguageCode != null) {
|
|
9216
|
+
setValueByPath(toObject, ['languageCode'], fromLanguageCode);
|
|
9217
|
+
}
|
|
9218
|
+
const fromMultiSpeakerVoiceConfig = getValueByPath(fromObject, [
|
|
9219
|
+
'multiSpeakerVoiceConfig',
|
|
9220
|
+
]);
|
|
9221
|
+
if (fromMultiSpeakerVoiceConfig != null) {
|
|
9222
|
+
setValueByPath(toObject, ['multiSpeakerVoiceConfig'], multiSpeakerVoiceConfigToVertex$1(fromMultiSpeakerVoiceConfig));
|
|
9223
|
+
}
|
|
9224
|
+
return toObject;
|
|
9225
|
+
}
|
|
8934
9226
|
function toolToMldev$2(fromObject) {
|
|
8935
9227
|
const toObject = {};
|
|
8936
9228
|
if (getValueByPath(fromObject, ['retrieval']) !== undefined) {
|
|
@@ -8996,6 +9288,9 @@ function toolToMldev$2(fromObject) {
|
|
|
8996
9288
|
}
|
|
8997
9289
|
setValueByPath(toObject, ['mcpServers'], transformedList);
|
|
8998
9290
|
}
|
|
9291
|
+
if (getValueByPath(fromObject, ['exaAiSearch']) !== undefined) {
|
|
9292
|
+
throw new Error('exaAiSearch parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');
|
|
9293
|
+
}
|
|
8999
9294
|
return toObject;
|
|
9000
9295
|
}
|
|
9001
9296
|
function toolToVertex$1(fromObject) {
|
|
@@ -9006,7 +9301,7 @@ function toolToVertex$1(fromObject) {
|
|
|
9006
9301
|
}
|
|
9007
9302
|
const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
|
|
9008
9303
|
if (fromComputerUse != null) {
|
|
9009
|
-
setValueByPath(toObject, ['computerUse'], fromComputerUse);
|
|
9304
|
+
setValueByPath(toObject, ['computerUse'], computerUseToVertex$1(fromComputerUse));
|
|
9010
9305
|
}
|
|
9011
9306
|
if (getValueByPath(fromObject, ['fileSearch']) !== undefined) {
|
|
9012
9307
|
throw new Error('fileSearch parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');
|
|
@@ -9069,6 +9364,10 @@ function toolToVertex$1(fromObject) {
|
|
|
9069
9364
|
}
|
|
9070
9365
|
setValueByPath(toObject, ['mcpServers'], transformedList);
|
|
9071
9366
|
}
|
|
9367
|
+
const fromExaAiSearch = getValueByPath(fromObject, ['exaAiSearch']);
|
|
9368
|
+
if (fromExaAiSearch != null) {
|
|
9369
|
+
setValueByPath(toObject, ['exaAiSearch'], fromExaAiSearch);
|
|
9370
|
+
}
|
|
9072
9371
|
return toObject;
|
|
9073
9372
|
}
|
|
9074
9373
|
function usageMetadataFromVertex(fromObject) {
|
|
@@ -9175,6 +9474,22 @@ function voiceActivityFromVertex(fromObject) {
|
|
|
9175
9474
|
}
|
|
9176
9475
|
return toObject;
|
|
9177
9476
|
}
|
|
9477
|
+
function voiceConfigToVertex$1(fromObject) {
|
|
9478
|
+
const toObject = {};
|
|
9479
|
+
const fromReplicatedVoiceConfig = getValueByPath(fromObject, [
|
|
9480
|
+
'replicatedVoiceConfig',
|
|
9481
|
+
]);
|
|
9482
|
+
if (fromReplicatedVoiceConfig != null) {
|
|
9483
|
+
setValueByPath(toObject, ['replicatedVoiceConfig'], replicatedVoiceConfigToVertex$1(fromReplicatedVoiceConfig));
|
|
9484
|
+
}
|
|
9485
|
+
const fromPrebuiltVoiceConfig = getValueByPath(fromObject, [
|
|
9486
|
+
'prebuiltVoiceConfig',
|
|
9487
|
+
]);
|
|
9488
|
+
if (fromPrebuiltVoiceConfig != null) {
|
|
9489
|
+
setValueByPath(toObject, ['prebuiltVoiceConfig'], fromPrebuiltVoiceConfig);
|
|
9490
|
+
}
|
|
9491
|
+
return toObject;
|
|
9492
|
+
}
|
|
9178
9493
|
|
|
9179
9494
|
/**
|
|
9180
9495
|
* @license
|
|
@@ -9350,6 +9665,29 @@ function computeTokensResponseFromVertex(fromObject, _rootObject) {
|
|
|
9350
9665
|
}
|
|
9351
9666
|
return toObject;
|
|
9352
9667
|
}
|
|
9668
|
+
function computerUseToVertex(fromObject, _rootObject) {
|
|
9669
|
+
const toObject = {};
|
|
9670
|
+
const fromEnvironment = getValueByPath(fromObject, ['environment']);
|
|
9671
|
+
if (fromEnvironment != null) {
|
|
9672
|
+
setValueByPath(toObject, ['environment'], fromEnvironment);
|
|
9673
|
+
}
|
|
9674
|
+
const fromExcludedPredefinedFunctions = getValueByPath(fromObject, [
|
|
9675
|
+
'excludedPredefinedFunctions',
|
|
9676
|
+
]);
|
|
9677
|
+
if (fromExcludedPredefinedFunctions != null) {
|
|
9678
|
+
setValueByPath(toObject, ['excludedPredefinedFunctions'], fromExcludedPredefinedFunctions);
|
|
9679
|
+
}
|
|
9680
|
+
const fromEnablePromptInjectionDetection = getValueByPath(fromObject, [
|
|
9681
|
+
'enablePromptInjectionDetection',
|
|
9682
|
+
]);
|
|
9683
|
+
if (fromEnablePromptInjectionDetection != null) {
|
|
9684
|
+
setValueByPath(toObject, ['enablePromptInjectionDetection'], fromEnablePromptInjectionDetection);
|
|
9685
|
+
}
|
|
9686
|
+
if (getValueByPath(fromObject, ['disabledSafetyPolicies']) !== undefined) {
|
|
9687
|
+
throw new Error('disabledSafetyPolicies parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');
|
|
9688
|
+
}
|
|
9689
|
+
return toObject;
|
|
9690
|
+
}
|
|
9353
9691
|
function contentEmbeddingFromVertex(fromObject, rootObject) {
|
|
9354
9692
|
const toObject = {};
|
|
9355
9693
|
const fromValues = getValueByPath(fromObject, ['values']);
|
|
@@ -10405,7 +10743,7 @@ function generateContentConfigToVertex(apiClient, fromObject, parentObject, root
|
|
|
10405
10743
|
}
|
|
10406
10744
|
const fromSpeechConfig = getValueByPath(fromObject, ['speechConfig']);
|
|
10407
10745
|
if (fromSpeechConfig != null) {
|
|
10408
|
-
setValueByPath(toObject, ['speechConfig'], tSpeechConfig(fromSpeechConfig));
|
|
10746
|
+
setValueByPath(toObject, ['speechConfig'], speechConfigToVertex(tSpeechConfig(fromSpeechConfig)));
|
|
10409
10747
|
}
|
|
10410
10748
|
const fromAudioTimestamp = getValueByPath(fromObject, [
|
|
10411
10749
|
'audioTimestamp',
|
|
@@ -11292,7 +11630,7 @@ function generatedVideoFromVertex(fromObject, rootObject) {
|
|
|
11292
11630
|
}
|
|
11293
11631
|
return toObject;
|
|
11294
11632
|
}
|
|
11295
|
-
function generationConfigToVertex(fromObject,
|
|
11633
|
+
function generationConfigToVertex(fromObject, rootObject) {
|
|
11296
11634
|
const toObject = {};
|
|
11297
11635
|
const fromModelSelectionConfig = getValueByPath(fromObject, [
|
|
11298
11636
|
'modelSelectionConfig',
|
|
@@ -11388,7 +11726,7 @@ function generationConfigToVertex(fromObject, _rootObject) {
|
|
|
11388
11726
|
}
|
|
11389
11727
|
const fromSpeechConfig = getValueByPath(fromObject, ['speechConfig']);
|
|
11390
11728
|
if (fromSpeechConfig != null) {
|
|
11391
|
-
setValueByPath(toObject, ['speechConfig'], fromSpeechConfig);
|
|
11729
|
+
setValueByPath(toObject, ['speechConfig'], speechConfigToVertex(fromSpeechConfig));
|
|
11392
11730
|
}
|
|
11393
11731
|
const fromStopSequences = getValueByPath(fromObject, [
|
|
11394
11732
|
'stopSequences',
|
|
@@ -11418,6 +11756,21 @@ function generationConfigToVertex(fromObject, _rootObject) {
|
|
|
11418
11756
|
undefined) {
|
|
11419
11757
|
throw new Error('enableEnhancedCivicAnswers parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');
|
|
11420
11758
|
}
|
|
11759
|
+
const fromResponseFormat = getValueByPath(fromObject, [
|
|
11760
|
+
'responseFormat',
|
|
11761
|
+
]);
|
|
11762
|
+
if (fromResponseFormat != null) {
|
|
11763
|
+
let transformedList = fromResponseFormat;
|
|
11764
|
+
if (Array.isArray(transformedList)) {
|
|
11765
|
+
transformedList = transformedList.map((item) => {
|
|
11766
|
+
return item;
|
|
11767
|
+
});
|
|
11768
|
+
}
|
|
11769
|
+
setValueByPath(toObject, ['responseFormat'], transformedList);
|
|
11770
|
+
}
|
|
11771
|
+
if (getValueByPath(fromObject, ['translationConfig']) !== undefined) {
|
|
11772
|
+
throw new Error('translationConfig parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');
|
|
11773
|
+
}
|
|
11421
11774
|
return toObject;
|
|
11422
11775
|
}
|
|
11423
11776
|
function getModelParametersToMldev(apiClient, fromObject, _rootObject) {
|
|
@@ -11855,6 +12208,22 @@ function modelFromVertex(fromObject, rootObject) {
|
|
|
11855
12208
|
}
|
|
11856
12209
|
return toObject;
|
|
11857
12210
|
}
|
|
12211
|
+
function multiSpeakerVoiceConfigToVertex(fromObject, rootObject) {
|
|
12212
|
+
const toObject = {};
|
|
12213
|
+
const fromSpeakerVoiceConfigs = getValueByPath(fromObject, [
|
|
12214
|
+
'speakerVoiceConfigs',
|
|
12215
|
+
]);
|
|
12216
|
+
if (fromSpeakerVoiceConfigs != null) {
|
|
12217
|
+
let transformedList = fromSpeakerVoiceConfigs;
|
|
12218
|
+
if (Array.isArray(transformedList)) {
|
|
12219
|
+
transformedList = transformedList.map((item) => {
|
|
12220
|
+
return speakerVoiceConfigToVertex(item);
|
|
12221
|
+
});
|
|
12222
|
+
}
|
|
12223
|
+
setValueByPath(toObject, ['speakerVoiceConfigs'], transformedList);
|
|
12224
|
+
}
|
|
12225
|
+
return toObject;
|
|
12226
|
+
}
|
|
11858
12227
|
function partToMldev$1(fromObject, rootObject) {
|
|
11859
12228
|
const toObject = {};
|
|
11860
12229
|
const fromMediaResolution = getValueByPath(fromObject, [
|
|
@@ -12164,6 +12533,26 @@ function referenceImageAPIInternalToVertex(fromObject, rootObject) {
|
|
|
12164
12533
|
}
|
|
12165
12534
|
return toObject;
|
|
12166
12535
|
}
|
|
12536
|
+
function replicatedVoiceConfigToVertex(fromObject, _rootObject) {
|
|
12537
|
+
const toObject = {};
|
|
12538
|
+
const fromMimeType = getValueByPath(fromObject, ['mimeType']);
|
|
12539
|
+
if (fromMimeType != null) {
|
|
12540
|
+
setValueByPath(toObject, ['mimeType'], fromMimeType);
|
|
12541
|
+
}
|
|
12542
|
+
const fromVoiceSampleAudio = getValueByPath(fromObject, [
|
|
12543
|
+
'voiceSampleAudio',
|
|
12544
|
+
]);
|
|
12545
|
+
if (fromVoiceSampleAudio != null) {
|
|
12546
|
+
setValueByPath(toObject, ['voiceSampleAudio'], fromVoiceSampleAudio);
|
|
12547
|
+
}
|
|
12548
|
+
if (getValueByPath(fromObject, ['consentAudio']) !== undefined) {
|
|
12549
|
+
throw new Error('consentAudio parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');
|
|
12550
|
+
}
|
|
12551
|
+
if (getValueByPath(fromObject, ['voiceConsentSignature']) !== undefined) {
|
|
12552
|
+
throw new Error('voiceConsentSignature parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');
|
|
12553
|
+
}
|
|
12554
|
+
return toObject;
|
|
12555
|
+
}
|
|
12167
12556
|
function safetyAttributesFromMldev(fromObject, _rootObject) {
|
|
12168
12557
|
const toObject = {};
|
|
12169
12558
|
const fromCategories = getValueByPath(fromObject, [
|
|
@@ -12313,6 +12702,36 @@ function segmentImageSourceToVertex(fromObject, parentObject, rootObject) {
|
|
|
12313
12702
|
}
|
|
12314
12703
|
return toObject;
|
|
12315
12704
|
}
|
|
12705
|
+
function speakerVoiceConfigToVertex(fromObject, rootObject) {
|
|
12706
|
+
const toObject = {};
|
|
12707
|
+
const fromSpeaker = getValueByPath(fromObject, ['speaker']);
|
|
12708
|
+
if (fromSpeaker != null) {
|
|
12709
|
+
setValueByPath(toObject, ['speaker'], fromSpeaker);
|
|
12710
|
+
}
|
|
12711
|
+
const fromVoiceConfig = getValueByPath(fromObject, ['voiceConfig']);
|
|
12712
|
+
if (fromVoiceConfig != null) {
|
|
12713
|
+
setValueByPath(toObject, ['voiceConfig'], voiceConfigToVertex(fromVoiceConfig));
|
|
12714
|
+
}
|
|
12715
|
+
return toObject;
|
|
12716
|
+
}
|
|
12717
|
+
function speechConfigToVertex(fromObject, rootObject) {
|
|
12718
|
+
const toObject = {};
|
|
12719
|
+
const fromVoiceConfig = getValueByPath(fromObject, ['voiceConfig']);
|
|
12720
|
+
if (fromVoiceConfig != null) {
|
|
12721
|
+
setValueByPath(toObject, ['voiceConfig'], voiceConfigToVertex(fromVoiceConfig));
|
|
12722
|
+
}
|
|
12723
|
+
const fromLanguageCode = getValueByPath(fromObject, ['languageCode']);
|
|
12724
|
+
if (fromLanguageCode != null) {
|
|
12725
|
+
setValueByPath(toObject, ['languageCode'], fromLanguageCode);
|
|
12726
|
+
}
|
|
12727
|
+
const fromMultiSpeakerVoiceConfig = getValueByPath(fromObject, [
|
|
12728
|
+
'multiSpeakerVoiceConfig',
|
|
12729
|
+
]);
|
|
12730
|
+
if (fromMultiSpeakerVoiceConfig != null) {
|
|
12731
|
+
setValueByPath(toObject, ['multiSpeakerVoiceConfig'], multiSpeakerVoiceConfigToVertex(fromMultiSpeakerVoiceConfig));
|
|
12732
|
+
}
|
|
12733
|
+
return toObject;
|
|
12734
|
+
}
|
|
12316
12735
|
function toolConfigToMldev(fromObject, rootObject) {
|
|
12317
12736
|
const toObject = {};
|
|
12318
12737
|
const fromRetrievalConfig = getValueByPath(fromObject, [
|
|
@@ -12418,6 +12837,9 @@ function toolToMldev$1(fromObject, rootObject) {
|
|
|
12418
12837
|
}
|
|
12419
12838
|
setValueByPath(toObject, ['mcpServers'], transformedList);
|
|
12420
12839
|
}
|
|
12840
|
+
if (getValueByPath(fromObject, ['exaAiSearch']) !== undefined) {
|
|
12841
|
+
throw new Error('exaAiSearch parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');
|
|
12842
|
+
}
|
|
12421
12843
|
return toObject;
|
|
12422
12844
|
}
|
|
12423
12845
|
function toolToVertex(fromObject, rootObject) {
|
|
@@ -12428,7 +12850,7 @@ function toolToVertex(fromObject, rootObject) {
|
|
|
12428
12850
|
}
|
|
12429
12851
|
const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
|
|
12430
12852
|
if (fromComputerUse != null) {
|
|
12431
|
-
setValueByPath(toObject, ['computerUse'], fromComputerUse);
|
|
12853
|
+
setValueByPath(toObject, ['computerUse'], computerUseToVertex(fromComputerUse));
|
|
12432
12854
|
}
|
|
12433
12855
|
if (getValueByPath(fromObject, ['fileSearch']) !== undefined) {
|
|
12434
12856
|
throw new Error('fileSearch parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');
|
|
@@ -12491,6 +12913,10 @@ function toolToVertex(fromObject, rootObject) {
|
|
|
12491
12913
|
}
|
|
12492
12914
|
setValueByPath(toObject, ['mcpServers'], transformedList);
|
|
12493
12915
|
}
|
|
12916
|
+
const fromExaAiSearch = getValueByPath(fromObject, ['exaAiSearch']);
|
|
12917
|
+
if (fromExaAiSearch != null) {
|
|
12918
|
+
setValueByPath(toObject, ['exaAiSearch'], fromExaAiSearch);
|
|
12919
|
+
}
|
|
12494
12920
|
return toObject;
|
|
12495
12921
|
}
|
|
12496
12922
|
function tunedModelInfoFromMldev(fromObject, _rootObject) {
|
|
@@ -12802,6 +13228,22 @@ function videoToVertex(fromObject, _rootObject) {
|
|
|
12802
13228
|
}
|
|
12803
13229
|
return toObject;
|
|
12804
13230
|
}
|
|
13231
|
+
function voiceConfigToVertex(fromObject, rootObject) {
|
|
13232
|
+
const toObject = {};
|
|
13233
|
+
const fromReplicatedVoiceConfig = getValueByPath(fromObject, [
|
|
13234
|
+
'replicatedVoiceConfig',
|
|
13235
|
+
]);
|
|
13236
|
+
if (fromReplicatedVoiceConfig != null) {
|
|
13237
|
+
setValueByPath(toObject, ['replicatedVoiceConfig'], replicatedVoiceConfigToVertex(fromReplicatedVoiceConfig));
|
|
13238
|
+
}
|
|
13239
|
+
const fromPrebuiltVoiceConfig = getValueByPath(fromObject, [
|
|
13240
|
+
'prebuiltVoiceConfig',
|
|
13241
|
+
]);
|
|
13242
|
+
if (fromPrebuiltVoiceConfig != null) {
|
|
13243
|
+
setValueByPath(toObject, ['prebuiltVoiceConfig'], fromPrebuiltVoiceConfig);
|
|
13244
|
+
}
|
|
13245
|
+
return toObject;
|
|
13246
|
+
}
|
|
12805
13247
|
|
|
12806
13248
|
/**
|
|
12807
13249
|
* @license
|
|
@@ -13052,7 +13494,7 @@ const CONTENT_TYPE_HEADER = 'Content-Type';
|
|
|
13052
13494
|
const SERVER_TIMEOUT_HEADER = 'X-Server-Timeout';
|
|
13053
13495
|
const USER_AGENT_HEADER = 'User-Agent';
|
|
13054
13496
|
const GOOGLE_API_CLIENT_HEADER = 'x-goog-api-client';
|
|
13055
|
-
const SDK_VERSION = '2.
|
|
13497
|
+
const SDK_VERSION = '2.11.0'; // x-release-please-version
|
|
13056
13498
|
const LIBRARY_LABEL = `google-genai-sdk/${SDK_VERSION}`;
|
|
13057
13499
|
const VERTEX_AI_API_DEFAULT_VERSION = 'v1beta1';
|
|
13058
13500
|
const GOOGLE_AI_API_DEFAULT_VERSION = 'v1beta';
|
|
@@ -14306,10 +14748,27 @@ class Live {
|
|
|
14306
14748
|
onopenResolve({});
|
|
14307
14749
|
};
|
|
14308
14750
|
const apiClient = this.apiClient;
|
|
14751
|
+
let sessionResolved = false;
|
|
14752
|
+
const messageQueue = [];
|
|
14753
|
+
let setupCompleteResolve = () => { };
|
|
14754
|
+
const setupCompletePromise = new Promise((resolve) => {
|
|
14755
|
+
setupCompleteResolve = resolve;
|
|
14756
|
+
});
|
|
14309
14757
|
const websocketCallbacks = {
|
|
14310
14758
|
onopen: onopenAwaitedCallback,
|
|
14311
14759
|
onmessage: (event) => {
|
|
14312
|
-
void handleWebSocketMessage(apiClient,
|
|
14760
|
+
void handleWebSocketMessage(apiClient, (msg) => {
|
|
14761
|
+
if (msg.setupComplete && !session.setupComplete) {
|
|
14762
|
+
session.setupComplete = msg.setupComplete;
|
|
14763
|
+
setupCompleteResolve({});
|
|
14764
|
+
}
|
|
14765
|
+
if (sessionResolved) {
|
|
14766
|
+
callbacks.onmessage(msg);
|
|
14767
|
+
}
|
|
14768
|
+
else {
|
|
14769
|
+
messageQueue.push(msg);
|
|
14770
|
+
}
|
|
14771
|
+
}, event);
|
|
14313
14772
|
},
|
|
14314
14773
|
onerror: (_a = callbacks === null || callbacks === void 0 ? void 0 : callbacks.onerror) !== null && _a !== void 0 ? _a : function (e) {
|
|
14315
14774
|
},
|
|
@@ -14371,8 +14830,14 @@ class Live {
|
|
|
14371
14830
|
clientMessage = liveConnectParametersToMldev(this.apiClient, liveConnectParameters);
|
|
14372
14831
|
}
|
|
14373
14832
|
delete clientMessage['config'];
|
|
14833
|
+
const session = new Session(conn, this.apiClient);
|
|
14374
14834
|
conn.send(JSON.stringify(clientMessage));
|
|
14375
|
-
|
|
14835
|
+
await setupCompletePromise;
|
|
14836
|
+
sessionResolved = true;
|
|
14837
|
+
for (const msg of messageQueue) {
|
|
14838
|
+
callbacks.onmessage(msg);
|
|
14839
|
+
}
|
|
14840
|
+
return session;
|
|
14376
14841
|
}
|
|
14377
14842
|
// TODO: b/416041229 - Abstract this method to a common place.
|
|
14378
14843
|
isCallableTool(tool) {
|
|
@@ -14766,7 +15231,7 @@ class Models extends BaseModule {
|
|
|
14766
15231
|
this.generateContent = async (params) => {
|
|
14767
15232
|
var _a, _b, _c, _d, _e;
|
|
14768
15233
|
const transformedParams = await this.processParamsMaybeAddMcpUsage(params);
|
|
14769
|
-
this.
|
|
15234
|
+
this.maybeMoveToResponseJsonSchema(params);
|
|
14770
15235
|
if (!hasCallableTools(params) || shouldDisableAfc(params.config)) {
|
|
14771
15236
|
return await this.generateContentInternal(transformedParams);
|
|
14772
15237
|
}
|
|
@@ -14858,7 +15323,7 @@ class Models extends BaseModule {
|
|
|
14858
15323
|
*/
|
|
14859
15324
|
this.generateContentStream = async (params) => {
|
|
14860
15325
|
var _a, _b, _c, _d, _e;
|
|
14861
|
-
this.
|
|
15326
|
+
this.maybeMoveToResponseJsonSchema(params);
|
|
14862
15327
|
if (shouldDisableAfc(params.config)) {
|
|
14863
15328
|
const transformedParams = await this.processParamsMaybeAddMcpUsage(params);
|
|
14864
15329
|
return await this.generateContentStreamInternal(transformedParams);
|
|
@@ -15083,7 +15548,7 @@ class Models extends BaseModule {
|
|
|
15083
15548
|
* To maintain backward compatibility, we move the data that was treated as
|
|
15084
15549
|
* JSON schema from the responseSchema field to the responseJsonSchema field.
|
|
15085
15550
|
*/
|
|
15086
|
-
|
|
15551
|
+
maybeMoveToResponseJsonSchema(params) {
|
|
15087
15552
|
if (params.config && params.config.responseSchema) {
|
|
15088
15553
|
if (!params.config.responseJsonSchema) {
|
|
15089
15554
|
if (Object.keys(params.config.responseSchema).includes('$schema')) {
|
|
@@ -15185,7 +15650,7 @@ class Models extends BaseModule {
|
|
|
15185
15650
|
throw new Error('Function call name was not returned by the model.');
|
|
15186
15651
|
}
|
|
15187
15652
|
if (!afcTools.has(part.functionCall.name)) {
|
|
15188
|
-
throw new Error(`Automatic function calling was requested, but not all the tools the model used implement the CallableTool interface. Available tools: ${afcTools.keys()},
|
|
15653
|
+
throw new Error(`Automatic function calling was requested, but not all the tools the model used implement the CallableTool interface. Available tools: ${afcTools.keys()}, missing tool: ${part.functionCall.name}`);
|
|
15189
15654
|
}
|
|
15190
15655
|
else {
|
|
15191
15656
|
const responseParts = yield __await(afcTools
|
|
@@ -16901,6 +17366,9 @@ function toolToMldev(fromObject) {
|
|
|
16901
17366
|
}
|
|
16902
17367
|
setValueByPath(toObject, ['mcpServers'], transformedList);
|
|
16903
17368
|
}
|
|
17369
|
+
if (getValueByPath(fromObject, ['exaAiSearch']) !== undefined) {
|
|
17370
|
+
throw new Error('exaAiSearch parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');
|
|
17371
|
+
}
|
|
16904
17372
|
return toObject;
|
|
16905
17373
|
}
|
|
16906
17374
|
|
|
@@ -17752,17 +18220,14 @@ function env() {
|
|
|
17752
18220
|
* Populates global parameters with environment variables.
|
|
17753
18221
|
*/
|
|
17754
18222
|
function fillGlobals(options) {
|
|
17755
|
-
var _a, _b
|
|
18223
|
+
var _a, _b;
|
|
17756
18224
|
const clone = Object.assign({}, options);
|
|
17757
18225
|
const envVars = env();
|
|
17758
18226
|
if (typeof envVars.GOOGLE_GENAI_API_VERSION !== "undefined") {
|
|
17759
18227
|
(_a = clone.api_version) !== null && _a !== void 0 ? _a : (clone.api_version = envVars.GOOGLE_GENAI_API_VERSION);
|
|
17760
18228
|
}
|
|
17761
|
-
if (typeof envVars.GOOGLE_GENAI_API_REVISION !== "undefined") {
|
|
17762
|
-
(_b = clone.api_revision) !== null && _b !== void 0 ? _b : (clone.api_revision = envVars.GOOGLE_GENAI_API_REVISION);
|
|
17763
|
-
}
|
|
17764
18229
|
if (typeof envVars.GOOGLE_GENAI_USER_PROJECT !== "undefined") {
|
|
17765
|
-
(
|
|
18230
|
+
(_b = clone.user_project) !== null && _b !== void 0 ? _b : (clone.user_project = envVars.GOOGLE_GENAI_USER_PROJECT);
|
|
17766
18231
|
}
|
|
17767
18232
|
return clone;
|
|
17768
18233
|
}
|
|
@@ -17774,7 +18239,6 @@ function fillGlobals(options) {
|
|
|
17774
18239
|
*
|
|
17775
18240
|
* g3-prettier-ignore-file
|
|
17776
18241
|
*/
|
|
17777
|
-
const GOOGLE_GENAI_API_REVISION = "2026-05-20";
|
|
17778
18242
|
class GoogleGenAISecurityProvider {
|
|
17779
18243
|
constructor(options) {
|
|
17780
18244
|
this.options = options;
|
|
@@ -17792,7 +18256,6 @@ class GoogleGenAIAuthHook {
|
|
|
17792
18256
|
}
|
|
17793
18257
|
async beforeRequest(hookCtx, request) {
|
|
17794
18258
|
applyDefaultHeaders(request.headers, getStaticDefaultHeaders(hookCtx.security_source));
|
|
17795
|
-
applyApiRevision(hookCtx, request.headers);
|
|
17796
18259
|
applyUserProject(hookCtx, request.headers);
|
|
17797
18260
|
if (hasAuthHeaders(request.headers)) {
|
|
17798
18261
|
return request;
|
|
@@ -17872,12 +18335,6 @@ function applyDefaultHeaders(target, source) {
|
|
|
17872
18335
|
}
|
|
17873
18336
|
}
|
|
17874
18337
|
}
|
|
17875
|
-
function applyApiRevision(hookCtx, headers) {
|
|
17876
|
-
var _a;
|
|
17877
|
-
if (headers.get("api-revision") === null) {
|
|
17878
|
-
headers.set("Api-Revision", (_a = hookCtx.options.api_revision) !== null && _a !== void 0 ? _a : GOOGLE_GENAI_API_REVISION);
|
|
17879
|
-
}
|
|
17880
|
-
}
|
|
17881
18338
|
function applyUserProject(hookCtx, headers) {
|
|
17882
18339
|
if (hookCtx.options.user_project !== undefined &&
|
|
17883
18340
|
headers.get("x-goog-user-project") === null) {
|
|
@@ -18409,7 +18866,7 @@ function serverURLFromOptions(options) {
|
|
|
18409
18866
|
return new URL(u);
|
|
18410
18867
|
}
|
|
18411
18868
|
const SDK_METADATA = {
|
|
18412
|
-
userAgent: "speakeasy-sdk/typescript 2.4.1-preview.4 2.
|
|
18869
|
+
userAgent: "speakeasy-sdk/typescript 2.4.1-preview.4 2.913.3 v1beta @google/genai",
|
|
18413
18870
|
};
|
|
18414
18871
|
|
|
18415
18872
|
/**
|
|
@@ -22879,6 +23336,18 @@ function generationConfigFromVertex(fromObject, _rootObject) {
|
|
|
22879
23336
|
if (fromTopP != null) {
|
|
22880
23337
|
setValueByPath(toObject, ['topP'], fromTopP);
|
|
22881
23338
|
}
|
|
23339
|
+
const fromResponseFormat = getValueByPath(fromObject, [
|
|
23340
|
+
'responseFormat',
|
|
23341
|
+
]);
|
|
23342
|
+
if (fromResponseFormat != null) {
|
|
23343
|
+
let transformedList = fromResponseFormat;
|
|
23344
|
+
if (Array.isArray(transformedList)) {
|
|
23345
|
+
transformedList = transformedList.map((item) => {
|
|
23346
|
+
return item;
|
|
23347
|
+
});
|
|
23348
|
+
}
|
|
23349
|
+
setValueByPath(toObject, ['responseFormat'], transformedList);
|
|
23350
|
+
}
|
|
22882
23351
|
return toObject;
|
|
22883
23352
|
}
|
|
22884
23353
|
function getTuningJobParametersToMldev(fromObject, _rootObject) {
|
|
@@ -24176,5 +24645,5 @@ class GoogleGenAI {
|
|
|
24176
24645
|
}
|
|
24177
24646
|
}
|
|
24178
24647
|
|
|
24179
|
-
export { ActivityHandling, AdapterSize, AggregationMetric, ApiError, ApiSpec, AuthType, Batches, Behavior, BlockedReason, Caches, CancelTuningJobResponse, Chat, Chats, ComputeTokensResponse, ContentReferenceImage, ControlReferenceImage, ControlReferenceType, CountTokensResponse, CreateFileResponse, DeleteCachedContentResponse, DeleteFileResponse, DeleteModelResponse, DocumentState, DynamicRetrievalConfigMode, EditImageResponse, EditMode, EmbedContentResponse, EmbeddingApiType, EndSensitivity, Environment, EvaluateDatasetResponse, FeatureSelectionPreference, FileSource, FileState, Files, FinishReason, FunctionCallingConfigMode, FunctionResponse, FunctionResponseBlob, FunctionResponseFileData, FunctionResponsePart, FunctionResponseScheduling, GenerateContentResponse, GenerateContentResponsePromptFeedback, GenerateContentResponseUsageMetadata, GenerateImagesResponse, GenerateVideosOperation, GenerateVideosResponse, GoogleGenAI, HarmBlockMethod, HarmBlockThreshold, HarmCategory, HarmProbability, HarmSeverity, HttpElementLocation, HttpResponse, ImagePromptLanguage, ImageResizeMode, ImportFileOperation, ImportFileResponse, InlinedEmbedContentResponse, InlinedResponse, JobState, Language, ListBatchJobsResponse, ListCachedContentsResponse, ListDocumentsResponse, ListFileSearchStoresResponse, ListFilesResponse, ListModelsResponse, ListTuningJobsResponse, Live, LiveClientToolResponse, LiveMusicPlaybackControl, LiveMusicServerMessage, LiveSendToolResponseParameters, LiveServerMessage, MaskReferenceImage, MaskReferenceMode, MatchOperation, MediaModality, MediaResolution, Modality, ModelStage, Models, MusicGenerationMode, Operations, Outcome, PagedItem, Pager, PairwiseChoice, PartMediaResolutionLevel, PersonGeneration, PhishBlockThreshold, ProminentPeople, RawReferenceImage, RecontextImageResponse, RegisterFilesResponse, ReinforcementTuningAutoraterScorerParsedResponseConversionScorer, ReinforcementTuningParseResponseConfig, ReinforcementTuningThinkingLevel, ReplayResponse, ResourceScope, ResponseParseType, SafetyFilterLevel, Scale, SegmentImageResponse, SegmentMode, ServiceTier, Session, SingleEmbedContentResponse, StartSensitivity, StyleReferenceImage, SubjectReferenceImage, SubjectReferenceType, ThinkingLevel, Tokens, ToolResponse, ToolType, TrafficType, TuningJobState, TuningMethod, TuningMode, TuningSpeed, TuningTask, TurnCompleteReason, TurnCoverage, Type, UploadToFileSearchStoreOperation, UploadToFileSearchStoreResponse, UploadToFileSearchStoreResumableResponse, UpscaleImageResponse, UrlRetrievalStatus, VadSignalType, ValidateRewardResponse, VideoCompressionQuality, VideoGenerationMaskMode, VideoGenerationReferenceType, VideoOrientation, VoiceActivityType, createFunctionResponsePartFromBase64, createFunctionResponsePartFromUri, createModelContent, createPartFromBase64, createPartFromCodeExecutionResult, createPartFromExecutableCode, createPartFromFunctionCall, createPartFromFunctionResponse, createPartFromText, createPartFromUri, createUserContent, mcpToTool, setDefaultBaseUrls };
|
|
24648
|
+
export { ActivityHandling, AdapterSize, AggregationMetric, ApiError, ApiSpec, AspectRatio, AudioResponseFormat, AuthType, Batches, Behavior, BlockedReason, Caches, CancelTuningJobResponse, Chat, Chats, ComputeTokensResponse, ContentReferenceImage, ControlReferenceImage, ControlReferenceType, CountTokensResponse, CreateFileResponse, DeleteCachedContentResponse, DeleteFileResponse, DeleteModelResponse, Delivery, DocumentState, DynamicRetrievalConfigMode, EditImageResponse, EditMode, EmbedContentResponse, EmbeddingApiType, EndSensitivity, Environment, EvaluateDatasetResponse, FeatureSelectionPreference, FileSource, FileState, Files, FinishReason, FunctionCallingConfigMode, FunctionResponse, FunctionResponseBlob, FunctionResponseFileData, FunctionResponsePart, FunctionResponseScheduling, GenerateContentResponse, GenerateContentResponsePromptFeedback, GenerateContentResponseUsageMetadata, GenerateImagesResponse, GenerateVideosOperation, GenerateVideosResponse, GoogleGenAI, HarmBlockMethod, HarmBlockThreshold, HarmCategory, HarmProbability, HarmSeverity, HttpElementLocation, HttpResponse, ImagePromptLanguage, ImageResizeMode, ImageResponseFormat, ImageSize, ImportFileOperation, ImportFileResponse, InlinedEmbedContentResponse, InlinedResponse, JobState, Language, ListBatchJobsResponse, ListCachedContentsResponse, ListDocumentsResponse, ListFileSearchStoresResponse, ListFilesResponse, ListModelsResponse, ListTuningJobsResponse, Live, LiveClientToolResponse, LiveMusicPlaybackControl, LiveMusicServerMessage, LiveSendToolResponseParameters, LiveServerMessage, MaskReferenceImage, MaskReferenceMode, MatchOperation, MediaModality, MediaResolution, Modality, ModelStage, Models, MusicGenerationMode, Operations, Outcome, PagedItem, Pager, PairwiseChoice, PartMediaResolutionLevel, PersonGeneration, PhishBlockThreshold, ProminentPeople, RawReferenceImage, RecontextImageResponse, RegisterFilesResponse, ReinforcementTuningAutoraterScorerParsedResponseConversionScorer, ReinforcementTuningParseResponseConfig, ReinforcementTuningThinkingLevel, ReplayResponse, ResourceScope, ResponseFormat, ResponseParseType, SafetyFilterLevel, SafetyPolicy, Scale, SegmentImageResponse, SegmentMode, ServiceTier, Session, SingleEmbedContentResponse, StartSensitivity, StyleReferenceImage, SubjectReferenceImage, SubjectReferenceType, TextResponseFormat, ThinkingLevel, Tokens, ToolResponse, ToolType, TrafficType, TuningJobState, TuningMethod, TuningMode, TuningSpeed, TuningTask, TurnCompleteReason, TurnCoverage, Type, UploadToFileSearchStoreOperation, UploadToFileSearchStoreResponse, UploadToFileSearchStoreResumableResponse, UpscaleImageResponse, UrlRetrievalStatus, VadSignalType, ValidateRewardResponse, VideoCompressionQuality, VideoGenerationMaskMode, VideoGenerationReferenceType, VideoOrientation, VideoResponseFormat, VoiceActivityType, createFunctionResponsePartFromBase64, createFunctionResponsePartFromUri, createModelContent, createPartFromBase64, createPartFromCodeExecutionResult, createPartFromExecutableCode, createPartFromFunctionCall, createPartFromFunctionResponse, createPartFromText, createPartFromUri, createUserContent, mcpToTool, setDefaultBaseUrls };
|
|
24180
24649
|
//# sourceMappingURL=index.mjs.map
|