@google/genai 2.7.0 → 2.9.0-rc.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.
@@ -65,7 +65,7 @@ var Language;
65
65
  */
66
66
  Language["PYTHON"] = "PYTHON";
67
67
  })(Language || (Language = {}));
68
- /** Specifies how the response should be scheduled in the conversation. */
68
+ /** Specifies how the response should be scheduled in the conversation. Only applicable to NON_BLOCKING function calls, is ignored otherwise. Defaults to WHEN_IDLE. */
69
69
  var FunctionResponseScheduling;
70
70
  (function (FunctionResponseScheduling) {
71
71
  /**
@@ -649,30 +649,34 @@ var TrafficType;
649
649
  */
650
650
  TrafficType["PROVISIONED_THROUGHPUT"] = "PROVISIONED_THROUGHPUT";
651
651
  })(TrafficType || (TrafficType = {}));
652
- /** Server content modalities. */
653
- var Modality;
654
- (function (Modality) {
652
+ /** The modality that this token count applies to. */
653
+ var MediaModality;
654
+ (function (MediaModality) {
655
655
  /**
656
- * The modality is unspecified.
656
+ * When a modality is not specified, it is treated as `TEXT`.
657
657
  */
658
- Modality["MODALITY_UNSPECIFIED"] = "MODALITY_UNSPECIFIED";
658
+ MediaModality["MODALITY_UNSPECIFIED"] = "MODALITY_UNSPECIFIED";
659
659
  /**
660
- * Indicates the model should return text
660
+ * The `Part` contains plain text.
661
661
  */
662
- Modality["TEXT"] = "TEXT";
662
+ MediaModality["TEXT"] = "TEXT";
663
663
  /**
664
- * Indicates the model should return images.
664
+ * The `Part` contains an image.
665
665
  */
666
- Modality["IMAGE"] = "IMAGE";
666
+ MediaModality["IMAGE"] = "IMAGE";
667
667
  /**
668
- * Indicates the model should return audio.
668
+ * The `Part` contains a video.
669
669
  */
670
- Modality["AUDIO"] = "AUDIO";
670
+ MediaModality["VIDEO"] = "VIDEO";
671
671
  /**
672
- * Indicates the model should return video.
672
+ * The `Part` contains audio.
673
673
  */
674
- Modality["VIDEO"] = "VIDEO";
675
- })(Modality || (Modality = {}));
674
+ MediaModality["AUDIO"] = "AUDIO";
675
+ /**
676
+ * The `Part` contains a document, such as a PDF.
677
+ */
678
+ MediaModality["DOCUMENT"] = "DOCUMENT";
679
+ })(MediaModality || (MediaModality = {}));
676
680
  /** The stage of the underlying model. This enum is not supported in Vertex AI. */
677
681
  var ModelStage;
678
682
  (function (ModelStage) {
@@ -729,6 +733,30 @@ var MediaResolution;
729
733
  */
730
734
  MediaResolution["MEDIA_RESOLUTION_HIGH"] = "MEDIA_RESOLUTION_HIGH";
731
735
  })(MediaResolution || (MediaResolution = {}));
736
+ /** Server content modalities. */
737
+ var Modality;
738
+ (function (Modality) {
739
+ /**
740
+ * The modality is unspecified.
741
+ */
742
+ Modality["MODALITY_UNSPECIFIED"] = "MODALITY_UNSPECIFIED";
743
+ /**
744
+ * Indicates the model should return text
745
+ */
746
+ Modality["TEXT"] = "TEXT";
747
+ /**
748
+ * Indicates the model should return images.
749
+ */
750
+ Modality["IMAGE"] = "IMAGE";
751
+ /**
752
+ * Indicates the model should return audio.
753
+ */
754
+ Modality["AUDIO"] = "AUDIO";
755
+ /**
756
+ * Indicates the model should return video.
757
+ */
758
+ Modality["VIDEO"] = "VIDEO";
759
+ })(Modality || (Modality = {}));
732
760
  /** Tuning mode. This enum is not supported in Gemini API. */
733
761
  var TuningMode;
734
762
  (function (TuningMode) {
@@ -997,6 +1025,26 @@ var DocumentState;
997
1025
  */
998
1026
  DocumentState["STATE_FAILED"] = "STATE_FAILED";
999
1027
  })(DocumentState || (DocumentState = {}));
1028
+ /** Pricing and performance service tier. */
1029
+ var ServiceTier;
1030
+ (function (ServiceTier) {
1031
+ /**
1032
+ * Default service tier, which is standard.
1033
+ */
1034
+ ServiceTier["UNSPECIFIED"] = "unspecified";
1035
+ /**
1036
+ * Flex service tier.
1037
+ */
1038
+ ServiceTier["FLEX"] = "flex";
1039
+ /**
1040
+ * Standard service tier.
1041
+ */
1042
+ ServiceTier["STANDARD"] = "standard";
1043
+ /**
1044
+ * Priority service tier.
1045
+ */
1046
+ ServiceTier["PRIORITY"] = "priority";
1047
+ })(ServiceTier || (ServiceTier = {}));
1000
1048
  /** The tokenization quality used for given media. */
1001
1049
  var PartMediaResolutionLevel;
1002
1050
  (function (PartMediaResolutionLevel) {
@@ -1061,26 +1109,6 @@ var ResourceScope;
1061
1109
  */
1062
1110
  ResourceScope["COLLECTION"] = "COLLECTION";
1063
1111
  })(ResourceScope || (ResourceScope = {}));
1064
- /** Pricing and performance service tier. */
1065
- var ServiceTier;
1066
- (function (ServiceTier) {
1067
- /**
1068
- * Default service tier, which is standard.
1069
- */
1070
- ServiceTier["UNSPECIFIED"] = "unspecified";
1071
- /**
1072
- * Flex service tier.
1073
- */
1074
- ServiceTier["FLEX"] = "flex";
1075
- /**
1076
- * Standard service tier.
1077
- */
1078
- ServiceTier["STANDARD"] = "standard";
1079
- /**
1080
- * Priority service tier.
1081
- */
1082
- ServiceTier["PRIORITY"] = "priority";
1083
- })(ServiceTier || (ServiceTier = {}));
1084
1112
  /** Options for feature selection preference. */
1085
1113
  var FeatureSelectionPreference;
1086
1114
  (function (FeatureSelectionPreference) {
@@ -1261,6 +1289,58 @@ var ImageResizeMode;
1261
1289
  */
1262
1290
  ImageResizeMode["PAD"] = "PAD";
1263
1291
  })(ImageResizeMode || (ImageResizeMode = {}));
1292
+ /** Defines how to parse sample response. */
1293
+ var ResponseParseType;
1294
+ (function (ResponseParseType) {
1295
+ /**
1296
+ * Default value. This value is unused.
1297
+ */
1298
+ ResponseParseType["RESPONSE_PARSE_TYPE_UNSPECIFIED"] = "RESPONSE_PARSE_TYPE_UNSPECIFIED";
1299
+ /**
1300
+ * Use the sample response as is.
1301
+ */
1302
+ ResponseParseType["IDENTITY"] = "IDENTITY";
1303
+ /**
1304
+ * Use regex to extract the important part of sample response.
1305
+ */
1306
+ ResponseParseType["REGEX_EXTRACT"] = "REGEX_EXTRACT";
1307
+ })(ResponseParseType || (ResponseParseType = {}));
1308
+ /** Match operation to use for evaluation. */
1309
+ var MatchOperation;
1310
+ (function (MatchOperation) {
1311
+ /**
1312
+ * Default value. This value is unused.
1313
+ */
1314
+ MatchOperation["MATCH_OPERATION_UNSPECIFIED"] = "MATCH_OPERATION_UNSPECIFIED";
1315
+ /**
1316
+ * Equivalent to GoogleSQL `REGEX_CONTAINS(target, expression)`.
1317
+ */
1318
+ MatchOperation["REGEX_CONTAINS"] = "REGEX_CONTAINS";
1319
+ /**
1320
+ * `expression` is a substring of target.
1321
+ */
1322
+ MatchOperation["PARTIAL_MATCH"] = "PARTIAL_MATCH";
1323
+ /**
1324
+ * `expression` is an exact match of target.
1325
+ */
1326
+ MatchOperation["EXACT_MATCH"] = "EXACT_MATCH";
1327
+ })(MatchOperation || (MatchOperation = {}));
1328
+ /** Represents how much to think for the tuning job. */
1329
+ var ReinforcementTuningThinkingLevel;
1330
+ (function (ReinforcementTuningThinkingLevel) {
1331
+ /**
1332
+ * Unspecified thinking level.
1333
+ */
1334
+ ReinforcementTuningThinkingLevel["REINFORCEMENT_TUNING_THINKING_LEVEL_UNSPECIFIED"] = "REINFORCEMENT_TUNING_THINKING_LEVEL_UNSPECIFIED";
1335
+ /**
1336
+ * Little to no thinking.
1337
+ */
1338
+ ReinforcementTuningThinkingLevel["MINIMAL"] = "MINIMAL";
1339
+ /**
1340
+ * High thinking level.
1341
+ */
1342
+ ReinforcementTuningThinkingLevel["HIGH"] = "HIGH";
1343
+ })(ReinforcementTuningThinkingLevel || (ReinforcementTuningThinkingLevel = {}));
1264
1344
  /** Enum representing the tuning method. */
1265
1345
  var TuningMethod;
1266
1346
  (function (TuningMethod) {
@@ -1413,34 +1493,6 @@ var TurnCompleteReason;
1413
1493
  */
1414
1494
  TurnCompleteReason["MAX_REGENERATION_REACHED"] = "MAX_REGENERATION_REACHED";
1415
1495
  })(TurnCompleteReason || (TurnCompleteReason = {}));
1416
- /** Server content modalities. */
1417
- var MediaModality;
1418
- (function (MediaModality) {
1419
- /**
1420
- * The modality is unspecified.
1421
- */
1422
- MediaModality["MODALITY_UNSPECIFIED"] = "MODALITY_UNSPECIFIED";
1423
- /**
1424
- * Plain text.
1425
- */
1426
- MediaModality["TEXT"] = "TEXT";
1427
- /**
1428
- * Images.
1429
- */
1430
- MediaModality["IMAGE"] = "IMAGE";
1431
- /**
1432
- * Video.
1433
- */
1434
- MediaModality["VIDEO"] = "VIDEO";
1435
- /**
1436
- * Audio.
1437
- */
1438
- MediaModality["AUDIO"] = "AUDIO";
1439
- /**
1440
- * Document, e.g. PDF.
1441
- */
1442
- MediaModality["DOCUMENT"] = "DOCUMENT";
1443
- })(MediaModality || (MediaModality = {}));
1444
1496
  /** The type of the VAD signal. */
1445
1497
  var VadSignalType;
1446
1498
  (function (VadSignalType) {
@@ -1477,7 +1529,7 @@ var VoiceActivityType;
1477
1529
  var StartSensitivity;
1478
1530
  (function (StartSensitivity) {
1479
1531
  /**
1480
- * The default is START_SENSITIVITY_LOW.
1532
+ * The default is START_SENSITIVITY_LOW for Gemini Enterprise Agent Platform and START_SENSITIVITY_HIGH for Gemini Live.
1481
1533
  */
1482
1534
  StartSensitivity["START_SENSITIVITY_UNSPECIFIED"] = "START_SENSITIVITY_UNSPECIFIED";
1483
1535
  /**
@@ -1493,7 +1545,7 @@ var StartSensitivity;
1493
1545
  var EndSensitivity;
1494
1546
  (function (EndSensitivity) {
1495
1547
  /**
1496
- * The default is END_SENSITIVITY_LOW.
1548
+ * The default is END_SENSITIVITY_LOW for Gemini Enterprise Agent Platform and END_SENSITIVITY_HIGH for Gemini Live.
1497
1549
  */
1498
1550
  EndSensitivity["END_SENSITIVITY_UNSPECIFIED"] = "END_SENSITIVITY_UNSPECIFIED";
1499
1551
  /**
@@ -364,14 +364,13 @@ declare interface FunctionDeclaration {
364
364
  behavior?: Behavior;
365
365
  }
366
366
 
367
- /** A function response. */
367
+ /** The result output from a FunctionCall that contains a string representing the FunctionDeclaration.name and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a `FunctionCall` made based on model prediction. */
368
368
  declare class FunctionResponse {
369
- /** Signals that function call continues, and more responses will be returned, turning the function call into a generator. Is only applicable to NON_BLOCKING function calls (see FunctionDeclaration.behavior for details), ignored otherwise. If false, the default, future responses will not be considered. Is only applicable to NON_BLOCKING function calls, is ignored otherwise. If set to false, future responses will not be considered. It is allowed to return empty `response` with `will_continue=False` to signal that the function call is finished. */
369
+ /** Optional. Signals that function call continues, and more responses will be returned, turning the function call into a generator. Is only applicable to NON_BLOCKING function calls, is ignored otherwise. If set to false, future responses will not be considered. It is allowed to return empty `response` with `will_continue=False` to signal that the function call is finished. This may still trigger the model generation. To avoid triggering the generation and finish the function call, additionally set `scheduling` to `SILENT`. This field is not supported in Vertex AI. */
370
370
  willContinue?: boolean;
371
- /** Specifies how the response should be scheduled in the conversation. Only applicable to NON_BLOCKING function calls, is ignored otherwise. Defaults to WHEN_IDLE. */
371
+ /** Optional. Specifies how the response should be scheduled in the conversation. Only applicable to NON_BLOCKING function calls, is ignored otherwise. Defaults to WHEN_IDLE. */
372
372
  scheduling?: FunctionResponseScheduling;
373
- /** List of parts that constitute a function response. Each part may
374
- have a different IANA MIME type. */
373
+ /** Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types. */
375
374
  parts?: FunctionResponsePart[];
376
375
  /** Optional. The id of the function call this response is for. Populated by the client to match the corresponding function call `id`. */
377
376
  id?: string;
@@ -381,49 +380,36 @@ declare class FunctionResponse {
381
380
  response?: Record<string, unknown>;
382
381
  }
383
382
 
384
- /** Raw media bytes for function response.
385
-
386
- Text should not be sent as raw bytes, use the FunctionResponse.response
387
- field. */
383
+ /** Raw media bytes for function response. Text should not be sent as raw bytes, use the 'text' field. */
388
384
  declare class FunctionResponseBlob {
389
385
  /** Required. The IANA standard MIME type of the source data. */
390
386
  mimeType?: string;
391
- /** Required. Inline media bytes.
387
+ /** Required. Raw bytes.
392
388
  * @remarks Encoded as base64 string. */
393
389
  data?: string;
394
- /** Optional. Display name of the blob.
395
- Used to provide a label or filename to distinguish blobs. */
390
+ /** Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled. This field is not supported in Gemini API. */
396
391
  displayName?: string;
397
392
  }
398
393
 
399
- /** URI based data for function response. */
394
+ /** URI based data for function response. This data type is not supported in Gemini API. */
400
395
  declare class FunctionResponseFileData {
401
396
  /** Required. URI. */
402
397
  fileUri?: string;
403
398
  /** Required. The IANA standard MIME type of the source data. */
404
399
  mimeType?: string;
405
- /** Optional. Display name of the file.
406
- Used to provide a label or filename to distinguish files. */
400
+ /** Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled. */
407
401
  displayName?: string;
408
402
  }
409
403
 
410
- /** A datatype containing media that is part of a `FunctionResponse` message.
411
-
412
- A `FunctionResponsePart` consists of data which has an associated datatype. A
413
- `FunctionResponsePart` can only contain one of the accepted types in
414
- `FunctionResponsePart.data`.
415
-
416
- A `FunctionResponsePart` must have a fixed IANA MIME type identifying the
417
- type and subtype of the media if the `inline_data` field is filled with raw
418
- bytes. */
404
+ /** A datatype containing media that is part of a `FunctionResponse` message. A `FunctionResponsePart` consists of data which has an associated datatype. A `FunctionResponsePart` can only contain one of the accepted types in `FunctionResponsePart.data`. A `FunctionResponsePart` must have a fixed IANA MIME type identifying the type and subtype of the media if the `inline_data` field is filled with raw bytes. */
419
405
  declare class FunctionResponsePart {
420
- /** Optional. Inline media bytes. */
406
+ /** Inline media bytes. */
421
407
  inlineData?: FunctionResponseBlob;
422
- /** Optional. URI based data. */
408
+ /** URI based data. This field is not supported in Gemini API. */
423
409
  fileData?: FunctionResponseFileData;
424
410
  }
425
411
 
426
- /** Specifies how the response should be scheduled in the conversation. */
412
+ /** Specifies how the response should be scheduled in the conversation. Only applicable to NON_BLOCKING function calls, is ignored otherwise. Defaults to WHEN_IDLE. */
427
413
  declare enum FunctionResponseScheduling {
428
414
  /**
429
415
  * This value is unused.
@@ -519,7 +505,7 @@ declare interface GenerationConfigRoutingConfigManualRoutingMode {
519
505
  declare interface GoogleMaps {
520
506
  /** The authentication config to access the API. Only API key is supported. This field is not supported in Gemini API. */
521
507
  authConfig?: AuthConfig;
522
- /** Optional. Whether to return a widget context token in the GroundingMetadata of the response. Developers can use the widget context token to render a Google Maps widget with geospatial context related to the places that the model references in the response. */
508
+ /** Deprecated. The Google Maps contextual widget behavior in Grounding with Google Maps is being deprecated; this field is planned for removal and no longer has any effect once removed. Optional. Whether to return a widget context token in the GroundingMetadata of the response. */
523
509
  enableWidget?: boolean;
524
510
  }
525
511
 
@@ -41,7 +41,7 @@ var Language;
41
41
  */
42
42
  Language["PYTHON"] = "PYTHON";
43
43
  })(Language || (Language = {}));
44
- /** Specifies how the response should be scheduled in the conversation. */
44
+ /** Specifies how the response should be scheduled in the conversation. Only applicable to NON_BLOCKING function calls, is ignored otherwise. Defaults to WHEN_IDLE. */
45
45
  var FunctionResponseScheduling;
46
46
  (function (FunctionResponseScheduling) {
47
47
  /**
@@ -625,30 +625,34 @@ var TrafficType;
625
625
  */
626
626
  TrafficType["PROVISIONED_THROUGHPUT"] = "PROVISIONED_THROUGHPUT";
627
627
  })(TrafficType || (TrafficType = {}));
628
- /** Server content modalities. */
629
- var Modality;
630
- (function (Modality) {
628
+ /** The modality that this token count applies to. */
629
+ var MediaModality;
630
+ (function (MediaModality) {
631
631
  /**
632
- * The modality is unspecified.
632
+ * When a modality is not specified, it is treated as `TEXT`.
633
633
  */
634
- Modality["MODALITY_UNSPECIFIED"] = "MODALITY_UNSPECIFIED";
634
+ MediaModality["MODALITY_UNSPECIFIED"] = "MODALITY_UNSPECIFIED";
635
635
  /**
636
- * Indicates the model should return text
636
+ * The `Part` contains plain text.
637
637
  */
638
- Modality["TEXT"] = "TEXT";
638
+ MediaModality["TEXT"] = "TEXT";
639
639
  /**
640
- * Indicates the model should return images.
640
+ * The `Part` contains an image.
641
641
  */
642
- Modality["IMAGE"] = "IMAGE";
642
+ MediaModality["IMAGE"] = "IMAGE";
643
643
  /**
644
- * Indicates the model should return audio.
644
+ * The `Part` contains a video.
645
645
  */
646
- Modality["AUDIO"] = "AUDIO";
646
+ MediaModality["VIDEO"] = "VIDEO";
647
647
  /**
648
- * Indicates the model should return video.
648
+ * The `Part` contains audio.
649
649
  */
650
- Modality["VIDEO"] = "VIDEO";
651
- })(Modality || (Modality = {}));
650
+ MediaModality["AUDIO"] = "AUDIO";
651
+ /**
652
+ * The `Part` contains a document, such as a PDF.
653
+ */
654
+ MediaModality["DOCUMENT"] = "DOCUMENT";
655
+ })(MediaModality || (MediaModality = {}));
652
656
  /** The stage of the underlying model. This enum is not supported in Vertex AI. */
653
657
  var ModelStage;
654
658
  (function (ModelStage) {
@@ -705,6 +709,30 @@ var MediaResolution;
705
709
  */
706
710
  MediaResolution["MEDIA_RESOLUTION_HIGH"] = "MEDIA_RESOLUTION_HIGH";
707
711
  })(MediaResolution || (MediaResolution = {}));
712
+ /** Server content modalities. */
713
+ var Modality;
714
+ (function (Modality) {
715
+ /**
716
+ * The modality is unspecified.
717
+ */
718
+ Modality["MODALITY_UNSPECIFIED"] = "MODALITY_UNSPECIFIED";
719
+ /**
720
+ * Indicates the model should return text
721
+ */
722
+ Modality["TEXT"] = "TEXT";
723
+ /**
724
+ * Indicates the model should return images.
725
+ */
726
+ Modality["IMAGE"] = "IMAGE";
727
+ /**
728
+ * Indicates the model should return audio.
729
+ */
730
+ Modality["AUDIO"] = "AUDIO";
731
+ /**
732
+ * Indicates the model should return video.
733
+ */
734
+ Modality["VIDEO"] = "VIDEO";
735
+ })(Modality || (Modality = {}));
708
736
  /** Tuning mode. This enum is not supported in Gemini API. */
709
737
  var TuningMode;
710
738
  (function (TuningMode) {
@@ -973,6 +1001,26 @@ var DocumentState;
973
1001
  */
974
1002
  DocumentState["STATE_FAILED"] = "STATE_FAILED";
975
1003
  })(DocumentState || (DocumentState = {}));
1004
+ /** Pricing and performance service tier. */
1005
+ var ServiceTier;
1006
+ (function (ServiceTier) {
1007
+ /**
1008
+ * Default service tier, which is standard.
1009
+ */
1010
+ ServiceTier["UNSPECIFIED"] = "unspecified";
1011
+ /**
1012
+ * Flex service tier.
1013
+ */
1014
+ ServiceTier["FLEX"] = "flex";
1015
+ /**
1016
+ * Standard service tier.
1017
+ */
1018
+ ServiceTier["STANDARD"] = "standard";
1019
+ /**
1020
+ * Priority service tier.
1021
+ */
1022
+ ServiceTier["PRIORITY"] = "priority";
1023
+ })(ServiceTier || (ServiceTier = {}));
976
1024
  /** The tokenization quality used for given media. */
977
1025
  var PartMediaResolutionLevel;
978
1026
  (function (PartMediaResolutionLevel) {
@@ -1037,26 +1085,6 @@ var ResourceScope;
1037
1085
  */
1038
1086
  ResourceScope["COLLECTION"] = "COLLECTION";
1039
1087
  })(ResourceScope || (ResourceScope = {}));
1040
- /** Pricing and performance service tier. */
1041
- var ServiceTier;
1042
- (function (ServiceTier) {
1043
- /**
1044
- * Default service tier, which is standard.
1045
- */
1046
- ServiceTier["UNSPECIFIED"] = "unspecified";
1047
- /**
1048
- * Flex service tier.
1049
- */
1050
- ServiceTier["FLEX"] = "flex";
1051
- /**
1052
- * Standard service tier.
1053
- */
1054
- ServiceTier["STANDARD"] = "standard";
1055
- /**
1056
- * Priority service tier.
1057
- */
1058
- ServiceTier["PRIORITY"] = "priority";
1059
- })(ServiceTier || (ServiceTier = {}));
1060
1088
  /** Options for feature selection preference. */
1061
1089
  var FeatureSelectionPreference;
1062
1090
  (function (FeatureSelectionPreference) {
@@ -1237,6 +1265,58 @@ var ImageResizeMode;
1237
1265
  */
1238
1266
  ImageResizeMode["PAD"] = "PAD";
1239
1267
  })(ImageResizeMode || (ImageResizeMode = {}));
1268
+ /** Defines how to parse sample response. */
1269
+ var ResponseParseType;
1270
+ (function (ResponseParseType) {
1271
+ /**
1272
+ * Default value. This value is unused.
1273
+ */
1274
+ ResponseParseType["RESPONSE_PARSE_TYPE_UNSPECIFIED"] = "RESPONSE_PARSE_TYPE_UNSPECIFIED";
1275
+ /**
1276
+ * Use the sample response as is.
1277
+ */
1278
+ ResponseParseType["IDENTITY"] = "IDENTITY";
1279
+ /**
1280
+ * Use regex to extract the important part of sample response.
1281
+ */
1282
+ ResponseParseType["REGEX_EXTRACT"] = "REGEX_EXTRACT";
1283
+ })(ResponseParseType || (ResponseParseType = {}));
1284
+ /** Match operation to use for evaluation. */
1285
+ var MatchOperation;
1286
+ (function (MatchOperation) {
1287
+ /**
1288
+ * Default value. This value is unused.
1289
+ */
1290
+ MatchOperation["MATCH_OPERATION_UNSPECIFIED"] = "MATCH_OPERATION_UNSPECIFIED";
1291
+ /**
1292
+ * Equivalent to GoogleSQL `REGEX_CONTAINS(target, expression)`.
1293
+ */
1294
+ MatchOperation["REGEX_CONTAINS"] = "REGEX_CONTAINS";
1295
+ /**
1296
+ * `expression` is a substring of target.
1297
+ */
1298
+ MatchOperation["PARTIAL_MATCH"] = "PARTIAL_MATCH";
1299
+ /**
1300
+ * `expression` is an exact match of target.
1301
+ */
1302
+ MatchOperation["EXACT_MATCH"] = "EXACT_MATCH";
1303
+ })(MatchOperation || (MatchOperation = {}));
1304
+ /** Represents how much to think for the tuning job. */
1305
+ var ReinforcementTuningThinkingLevel;
1306
+ (function (ReinforcementTuningThinkingLevel) {
1307
+ /**
1308
+ * Unspecified thinking level.
1309
+ */
1310
+ ReinforcementTuningThinkingLevel["REINFORCEMENT_TUNING_THINKING_LEVEL_UNSPECIFIED"] = "REINFORCEMENT_TUNING_THINKING_LEVEL_UNSPECIFIED";
1311
+ /**
1312
+ * Little to no thinking.
1313
+ */
1314
+ ReinforcementTuningThinkingLevel["MINIMAL"] = "MINIMAL";
1315
+ /**
1316
+ * High thinking level.
1317
+ */
1318
+ ReinforcementTuningThinkingLevel["HIGH"] = "HIGH";
1319
+ })(ReinforcementTuningThinkingLevel || (ReinforcementTuningThinkingLevel = {}));
1240
1320
  /** Enum representing the tuning method. */
1241
1321
  var TuningMethod;
1242
1322
  (function (TuningMethod) {
@@ -1389,34 +1469,6 @@ var TurnCompleteReason;
1389
1469
  */
1390
1470
  TurnCompleteReason["MAX_REGENERATION_REACHED"] = "MAX_REGENERATION_REACHED";
1391
1471
  })(TurnCompleteReason || (TurnCompleteReason = {}));
1392
- /** Server content modalities. */
1393
- var MediaModality;
1394
- (function (MediaModality) {
1395
- /**
1396
- * The modality is unspecified.
1397
- */
1398
- MediaModality["MODALITY_UNSPECIFIED"] = "MODALITY_UNSPECIFIED";
1399
- /**
1400
- * Plain text.
1401
- */
1402
- MediaModality["TEXT"] = "TEXT";
1403
- /**
1404
- * Images.
1405
- */
1406
- MediaModality["IMAGE"] = "IMAGE";
1407
- /**
1408
- * Video.
1409
- */
1410
- MediaModality["VIDEO"] = "VIDEO";
1411
- /**
1412
- * Audio.
1413
- */
1414
- MediaModality["AUDIO"] = "AUDIO";
1415
- /**
1416
- * Document, e.g. PDF.
1417
- */
1418
- MediaModality["DOCUMENT"] = "DOCUMENT";
1419
- })(MediaModality || (MediaModality = {}));
1420
1472
  /** The type of the VAD signal. */
1421
1473
  var VadSignalType;
1422
1474
  (function (VadSignalType) {
@@ -1453,7 +1505,7 @@ var VoiceActivityType;
1453
1505
  var StartSensitivity;
1454
1506
  (function (StartSensitivity) {
1455
1507
  /**
1456
- * The default is START_SENSITIVITY_LOW.
1508
+ * The default is START_SENSITIVITY_LOW for Gemini Enterprise Agent Platform and START_SENSITIVITY_HIGH for Gemini Live.
1457
1509
  */
1458
1510
  StartSensitivity["START_SENSITIVITY_UNSPECIFIED"] = "START_SENSITIVITY_UNSPECIFIED";
1459
1511
  /**
@@ -1469,7 +1521,7 @@ var StartSensitivity;
1469
1521
  var EndSensitivity;
1470
1522
  (function (EndSensitivity) {
1471
1523
  /**
1472
- * The default is END_SENSITIVITY_LOW.
1524
+ * The default is END_SENSITIVITY_LOW for Gemini Enterprise Agent Platform and END_SENSITIVITY_HIGH for Gemini Live.
1473
1525
  */
1474
1526
  EndSensitivity["END_SENSITIVITY_UNSPECIFIED"] = "END_SENSITIVITY_UNSPECIFIED";
1475
1527
  /**