@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/web/web.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
|
|
|
@@ -9653,19 +9656,19 @@ export declare enum ServiceTier {
|
|
|
9653
9656
|
/**
|
|
9654
9657
|
* Default service tier, which is standard.
|
|
9655
9658
|
*/
|
|
9656
|
-
|
|
9659
|
+
UNSPECIFIED = "unspecified",
|
|
9657
9660
|
/**
|
|
9658
9661
|
* Flex service tier.
|
|
9659
9662
|
*/
|
|
9660
|
-
|
|
9663
|
+
FLEX = "flex",
|
|
9661
9664
|
/**
|
|
9662
9665
|
* Standard service tier.
|
|
9663
9666
|
*/
|
|
9664
|
-
|
|
9667
|
+
STANDARD = "standard",
|
|
9665
9668
|
/**
|
|
9666
9669
|
* Priority service tier.
|
|
9667
9670
|
*/
|
|
9668
|
-
|
|
9671
|
+
PRIORITY = "priority"
|
|
9669
9672
|
}
|
|
9670
9673
|
|
|
9671
9674
|
/**
|