@google/genai 1.47.0 → 1.48.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 +13 -10
- package/dist/index.cjs +8 -7
- package/dist/index.mjs +8 -7
- package/dist/index.mjs.map +1 -1
- package/dist/node/index.cjs +8 -7
- package/dist/node/index.mjs +8 -7
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/node.d.ts +13 -10
- package/dist/tokenizer/node.cjs +4 -4
- package/dist/tokenizer/node.mjs +4 -4
- package/dist/tokenizer/node.mjs.map +1 -1
- package/dist/vertex_internal/index.cjs +5 -5
- package/dist/vertex_internal/index.cjs.map +1 -1
- package/dist/vertex_internal/index.d.ts +5 -5
- package/dist/vertex_internal/index.js +5 -5
- package/dist/vertex_internal/index.js.map +1 -1
- package/dist/web/index.mjs +8 -7
- package/dist/web/index.mjs.map +1 -1
- package/dist/web/web.d.ts +13 -10
- package/package.json +1 -1
package/dist/node/node.d.ts
CHANGED
|
@@ -1824,7 +1824,7 @@ declare interface ContentDelta {
|
|
|
1824
1824
|
/**
|
|
1825
1825
|
* The delta content data for a content block.
|
|
1826
1826
|
*/
|
|
1827
|
-
delta: ContentDelta.Text | ContentDelta.Image | ContentDelta.Audio | ContentDelta.Document | ContentDelta.Video | ContentDelta.ThoughtSummary | ContentDelta.ThoughtSignature | ContentDelta.FunctionCall | ContentDelta.CodeExecutionCall | ContentDelta.URLContextCall | ContentDelta.GoogleSearchCall | ContentDelta.MCPServerToolCall | ContentDelta.FileSearchCall | ContentDelta.GoogleMapsCall | ContentDelta.FunctionResult | ContentDelta.CodeExecutionResult | ContentDelta.URLContextResult | ContentDelta.GoogleSearchResult | ContentDelta.MCPServerToolResult | ContentDelta.FileSearchResult | ContentDelta.GoogleMapsResult;
|
|
1827
|
+
delta: ContentDelta.Text | ContentDelta.Image | ContentDelta.Audio | ContentDelta.Document | ContentDelta.Video | ContentDelta.ThoughtSummary | ContentDelta.ThoughtSignature | ContentDelta.FunctionCall | ContentDelta.CodeExecutionCall | ContentDelta.URLContextCall | ContentDelta.GoogleSearchCall | ContentDelta.MCPServerToolCall | ContentDelta.FileSearchCall | ContentDelta.GoogleMapsCall | ContentDelta.FunctionResult | ContentDelta.CodeExecutionResult | ContentDelta.URLContextResult | ContentDelta.GoogleSearchResult | ContentDelta.MCPServerToolResult | ContentDelta.FileSearchResult | ContentDelta.GoogleMapsResult | ContentDelta.TextAnnotation;
|
|
1828
1828
|
event_type: 'content.delta';
|
|
1829
1829
|
index: number;
|
|
1830
1830
|
/**
|
|
@@ -1838,10 +1838,6 @@ declare namespace ContentDelta {
|
|
|
1838
1838
|
interface Text {
|
|
1839
1839
|
text: string;
|
|
1840
1840
|
type: 'text';
|
|
1841
|
-
/**
|
|
1842
|
-
* Citation information for model-generated content.
|
|
1843
|
-
*/
|
|
1844
|
-
annotations?: Array<InteractionsAPI.Annotation>;
|
|
1845
1841
|
}
|
|
1846
1842
|
interface Image {
|
|
1847
1843
|
type: 'image';
|
|
@@ -2096,6 +2092,13 @@ declare namespace ContentDelta {
|
|
|
2096
2092
|
*/
|
|
2097
2093
|
signature?: string;
|
|
2098
2094
|
}
|
|
2095
|
+
interface TextAnnotation {
|
|
2096
|
+
type: 'text_annotation';
|
|
2097
|
+
/**
|
|
2098
|
+
* Citation information for model-generated content.
|
|
2099
|
+
*/
|
|
2100
|
+
annotations?: Array<InteractionsAPI.Annotation>;
|
|
2101
|
+
}
|
|
2099
2102
|
}
|
|
2100
2103
|
|
|
2101
2104
|
/** The embedding generated from an input content. */
|
|
@@ -4467,7 +4470,7 @@ export declare interface GenerateContentConfig {
|
|
|
4467
4470
|
service. If supplied, safety_settings must not be supplied.
|
|
4468
4471
|
*/
|
|
4469
4472
|
modelArmorConfig?: ModelArmorConfig;
|
|
4470
|
-
/** The service tier to use for the request. For example,
|
|
4473
|
+
/** The service tier to use for the request. For example, ServiceTier.FLEX. */
|
|
4471
4474
|
serviceTier?: ServiceTier;
|
|
4472
4475
|
}
|
|
4473
4476
|
|
|
@@ -9660,19 +9663,19 @@ export declare enum ServiceTier {
|
|
|
9660
9663
|
/**
|
|
9661
9664
|
* Default service tier, which is standard.
|
|
9662
9665
|
*/
|
|
9663
|
-
|
|
9666
|
+
UNSPECIFIED = "unspecified",
|
|
9664
9667
|
/**
|
|
9665
9668
|
* Flex service tier.
|
|
9666
9669
|
*/
|
|
9667
|
-
|
|
9670
|
+
FLEX = "flex",
|
|
9668
9671
|
/**
|
|
9669
9672
|
* Standard service tier.
|
|
9670
9673
|
*/
|
|
9671
|
-
|
|
9674
|
+
STANDARD = "standard",
|
|
9672
9675
|
/**
|
|
9673
9676
|
* Priority service tier.
|
|
9674
9677
|
*/
|
|
9675
|
-
|
|
9678
|
+
PRIORITY = "priority"
|
|
9676
9679
|
}
|
|
9677
9680
|
|
|
9678
9681
|
/**
|
package/dist/tokenizer/node.cjs
CHANGED
|
@@ -1023,19 +1023,19 @@ var ServiceTier;
|
|
|
1023
1023
|
/**
|
|
1024
1024
|
* Default service tier, which is standard.
|
|
1025
1025
|
*/
|
|
1026
|
-
ServiceTier["
|
|
1026
|
+
ServiceTier["UNSPECIFIED"] = "unspecified";
|
|
1027
1027
|
/**
|
|
1028
1028
|
* Flex service tier.
|
|
1029
1029
|
*/
|
|
1030
|
-
ServiceTier["
|
|
1030
|
+
ServiceTier["FLEX"] = "flex";
|
|
1031
1031
|
/**
|
|
1032
1032
|
* Standard service tier.
|
|
1033
1033
|
*/
|
|
1034
|
-
ServiceTier["
|
|
1034
|
+
ServiceTier["STANDARD"] = "standard";
|
|
1035
1035
|
/**
|
|
1036
1036
|
* Priority service tier.
|
|
1037
1037
|
*/
|
|
1038
|
-
ServiceTier["
|
|
1038
|
+
ServiceTier["PRIORITY"] = "priority";
|
|
1039
1039
|
})(ServiceTier || (ServiceTier = {}));
|
|
1040
1040
|
/** Options for feature selection preference. */
|
|
1041
1041
|
var FeatureSelectionPreference;
|
package/dist/tokenizer/node.mjs
CHANGED
|
@@ -999,19 +999,19 @@ var ServiceTier;
|
|
|
999
999
|
/**
|
|
1000
1000
|
* Default service tier, which is standard.
|
|
1001
1001
|
*/
|
|
1002
|
-
ServiceTier["
|
|
1002
|
+
ServiceTier["UNSPECIFIED"] = "unspecified";
|
|
1003
1003
|
/**
|
|
1004
1004
|
* Flex service tier.
|
|
1005
1005
|
*/
|
|
1006
|
-
ServiceTier["
|
|
1006
|
+
ServiceTier["FLEX"] = "flex";
|
|
1007
1007
|
/**
|
|
1008
1008
|
* Standard service tier.
|
|
1009
1009
|
*/
|
|
1010
|
-
ServiceTier["
|
|
1010
|
+
ServiceTier["STANDARD"] = "standard";
|
|
1011
1011
|
/**
|
|
1012
1012
|
* Priority service tier.
|
|
1013
1013
|
*/
|
|
1014
|
-
ServiceTier["
|
|
1014
|
+
ServiceTier["PRIORITY"] = "priority";
|
|
1015
1015
|
})(ServiceTier || (ServiceTier = {}));
|
|
1016
1016
|
/** Options for feature selection preference. */
|
|
1017
1017
|
var FeatureSelectionPreference;
|