@google/genai 1.46.0 → 1.47.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 +423 -243
- package/dist/index.cjs +390 -77
- package/dist/index.mjs +391 -78
- package/dist/index.mjs.map +1 -1
- package/dist/node/index.cjs +390 -77
- package/dist/node/index.mjs +391 -78
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/node.d.ts +423 -243
- package/dist/tokenizer/node.cjs +140 -68
- package/dist/tokenizer/node.d.ts +31 -27
- package/dist/tokenizer/node.mjs +140 -68
- package/dist/tokenizer/node.mjs.map +1 -1
- package/dist/vertex_internal/index.cjs +146 -70
- package/dist/vertex_internal/index.cjs.map +1 -1
- package/dist/vertex_internal/index.d.ts +232 -84
- package/dist/vertex_internal/index.js +146 -70
- package/dist/vertex_internal/index.js.map +1 -1
- package/dist/web/index.mjs +391 -78
- package/dist/web/index.mjs.map +1 -1
- package/dist/web/web.d.ts +423 -243
- package/package.json +1 -1
package/dist/tokenizer/node.cjs
CHANGED
|
@@ -121,38 +121,18 @@ var Type;
|
|
|
121
121
|
*/
|
|
122
122
|
Type["NULL"] = "NULL";
|
|
123
123
|
})(Type || (Type = {}));
|
|
124
|
-
/**
|
|
125
|
-
var
|
|
126
|
-
(function (
|
|
127
|
-
/**
|
|
128
|
-
* Defaults to unspecified.
|
|
129
|
-
*/
|
|
130
|
-
PhishBlockThreshold["PHISH_BLOCK_THRESHOLD_UNSPECIFIED"] = "PHISH_BLOCK_THRESHOLD_UNSPECIFIED";
|
|
131
|
-
/**
|
|
132
|
-
* Blocks Low and above confidence URL that is risky.
|
|
133
|
-
*/
|
|
134
|
-
PhishBlockThreshold["BLOCK_LOW_AND_ABOVE"] = "BLOCK_LOW_AND_ABOVE";
|
|
135
|
-
/**
|
|
136
|
-
* Blocks Medium and above confidence URL that is risky.
|
|
137
|
-
*/
|
|
138
|
-
PhishBlockThreshold["BLOCK_MEDIUM_AND_ABOVE"] = "BLOCK_MEDIUM_AND_ABOVE";
|
|
139
|
-
/**
|
|
140
|
-
* Blocks High and above confidence URL that is risky.
|
|
141
|
-
*/
|
|
142
|
-
PhishBlockThreshold["BLOCK_HIGH_AND_ABOVE"] = "BLOCK_HIGH_AND_ABOVE";
|
|
143
|
-
/**
|
|
144
|
-
* Blocks Higher and above confidence URL that is risky.
|
|
145
|
-
*/
|
|
146
|
-
PhishBlockThreshold["BLOCK_HIGHER_AND_ABOVE"] = "BLOCK_HIGHER_AND_ABOVE";
|
|
124
|
+
/** The environment being operated. */
|
|
125
|
+
var Environment;
|
|
126
|
+
(function (Environment) {
|
|
147
127
|
/**
|
|
148
|
-
*
|
|
128
|
+
* Defaults to browser.
|
|
149
129
|
*/
|
|
150
|
-
|
|
130
|
+
Environment["ENVIRONMENT_UNSPECIFIED"] = "ENVIRONMENT_UNSPECIFIED";
|
|
151
131
|
/**
|
|
152
|
-
*
|
|
132
|
+
* Operates in a web browser.
|
|
153
133
|
*/
|
|
154
|
-
|
|
155
|
-
})(
|
|
134
|
+
Environment["ENVIRONMENT_BROWSER"] = "ENVIRONMENT_BROWSER";
|
|
135
|
+
})(Environment || (Environment = {}));
|
|
156
136
|
/** Type of auth scheme. This enum is not supported in Gemini API. */
|
|
157
137
|
var AuthType;
|
|
158
138
|
(function (AuthType) {
|
|
@@ -223,6 +203,38 @@ var ApiSpec;
|
|
|
223
203
|
*/
|
|
224
204
|
ApiSpec["ELASTIC_SEARCH"] = "ELASTIC_SEARCH";
|
|
225
205
|
})(ApiSpec || (ApiSpec = {}));
|
|
206
|
+
/** Sites with confidence level chosen & above this value will be blocked from the search results. This enum is not supported in Gemini API. */
|
|
207
|
+
var PhishBlockThreshold;
|
|
208
|
+
(function (PhishBlockThreshold) {
|
|
209
|
+
/**
|
|
210
|
+
* Defaults to unspecified.
|
|
211
|
+
*/
|
|
212
|
+
PhishBlockThreshold["PHISH_BLOCK_THRESHOLD_UNSPECIFIED"] = "PHISH_BLOCK_THRESHOLD_UNSPECIFIED";
|
|
213
|
+
/**
|
|
214
|
+
* Blocks Low and above confidence URL that is risky.
|
|
215
|
+
*/
|
|
216
|
+
PhishBlockThreshold["BLOCK_LOW_AND_ABOVE"] = "BLOCK_LOW_AND_ABOVE";
|
|
217
|
+
/**
|
|
218
|
+
* Blocks Medium and above confidence URL that is risky.
|
|
219
|
+
*/
|
|
220
|
+
PhishBlockThreshold["BLOCK_MEDIUM_AND_ABOVE"] = "BLOCK_MEDIUM_AND_ABOVE";
|
|
221
|
+
/**
|
|
222
|
+
* Blocks High and above confidence URL that is risky.
|
|
223
|
+
*/
|
|
224
|
+
PhishBlockThreshold["BLOCK_HIGH_AND_ABOVE"] = "BLOCK_HIGH_AND_ABOVE";
|
|
225
|
+
/**
|
|
226
|
+
* Blocks Higher and above confidence URL that is risky.
|
|
227
|
+
*/
|
|
228
|
+
PhishBlockThreshold["BLOCK_HIGHER_AND_ABOVE"] = "BLOCK_HIGHER_AND_ABOVE";
|
|
229
|
+
/**
|
|
230
|
+
* Blocks Very high and above confidence URL that is risky.
|
|
231
|
+
*/
|
|
232
|
+
PhishBlockThreshold["BLOCK_VERY_HIGH_AND_ABOVE"] = "BLOCK_VERY_HIGH_AND_ABOVE";
|
|
233
|
+
/**
|
|
234
|
+
* Blocks Extremely high confidence URL that is risky.
|
|
235
|
+
*/
|
|
236
|
+
PhishBlockThreshold["BLOCK_ONLY_EXTREMELY_HIGH"] = "BLOCK_ONLY_EXTREMELY_HIGH";
|
|
237
|
+
})(PhishBlockThreshold || (PhishBlockThreshold = {}));
|
|
226
238
|
/** Specifies the function Behavior. Currently only supported by the BidiGenerateContent method. This enum is not supported in Vertex AI. */
|
|
227
239
|
var Behavior;
|
|
228
240
|
(function (Behavior) {
|
|
@@ -282,6 +294,10 @@ var ThinkingLevel;
|
|
|
282
294
|
* Unspecified thinking level.
|
|
283
295
|
*/
|
|
284
296
|
ThinkingLevel["THINKING_LEVEL_UNSPECIFIED"] = "THINKING_LEVEL_UNSPECIFIED";
|
|
297
|
+
/**
|
|
298
|
+
* MINIMAL thinking level.
|
|
299
|
+
*/
|
|
300
|
+
ThinkingLevel["MINIMAL"] = "MINIMAL";
|
|
285
301
|
/**
|
|
286
302
|
* Low thinking level.
|
|
287
303
|
*/
|
|
@@ -294,10 +310,6 @@ var ThinkingLevel;
|
|
|
294
310
|
* High thinking level.
|
|
295
311
|
*/
|
|
296
312
|
ThinkingLevel["HIGH"] = "HIGH";
|
|
297
|
-
/**
|
|
298
|
-
* MINIMAL thinking level.
|
|
299
|
-
*/
|
|
300
|
-
ThinkingLevel["MINIMAL"] = "MINIMAL";
|
|
301
313
|
})(ThinkingLevel || (ThinkingLevel = {}));
|
|
302
314
|
/** Enum that controls the generation of people. */
|
|
303
315
|
var PersonGeneration;
|
|
@@ -315,6 +327,22 @@ var PersonGeneration;
|
|
|
315
327
|
*/
|
|
316
328
|
PersonGeneration["ALLOW_ALL"] = "ALLOW_ALL";
|
|
317
329
|
})(PersonGeneration || (PersonGeneration = {}));
|
|
330
|
+
/** Controls whether prominent people (celebrities) generation is allowed. If used with personGeneration, personGeneration enum would take precedence. For instance, if ALLOW_NONE is set, all person generation would be blocked. If this field is unspecified, the default behavior is to allow prominent people. This enum is not supported in Gemini API. */
|
|
331
|
+
var ProminentPeople;
|
|
332
|
+
(function (ProminentPeople) {
|
|
333
|
+
/**
|
|
334
|
+
* Unspecified value. The model will proceed with the default behavior, which is to allow generation of prominent people.
|
|
335
|
+
*/
|
|
336
|
+
ProminentPeople["PROMINENT_PEOPLE_UNSPECIFIED"] = "PROMINENT_PEOPLE_UNSPECIFIED";
|
|
337
|
+
/**
|
|
338
|
+
* Allows the model to generate images of prominent people.
|
|
339
|
+
*/
|
|
340
|
+
ProminentPeople["ALLOW_PROMINENT_PEOPLE"] = "ALLOW_PROMINENT_PEOPLE";
|
|
341
|
+
/**
|
|
342
|
+
* Prevents the model from generating images of prominent people.
|
|
343
|
+
*/
|
|
344
|
+
ProminentPeople["BLOCK_PROMINENT_PEOPLE"] = "BLOCK_PROMINENT_PEOPLE";
|
|
345
|
+
})(ProminentPeople || (ProminentPeople = {}));
|
|
318
346
|
/** The harm category to be blocked. */
|
|
319
347
|
var HarmCategory;
|
|
320
348
|
(function (HarmCategory) {
|
|
@@ -633,6 +661,42 @@ var Modality;
|
|
|
633
661
|
*/
|
|
634
662
|
Modality["AUDIO"] = "AUDIO";
|
|
635
663
|
})(Modality || (Modality = {}));
|
|
664
|
+
/** The stage of the underlying model. This enum is not supported in Vertex AI. */
|
|
665
|
+
var ModelStage;
|
|
666
|
+
(function (ModelStage) {
|
|
667
|
+
/**
|
|
668
|
+
* Unspecified model stage.
|
|
669
|
+
*/
|
|
670
|
+
ModelStage["MODEL_STAGE_UNSPECIFIED"] = "MODEL_STAGE_UNSPECIFIED";
|
|
671
|
+
/**
|
|
672
|
+
* The underlying model is subject to lots of tunings.
|
|
673
|
+
*/
|
|
674
|
+
ModelStage["UNSTABLE_EXPERIMENTAL"] = "UNSTABLE_EXPERIMENTAL";
|
|
675
|
+
/**
|
|
676
|
+
* Models in this stage are for experimental purposes only.
|
|
677
|
+
*/
|
|
678
|
+
ModelStage["EXPERIMENTAL"] = "EXPERIMENTAL";
|
|
679
|
+
/**
|
|
680
|
+
* Models in this stage are more mature than experimental models.
|
|
681
|
+
*/
|
|
682
|
+
ModelStage["PREVIEW"] = "PREVIEW";
|
|
683
|
+
/**
|
|
684
|
+
* Models in this stage are considered stable and ready for production use.
|
|
685
|
+
*/
|
|
686
|
+
ModelStage["STABLE"] = "STABLE";
|
|
687
|
+
/**
|
|
688
|
+
* If the model is on this stage, it means that this model is on the path to deprecation in near future. Only existing customers can use this model.
|
|
689
|
+
*/
|
|
690
|
+
ModelStage["LEGACY"] = "LEGACY";
|
|
691
|
+
/**
|
|
692
|
+
* Models in this stage are deprecated. These models cannot be used.
|
|
693
|
+
*/
|
|
694
|
+
ModelStage["DEPRECATED"] = "DEPRECATED";
|
|
695
|
+
/**
|
|
696
|
+
* Models in this stage are retired. These models cannot be used.
|
|
697
|
+
*/
|
|
698
|
+
ModelStage["RETIRED"] = "RETIRED";
|
|
699
|
+
})(ModelStage || (ModelStage = {}));
|
|
636
700
|
/** The media resolution to use. */
|
|
637
701
|
var MediaResolution;
|
|
638
702
|
(function (MediaResolution) {
|
|
@@ -869,6 +933,26 @@ var TuningTask;
|
|
|
869
933
|
*/
|
|
870
934
|
TuningTask["TUNING_TASK_R2V"] = "TUNING_TASK_R2V";
|
|
871
935
|
})(TuningTask || (TuningTask = {}));
|
|
936
|
+
/** Output only. Current state of the `Document`. This enum is not supported in Vertex AI. */
|
|
937
|
+
var DocumentState;
|
|
938
|
+
(function (DocumentState) {
|
|
939
|
+
/**
|
|
940
|
+
* The default value. This value is used if the state is omitted.
|
|
941
|
+
*/
|
|
942
|
+
DocumentState["STATE_UNSPECIFIED"] = "STATE_UNSPECIFIED";
|
|
943
|
+
/**
|
|
944
|
+
* Some `Chunks` of the `Document` are being processed (embedding and vector storage).
|
|
945
|
+
*/
|
|
946
|
+
DocumentState["STATE_PENDING"] = "STATE_PENDING";
|
|
947
|
+
/**
|
|
948
|
+
* All `Chunks` of the `Document` is processed and available for querying.
|
|
949
|
+
*/
|
|
950
|
+
DocumentState["STATE_ACTIVE"] = "STATE_ACTIVE";
|
|
951
|
+
/**
|
|
952
|
+
* Some `Chunks` of the `Document` failed processing.
|
|
953
|
+
*/
|
|
954
|
+
DocumentState["STATE_FAILED"] = "STATE_FAILED";
|
|
955
|
+
})(DocumentState || (DocumentState = {}));
|
|
872
956
|
/** The tokenization quality used for given media. */
|
|
873
957
|
var PartMediaResolutionLevel;
|
|
874
958
|
(function (PartMediaResolutionLevel) {
|
|
@@ -933,42 +1017,34 @@ var ResourceScope;
|
|
|
933
1017
|
*/
|
|
934
1018
|
ResourceScope["COLLECTION"] = "COLLECTION";
|
|
935
1019
|
})(ResourceScope || (ResourceScope = {}));
|
|
936
|
-
/**
|
|
937
|
-
var
|
|
938
|
-
(function (
|
|
939
|
-
FeatureSelectionPreference["FEATURE_SELECTION_PREFERENCE_UNSPECIFIED"] = "FEATURE_SELECTION_PREFERENCE_UNSPECIFIED";
|
|
940
|
-
FeatureSelectionPreference["PRIORITIZE_QUALITY"] = "PRIORITIZE_QUALITY";
|
|
941
|
-
FeatureSelectionPreference["BALANCED"] = "BALANCED";
|
|
942
|
-
FeatureSelectionPreference["PRIORITIZE_COST"] = "PRIORITIZE_COST";
|
|
943
|
-
})(FeatureSelectionPreference || (FeatureSelectionPreference = {}));
|
|
944
|
-
/** The environment being operated. */
|
|
945
|
-
var Environment;
|
|
946
|
-
(function (Environment) {
|
|
1020
|
+
/** Pricing and performance service tier. */
|
|
1021
|
+
var ServiceTier;
|
|
1022
|
+
(function (ServiceTier) {
|
|
947
1023
|
/**
|
|
948
|
-
*
|
|
1024
|
+
* Default service tier, which is standard.
|
|
949
1025
|
*/
|
|
950
|
-
|
|
1026
|
+
ServiceTier["SERVICE_TIER_UNSPECIFIED"] = "SERVICE_TIER_UNSPECIFIED";
|
|
951
1027
|
/**
|
|
952
|
-
*
|
|
1028
|
+
* Flex service tier.
|
|
953
1029
|
*/
|
|
954
|
-
|
|
955
|
-
})(Environment || (Environment = {}));
|
|
956
|
-
/** Enum for controlling whether the model can generate images of prominent people (celebrities). */
|
|
957
|
-
var ProminentPeople;
|
|
958
|
-
(function (ProminentPeople) {
|
|
1030
|
+
ServiceTier["SERVICE_TIER_FLEX"] = "SERVICE_TIER_FLEX";
|
|
959
1031
|
/**
|
|
960
|
-
*
|
|
1032
|
+
* Standard service tier.
|
|
961
1033
|
*/
|
|
962
|
-
|
|
1034
|
+
ServiceTier["SERVICE_TIER_STANDARD"] = "SERVICE_TIER_STANDARD";
|
|
963
1035
|
/**
|
|
964
|
-
*
|
|
1036
|
+
* Priority service tier.
|
|
965
1037
|
*/
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
1038
|
+
ServiceTier["SERVICE_TIER_PRIORITY"] = "SERVICE_TIER_PRIORITY";
|
|
1039
|
+
})(ServiceTier || (ServiceTier = {}));
|
|
1040
|
+
/** Options for feature selection preference. */
|
|
1041
|
+
var FeatureSelectionPreference;
|
|
1042
|
+
(function (FeatureSelectionPreference) {
|
|
1043
|
+
FeatureSelectionPreference["FEATURE_SELECTION_PREFERENCE_UNSPECIFIED"] = "FEATURE_SELECTION_PREFERENCE_UNSPECIFIED";
|
|
1044
|
+
FeatureSelectionPreference["PRIORITIZE_QUALITY"] = "PRIORITIZE_QUALITY";
|
|
1045
|
+
FeatureSelectionPreference["BALANCED"] = "BALANCED";
|
|
1046
|
+
FeatureSelectionPreference["PRIORITIZE_COST"] = "PRIORITIZE_COST";
|
|
1047
|
+
})(FeatureSelectionPreference || (FeatureSelectionPreference = {}));
|
|
972
1048
|
/** Enum representing the Vertex embedding API to use. */
|
|
973
1049
|
var EmbeddingApiType;
|
|
974
1050
|
(function (EmbeddingApiType) {
|
|
@@ -1143,14 +1219,6 @@ var TuningMethod;
|
|
|
1143
1219
|
*/
|
|
1144
1220
|
TuningMethod["DISTILLATION"] = "DISTILLATION";
|
|
1145
1221
|
})(TuningMethod || (TuningMethod = {}));
|
|
1146
|
-
/** State for the lifecycle of a Document. */
|
|
1147
|
-
var DocumentState;
|
|
1148
|
-
(function (DocumentState) {
|
|
1149
|
-
DocumentState["STATE_UNSPECIFIED"] = "STATE_UNSPECIFIED";
|
|
1150
|
-
DocumentState["STATE_PENDING"] = "STATE_PENDING";
|
|
1151
|
-
DocumentState["STATE_ACTIVE"] = "STATE_ACTIVE";
|
|
1152
|
-
DocumentState["STATE_FAILED"] = "STATE_FAILED";
|
|
1153
|
-
})(DocumentState || (DocumentState = {}));
|
|
1154
1222
|
/** State for the lifecycle of a File. */
|
|
1155
1223
|
var FileState;
|
|
1156
1224
|
(function (FileState) {
|
|
@@ -1310,6 +1378,10 @@ var TurnCoverage;
|
|
|
1310
1378
|
* The users turn includes all realtime input since the last turn, including inactivity (e.g. silence on the audio stream).
|
|
1311
1379
|
*/
|
|
1312
1380
|
TurnCoverage["TURN_INCLUDES_ALL_INPUT"] = "TURN_INCLUDES_ALL_INPUT";
|
|
1381
|
+
/**
|
|
1382
|
+
* Includes audio activity and all video since the last turn. With automatic activity detection, audio activity means speech and excludes silence.
|
|
1383
|
+
*/
|
|
1384
|
+
TurnCoverage["TURN_INCLUDES_AUDIO_ACTIVITY_AND_ALL_VIDEO"] = "TURN_INCLUDES_AUDIO_ACTIVITY_AND_ALL_VIDEO";
|
|
1313
1385
|
})(TurnCoverage || (TurnCoverage = {}));
|
|
1314
1386
|
/** Scale of the generated music. */
|
|
1315
1387
|
var Scale;
|
package/dist/tokenizer/node.d.ts
CHANGED
|
@@ -317,14 +317,13 @@ declare interface FileData {
|
|
|
317
317
|
mimeType?: string;
|
|
318
318
|
}
|
|
319
319
|
|
|
320
|
-
/**
|
|
320
|
+
/** The FileSearch tool that retrieves knowledge from Semantic Retrieval corpora. Files are imported to Semantic Retrieval corpora using the ImportFile API. This data type is not supported in Vertex AI. */
|
|
321
321
|
declare interface FileSearch {
|
|
322
|
-
/** The names of the file_search_stores to retrieve from.
|
|
323
|
-
Example: `fileSearchStores/my-file-search-store-123` */
|
|
322
|
+
/** Required. The names of the file_search_stores to retrieve from. Example: `fileSearchStores/my-file-search-store-123` */
|
|
324
323
|
fileSearchStoreNames?: string[];
|
|
325
|
-
/** The number of
|
|
324
|
+
/** Optional. The number of semantic retrieval chunks to retrieve. */
|
|
326
325
|
topK?: number;
|
|
327
|
-
/** Metadata filter to apply to the
|
|
326
|
+
/** Optional. Metadata filter to apply to the semantic retrieval documents and chunks. */
|
|
328
327
|
metadataFilter?: string;
|
|
329
328
|
}
|
|
330
329
|
|
|
@@ -520,9 +519,9 @@ declare interface GoogleMaps {
|
|
|
520
519
|
enableWidget?: boolean;
|
|
521
520
|
}
|
|
522
521
|
|
|
523
|
-
/** Tool to support
|
|
522
|
+
/** GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. */
|
|
524
523
|
declare interface GoogleSearch {
|
|
525
|
-
/**
|
|
524
|
+
/** Optional. The set of search types to enable. If not set, web search is enabled by default. */
|
|
526
525
|
searchTypes?: SearchTypes;
|
|
527
526
|
/** Optional. Sites with confidence level chosen & above this value will be blocked from the search results. This field is not supported in Gemini API. */
|
|
528
527
|
blockingConfidence?: PhishBlockThreshold;
|
|
@@ -771,6 +770,8 @@ declare interface Part {
|
|
|
771
770
|
toolCall?: ToolCall;
|
|
772
771
|
/** The output from a server-side ToolCall execution. This field is populated by the client with the results of executing the corresponding ToolCall. */
|
|
773
772
|
toolResponse?: ToolResponse;
|
|
773
|
+
/** Custom metadata associated with the Part. Agents using genai.Part as content representation may need to keep track of the additional information. For example it can be name of a file/source from which the Part originates or a way to multiplex multiple Part streams. This field is not supported in Vertex AI. */
|
|
774
|
+
partMetadata?: Record<string, unknown>;
|
|
774
775
|
}
|
|
775
776
|
|
|
776
777
|
/** Partial argument value of the function call. This data type is not supported in Gemini API. */
|
|
@@ -911,12 +912,14 @@ declare interface RagRetrievalConfigRankingRankService {
|
|
|
911
912
|
modelName?: string;
|
|
912
913
|
}
|
|
913
914
|
|
|
914
|
-
/**
|
|
915
|
+
/** The configuration for the replicated voice to use. */
|
|
915
916
|
declare interface ReplicatedVoiceConfig {
|
|
916
|
-
/** The
|
|
917
|
+
/** The mimetype of the voice sample. The only currently supported
|
|
918
|
+
value is `audio/wav`. This represents 16-bit signed little-endian wav
|
|
919
|
+
data, with a 24kHz sampling rate.
|
|
917
920
|
*/
|
|
918
921
|
mimeType?: string;
|
|
919
|
-
/** The sample
|
|
922
|
+
/** The sample of the custom voice.
|
|
920
923
|
|
|
921
924
|
* @remarks Encoded as base64 string. */
|
|
922
925
|
voiceSampleAudio?: string;
|
|
@@ -956,7 +959,7 @@ declare interface Schema {
|
|
|
956
959
|
anyOf?: Schema[];
|
|
957
960
|
/** Optional. Default value to use if the field is not specified. */
|
|
958
961
|
default?: unknown;
|
|
959
|
-
/** Optional.
|
|
962
|
+
/** Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt. */
|
|
960
963
|
description?: string;
|
|
961
964
|
/** Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:["EAST", "NORTH", "SOUTH", "WEST"]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:["101", "201", "301"]}` */
|
|
962
965
|
enum?: string[];
|
|
@@ -998,12 +1001,11 @@ declare interface Schema {
|
|
|
998
1001
|
type?: Type;
|
|
999
1002
|
}
|
|
1000
1003
|
|
|
1001
|
-
/**
|
|
1004
|
+
/** Different types of search that can be enabled on the GoogleSearch tool. */
|
|
1002
1005
|
declare interface SearchTypes {
|
|
1003
|
-
/** Setting this field enables web search. Only text results are
|
|
1004
|
-
returned. */
|
|
1006
|
+
/** Optional. Setting this field enables web search. Only text results are returned. */
|
|
1005
1007
|
webSearch?: WebSearch;
|
|
1006
|
-
/** Setting this field enables image search. Image bytes are returned. */
|
|
1008
|
+
/** Optional. Setting this field enables image search. Image bytes are returned. */
|
|
1007
1009
|
imageSearch?: ImageSearch;
|
|
1008
1010
|
}
|
|
1009
1011
|
|
|
@@ -1015,8 +1017,9 @@ declare interface SpeakerVoiceConfig {
|
|
|
1015
1017
|
voiceConfig?: VoiceConfig;
|
|
1016
1018
|
}
|
|
1017
1019
|
|
|
1020
|
+
/** Config for speech generation and transcription. */
|
|
1018
1021
|
declare interface SpeechConfig {
|
|
1019
|
-
/**
|
|
1022
|
+
/** The configuration in case of single-voice output. */
|
|
1020
1023
|
voiceConfig?: VoiceConfig;
|
|
1021
1024
|
/** Optional. The language code (ISO 639-1) for the speech synthesis. */
|
|
1022
1025
|
languageCode?: string;
|
|
@@ -1056,6 +1059,10 @@ declare enum ThinkingLevel {
|
|
|
1056
1059
|
* Unspecified thinking level.
|
|
1057
1060
|
*/
|
|
1058
1061
|
THINKING_LEVEL_UNSPECIFIED = "THINKING_LEVEL_UNSPECIFIED",
|
|
1062
|
+
/**
|
|
1063
|
+
* MINIMAL thinking level.
|
|
1064
|
+
*/
|
|
1065
|
+
MINIMAL = "MINIMAL",
|
|
1059
1066
|
/**
|
|
1060
1067
|
* Low thinking level.
|
|
1061
1068
|
*/
|
|
@@ -1067,11 +1074,7 @@ declare enum ThinkingLevel {
|
|
|
1067
1074
|
/**
|
|
1068
1075
|
* High thinking level.
|
|
1069
1076
|
*/
|
|
1070
|
-
HIGH = "HIGH"
|
|
1071
|
-
/**
|
|
1072
|
-
* MINIMAL thinking level.
|
|
1073
|
-
*/
|
|
1074
|
-
MINIMAL = "MINIMAL"
|
|
1077
|
+
HIGH = "HIGH"
|
|
1075
1078
|
}
|
|
1076
1079
|
|
|
1077
1080
|
/** Tokens info with a list of tokens and the corresponding list of token ids. */
|
|
@@ -1093,9 +1096,9 @@ declare interface Tool {
|
|
|
1093
1096
|
computer. If enabled, it automatically populates computer-use specific
|
|
1094
1097
|
Function Declarations. */
|
|
1095
1098
|
computerUse?: ComputerUse;
|
|
1096
|
-
/** Optional. Tool to retrieve knowledge from
|
|
1099
|
+
/** Optional. FileSearch tool type. Tool to retrieve knowledge from Semantic Retrieval corpora. This field is not supported in Vertex AI. */
|
|
1097
1100
|
fileSearch?: FileSearch;
|
|
1098
|
-
/**
|
|
1101
|
+
/** Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. */
|
|
1099
1102
|
googleSearch?: GoogleSearch;
|
|
1100
1103
|
/** Optional. Tool that allows grounding the model's response with
|
|
1101
1104
|
geospatial context related to the user's query. */
|
|
@@ -1282,16 +1285,17 @@ declare interface VideoMetadata {
|
|
|
1282
1285
|
startOffset?: string;
|
|
1283
1286
|
}
|
|
1284
1287
|
|
|
1288
|
+
/** The configuration for the voice to use. */
|
|
1285
1289
|
declare interface VoiceConfig {
|
|
1286
|
-
/**
|
|
1290
|
+
/** The configuration for a replicated voice, which is a clone of a
|
|
1291
|
+
user's voice that can be used for speech synthesis. If this is unset, a
|
|
1292
|
+
default voice is used. */
|
|
1287
1293
|
replicatedVoiceConfig?: ReplicatedVoiceConfig;
|
|
1288
1294
|
/** The configuration for a prebuilt voice. */
|
|
1289
1295
|
prebuiltVoiceConfig?: PrebuiltVoiceConfig;
|
|
1290
1296
|
}
|
|
1291
1297
|
|
|
1292
|
-
/** Standard web search for grounding and related configurations.
|
|
1293
|
-
|
|
1294
|
-
Only text results are returned. */
|
|
1298
|
+
/** Standard web search for grounding and related configurations. Only text results are returned. */
|
|
1295
1299
|
declare interface WebSearch {
|
|
1296
1300
|
}
|
|
1297
1301
|
|