@google/genai 2.8.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.
@@ -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) {
@@ -1465,34 +1493,6 @@ var TurnCompleteReason;
1465
1493
  */
1466
1494
  TurnCompleteReason["MAX_REGENERATION_REACHED"] = "MAX_REGENERATION_REACHED";
1467
1495
  })(TurnCompleteReason || (TurnCompleteReason = {}));
1468
- /** Server content modalities. */
1469
- var MediaModality;
1470
- (function (MediaModality) {
1471
- /**
1472
- * The modality is unspecified.
1473
- */
1474
- MediaModality["MODALITY_UNSPECIFIED"] = "MODALITY_UNSPECIFIED";
1475
- /**
1476
- * Plain text.
1477
- */
1478
- MediaModality["TEXT"] = "TEXT";
1479
- /**
1480
- * Images.
1481
- */
1482
- MediaModality["IMAGE"] = "IMAGE";
1483
- /**
1484
- * Video.
1485
- */
1486
- MediaModality["VIDEO"] = "VIDEO";
1487
- /**
1488
- * Audio.
1489
- */
1490
- MediaModality["AUDIO"] = "AUDIO";
1491
- /**
1492
- * Document, e.g. PDF.
1493
- */
1494
- MediaModality["DOCUMENT"] = "DOCUMENT";
1495
- })(MediaModality || (MediaModality = {}));
1496
1496
  /** The type of the VAD signal. */
1497
1497
  var VadSignalType;
1498
1498
  (function (VadSignalType) {
@@ -1529,7 +1529,7 @@ var VoiceActivityType;
1529
1529
  var StartSensitivity;
1530
1530
  (function (StartSensitivity) {
1531
1531
  /**
1532
- * 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.
1533
1533
  */
1534
1534
  StartSensitivity["START_SENSITIVITY_UNSPECIFIED"] = "START_SENSITIVITY_UNSPECIFIED";
1535
1535
  /**
@@ -1545,7 +1545,7 @@ var StartSensitivity;
1545
1545
  var EndSensitivity;
1546
1546
  (function (EndSensitivity) {
1547
1547
  /**
1548
- * 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.
1549
1549
  */
1550
1550
  EndSensitivity["END_SENSITIVITY_UNSPECIFIED"] = "END_SENSITIVITY_UNSPECIFIED";
1551
1551
  /**
@@ -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) {
@@ -1441,34 +1469,6 @@ var TurnCompleteReason;
1441
1469
  */
1442
1470
  TurnCompleteReason["MAX_REGENERATION_REACHED"] = "MAX_REGENERATION_REACHED";
1443
1471
  })(TurnCompleteReason || (TurnCompleteReason = {}));
1444
- /** Server content modalities. */
1445
- var MediaModality;
1446
- (function (MediaModality) {
1447
- /**
1448
- * The modality is unspecified.
1449
- */
1450
- MediaModality["MODALITY_UNSPECIFIED"] = "MODALITY_UNSPECIFIED";
1451
- /**
1452
- * Plain text.
1453
- */
1454
- MediaModality["TEXT"] = "TEXT";
1455
- /**
1456
- * Images.
1457
- */
1458
- MediaModality["IMAGE"] = "IMAGE";
1459
- /**
1460
- * Video.
1461
- */
1462
- MediaModality["VIDEO"] = "VIDEO";
1463
- /**
1464
- * Audio.
1465
- */
1466
- MediaModality["AUDIO"] = "AUDIO";
1467
- /**
1468
- * Document, e.g. PDF.
1469
- */
1470
- MediaModality["DOCUMENT"] = "DOCUMENT";
1471
- })(MediaModality || (MediaModality = {}));
1472
1472
  /** The type of the VAD signal. */
1473
1473
  var VadSignalType;
1474
1474
  (function (VadSignalType) {
@@ -1505,7 +1505,7 @@ var VoiceActivityType;
1505
1505
  var StartSensitivity;
1506
1506
  (function (StartSensitivity) {
1507
1507
  /**
1508
- * 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.
1509
1509
  */
1510
1510
  StartSensitivity["START_SENSITIVITY_UNSPECIFIED"] = "START_SENSITIVITY_UNSPECIFIED";
1511
1511
  /**
@@ -1521,7 +1521,7 @@ var StartSensitivity;
1521
1521
  var EndSensitivity;
1522
1522
  (function (EndSensitivity) {
1523
1523
  /**
1524
- * 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.
1525
1525
  */
1526
1526
  EndSensitivity["END_SENSITIVITY_UNSPECIFIED"] = "END_SENSITIVITY_UNSPECIFIED";
1527
1527
  /**