@google/genai 2.5.0 → 2.7.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.
@@ -33,18 +33,6 @@ var path__namespace = /*#__PURE__*/_interopNamespaceDefault(path);
33
33
  * Copyright 2025 Google LLC
34
34
  * SPDX-License-Identifier: Apache-2.0
35
35
  */
36
- /** Programming language of the `code`. */
37
- var Language;
38
- (function (Language) {
39
- /**
40
- * Unspecified language. This value should not be used.
41
- */
42
- Language["LANGUAGE_UNSPECIFIED"] = "LANGUAGE_UNSPECIFIED";
43
- /**
44
- * Python >= 3.10, with numpy and simpy available.
45
- */
46
- Language["PYTHON"] = "PYTHON";
47
- })(Language || (Language = {}));
48
36
  /** Outcome of the code execution. */
49
37
  var Outcome;
50
38
  (function (Outcome) {
@@ -53,18 +41,30 @@ var Outcome;
53
41
  */
54
42
  Outcome["OUTCOME_UNSPECIFIED"] = "OUTCOME_UNSPECIFIED";
55
43
  /**
56
- * Code execution completed successfully.
44
+ * Code execution completed successfully. `output` contains the stdout, if any.
57
45
  */
58
46
  Outcome["OUTCOME_OK"] = "OUTCOME_OK";
59
47
  /**
60
- * Code execution finished but with a failure. `stderr` should contain the reason.
48
+ * Code execution failed. `output` contains the stderr and stdout, if any.
61
49
  */
62
50
  Outcome["OUTCOME_FAILED"] = "OUTCOME_FAILED";
63
51
  /**
64
- * Code execution ran for too long, and was cancelled. There may or may not be a partial output present.
52
+ * Code execution ran for too long, and was cancelled. There may or may not be a partial `output` present.
65
53
  */
66
54
  Outcome["OUTCOME_DEADLINE_EXCEEDED"] = "OUTCOME_DEADLINE_EXCEEDED";
67
55
  })(Outcome || (Outcome = {}));
56
+ /** Programming language of the `code`. */
57
+ var Language;
58
+ (function (Language) {
59
+ /**
60
+ * Unspecified language. This value should not be used.
61
+ */
62
+ Language["LANGUAGE_UNSPECIFIED"] = "LANGUAGE_UNSPECIFIED";
63
+ /**
64
+ * Python >= 3.10, with numpy and simpy available.
65
+ */
66
+ Language["PYTHON"] = "PYTHON";
67
+ })(Language || (Language = {}));
68
68
  /** Specifies how the response should be scheduled in the conversation. */
69
69
  var FunctionResponseScheduling;
70
70
  (function (FunctionResponseScheduling) {
@@ -132,6 +132,14 @@ var Environment;
132
132
  * Operates in a web browser.
133
133
  */
134
134
  Environment["ENVIRONMENT_BROWSER"] = "ENVIRONMENT_BROWSER";
135
+ /**
136
+ * Operates in a mobile environment.
137
+ */
138
+ Environment["ENVIRONMENT_MOBILE"] = "ENVIRONMENT_MOBILE";
139
+ /**
140
+ * Operates in a desktop environment.
141
+ */
142
+ Environment["ENVIRONMENT_DESKTOP"] = "ENVIRONMENT_DESKTOP";
135
143
  })(Environment || (Environment = {}));
136
144
  /** Type of auth scheme. This enum is not supported in Gemini API. */
137
145
  var AuthType;
@@ -263,30 +271,6 @@ var DynamicRetrievalConfigMode;
263
271
  */
264
272
  DynamicRetrievalConfigMode["MODE_DYNAMIC"] = "MODE_DYNAMIC";
265
273
  })(DynamicRetrievalConfigMode || (DynamicRetrievalConfigMode = {}));
266
- /** Function calling mode. */
267
- var FunctionCallingConfigMode;
268
- (function (FunctionCallingConfigMode) {
269
- /**
270
- * Unspecified function calling mode. This value should not be used.
271
- */
272
- FunctionCallingConfigMode["MODE_UNSPECIFIED"] = "MODE_UNSPECIFIED";
273
- /**
274
- * Default model behavior, model decides to predict either function calls or natural language response.
275
- */
276
- FunctionCallingConfigMode["AUTO"] = "AUTO";
277
- /**
278
- * Model is constrained to always predicting function calls only. If "allowed_function_names" are set, the predicted function calls will be limited to any one of "allowed_function_names", else the predicted function calls will be any one of the provided "function_declarations".
279
- */
280
- FunctionCallingConfigMode["ANY"] = "ANY";
281
- /**
282
- * Model will not predict any function calls. Model behavior is same as when not passing any function declarations.
283
- */
284
- FunctionCallingConfigMode["NONE"] = "NONE";
285
- /**
286
- * Model is constrained to predict either function calls or natural language response. If "allowed_function_names" are set, the predicted function calls will be limited to any one of "allowed_function_names", else the predicted function calls will be any one of the provided "function_declarations".
287
- */
288
- FunctionCallingConfigMode["VALIDATED"] = "VALIDATED";
289
- })(FunctionCallingConfigMode || (FunctionCallingConfigMode = {}));
290
274
  /** The number of thoughts tokens that the model should generate. */
291
275
  var ThinkingLevel;
292
276
  (function (ThinkingLevel) {
@@ -435,6 +419,30 @@ var HarmBlockThreshold;
435
419
  */
436
420
  HarmBlockThreshold["OFF"] = "OFF";
437
421
  })(HarmBlockThreshold || (HarmBlockThreshold = {}));
422
+ /** Function calling mode. */
423
+ var FunctionCallingConfigMode;
424
+ (function (FunctionCallingConfigMode) {
425
+ /**
426
+ * Unspecified function calling mode. This value should not be used.
427
+ */
428
+ FunctionCallingConfigMode["MODE_UNSPECIFIED"] = "MODE_UNSPECIFIED";
429
+ /**
430
+ * Default model behavior, model decides to predict either function calls or natural language response.
431
+ */
432
+ FunctionCallingConfigMode["AUTO"] = "AUTO";
433
+ /**
434
+ * Model is constrained to always predicting function calls only. If "allowed_function_names" are set, the predicted function calls will be limited to any one of "allowed_function_names", else the predicted function calls will be any one of the provided "function_declarations".
435
+ */
436
+ FunctionCallingConfigMode["ANY"] = "ANY";
437
+ /**
438
+ * Model will not predict any function calls. Model behavior is same as when not passing any function declarations.
439
+ */
440
+ FunctionCallingConfigMode["NONE"] = "NONE";
441
+ /**
442
+ * Model is constrained to predict either function calls or natural language response. If "allowed_function_names" are set, the predicted function calls will be limited to any one of "allowed_function_names", else the predicted function calls will be any one of the provided "function_declarations".
443
+ */
444
+ FunctionCallingConfigMode["VALIDATED"] = "VALIDATED";
445
+ })(FunctionCallingConfigMode || (FunctionCallingConfigMode = {}));
438
446
  /** Output only. The reason why the model stopped generating tokens.
439
447
 
440
448
  If empty, the model has not stopped generating the tokens. */
@@ -917,7 +925,23 @@ var PairwiseChoice;
917
925
  */
918
926
  PairwiseChoice["TIE"] = "TIE";
919
927
  })(PairwiseChoice || (PairwiseChoice = {}));
920
- /** The tuning task. Either I2V or T2V. This enum is not supported in Gemini API. */
928
+ /** The speed of the tuning job. Only supported for Veo 3.0 models. This enum is not supported in Gemini API. */
929
+ var TuningSpeed;
930
+ (function (TuningSpeed) {
931
+ /**
932
+ * The default / unset value. For Veo 3.0 models, this defaults to FAST.
933
+ */
934
+ TuningSpeed["TUNING_SPEED_UNSPECIFIED"] = "TUNING_SPEED_UNSPECIFIED";
935
+ /**
936
+ * Regular tuning speed.
937
+ */
938
+ TuningSpeed["REGULAR"] = "REGULAR";
939
+ /**
940
+ * Fast tuning speed.
941
+ */
942
+ TuningSpeed["FAST"] = "FAST";
943
+ })(TuningSpeed || (TuningSpeed = {}));
944
+ /** The tuning task for Veo. This enum is not supported in Gemini API. */
921
945
  var TuningTask;
922
946
  (function (TuningTask) {
923
947
  /**
@@ -937,6 +961,22 @@ var TuningTask;
937
961
  */
938
962
  TuningTask["TUNING_TASK_R2V"] = "TUNING_TASK_R2V";
939
963
  })(TuningTask || (TuningTask = {}));
964
+ /** The orientation of the video. Defaults to LANDSCAPE. This enum is not supported in Gemini API. */
965
+ var VideoOrientation;
966
+ (function (VideoOrientation) {
967
+ /**
968
+ * Unspecified video orientation. Defaults to landscape.
969
+ */
970
+ VideoOrientation["VIDEO_ORIENTATION_UNSPECIFIED"] = "VIDEO_ORIENTATION_UNSPECIFIED";
971
+ /**
972
+ * Landscape orientation (e.g. 16:9, 1280x720).
973
+ */
974
+ VideoOrientation["LANDSCAPE"] = "LANDSCAPE";
975
+ /**
976
+ * Portrait orientation (e.g. 9:16, 720x1280).
977
+ */
978
+ VideoOrientation["PORTRAIT"] = "PORTRAIT";
979
+ })(VideoOrientation || (VideoOrientation = {}));
940
980
  /** Output only. Current state of the `Document`. This enum is not supported in Vertex AI. */
941
981
  var DocumentState;
942
982
  (function (DocumentState) {
@@ -1236,6 +1276,10 @@ var TuningMethod;
1236
1276
  * Distillation tuning.
1237
1277
  */
1238
1278
  TuningMethod["DISTILLATION"] = "DISTILLATION";
1279
+ /**
1280
+ * Reinforcement tuning.
1281
+ */
1282
+ TuningMethod["REINFORCEMENT_TUNING"] = "REINFORCEMENT_TUNING";
1239
1283
  })(TuningMethod || (TuningMethod = {}));
1240
1284
  /** State for the lifecycle of a File. */
1241
1285
  var FileState;
@@ -142,15 +142,13 @@ declare interface Blob_2 {
142
142
  mimeType?: string;
143
143
  }
144
144
 
145
- /** Result of executing the `ExecutableCode`.
146
-
147
- Generated only when the `CodeExecution` tool is used. */
145
+ /** Result of executing the ExecutableCode. Generated only when the `CodeExecution` tool is used. */
148
146
  declare interface CodeExecutionResult {
149
147
  /** Required. Outcome of the code execution. */
150
148
  outcome?: Outcome;
151
149
  /** Optional. Contains stdout when code execution is successful, stderr or other description otherwise. */
152
150
  output?: string;
153
- /** The identifier of the `ExecutableCode` part this result is for. Only populated if the corresponding `ExecutableCode` has an id. */
151
+ /** Optional. The identifier of the `ExecutableCode` part this result is for. Only populated if the corresponding `ExecutableCode` has an id. This field is not supported in Vertex AI. */
154
152
  id?: string;
155
153
  }
156
154
 
@@ -164,6 +162,9 @@ declare interface ComputerUse {
164
162
  1. Using a more restricted / different action space.
165
163
  2. Improving the definitions / instructions of predefined functions. */
166
164
  excludedPredefinedFunctions?: string[];
165
+ /** Optional. Whether enable the prompt injection detection check on computer-use request.
166
+ */
167
+ enablePromptInjectionDetection?: boolean;
167
168
  }
168
169
 
169
170
  /** Local tokenizer compute tokens result. */
@@ -252,20 +253,24 @@ declare enum Environment {
252
253
  /**
253
254
  * Operates in a web browser.
254
255
  */
255
- ENVIRONMENT_BROWSER = "ENVIRONMENT_BROWSER"
256
+ ENVIRONMENT_BROWSER = "ENVIRONMENT_BROWSER",
257
+ /**
258
+ * Operates in a mobile environment.
259
+ */
260
+ ENVIRONMENT_MOBILE = "ENVIRONMENT_MOBILE",
261
+ /**
262
+ * Operates in a desktop environment.
263
+ */
264
+ ENVIRONMENT_DESKTOP = "ENVIRONMENT_DESKTOP"
256
265
  }
257
266
 
258
- /** Model-generated code executed server-side, results returned to the model.
259
-
260
- Only generated when using the `CodeExecution` tool, in which the code will
261
- be automatically executed, and a corresponding `CodeExecutionResult` will
262
- also be generated. */
267
+ /** Code generated by the model that is meant to be executed, and the result returned to the model. Generated when using the `CodeExecution` tool, in which the code will be automatically executed, and a corresponding CodeExecutionResult will also be generated. */
263
268
  declare interface ExecutableCode {
264
269
  /** Required. The code to be executed. */
265
270
  code?: string;
266
271
  /** Required. Programming language of the `code`. */
267
272
  language?: Language;
268
- /** Unique identifier of the `ExecutableCode` part. The server returns the `CodeExecutionResult` with the matching `id`. */
273
+ /** Optional. Unique identifier of the `ExecutableCode` part. The server returns the `CodeExecutionResult` with the matching `id`. This field is not supported in Vertex AI. */
269
274
  id?: string;
270
275
  }
271
276
 
@@ -327,14 +332,13 @@ declare interface FileSearch {
327
332
  metadataFilter?: string;
328
333
  }
329
334
 
330
- /** A function call. */
335
+ /** A predicted FunctionCall returned from the model that contains a string representing the FunctionDeclaration.name and a structured JSON object containing the parameters and their values. */
331
336
  declare interface FunctionCall {
332
- /** The unique id of the function call. If populated, the client to execute the
333
- `function_call` and return the response with the matching `id`. */
337
+ /** Optional. The unique id of the function call. If populated, the client to execute the `function_call` and return the response with the matching `id`. */
334
338
  id?: string;
335
- /** Optional. The function parameters and values in JSON object format. See [FunctionDeclaration.parameters] for parameter details. */
339
+ /** Optional. The function parameters and values in JSON object format. See FunctionDeclaration.parameters for parameter details. */
336
340
  args?: Record<string, unknown>;
337
- /** Optional. The name of the function to call. Matches [FunctionDeclaration.name]. */
341
+ /** Optional. The name of the function to call. Matches FunctionDeclaration.name. */
338
342
  name?: string;
339
343
  /** Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally. This field is not supported in Gemini API. */
340
344
  partialArgs?: PartialArg[];
@@ -346,7 +350,7 @@ declare interface FunctionCall {
346
350
  declare interface FunctionDeclaration {
347
351
  /** Optional. Description and purpose of the function. Model uses it to decide how and whether to call the function. */
348
352
  description?: string;
349
- /** Required. The name of the function to call. Must start with a letter or an underscore. Must be a-z, A-Z, 0-9, or contain underscores, dots, colons and dashes, with a maximum length of 64. */
353
+ /** Required. The name of the function to call. Must start with a letter or an underscore. Must be a-z, A-Z, 0-9, or contain underscores, dots, colons and dashes, with a maximum length of 128. */
350
354
  name?: string;
351
355
  /** Optional. Describes the parameters to this function in JSON Schema Object format. Reflects the Open API 3.03 Parameter Object. string Key: the name of the parameter. Parameter names are case sensitive. Schema Value: the Schema defining the type used for the parameter. For function with no parameters, this can be left unset. Parameter names must start with a letter or an underscore and must only contain chars a-z, A-Z, 0-9, or underscores with a maximum length of 64. Example with 1 required and 1 optional parameter: type: OBJECT properties: param1: type: STRING param2: type: INTEGER required: - param1 */
352
356
  parameters?: Schema;
@@ -371,7 +375,7 @@ declare class FunctionResponse {
371
375
  parts?: FunctionResponsePart[];
372
376
  /** Optional. The id of the function call this response is for. Populated by the client to match the corresponding function call `id`. */
373
377
  id?: string;
374
- /** Required. The name of the function to call. Matches [FunctionDeclaration.name] and [FunctionCall.name]. */
378
+ /** Required. The name of the function to call. Matches FunctionDeclaration.name and FunctionCall.name. */
375
379
  name?: string;
376
380
  /** Required. The function response in JSON object format. Use "output" key to specify function output and "error" key to specify error details (if any). If "output" and "error" keys are not specified, then whole "response" is treated as function output. */
377
381
  response?: Record<string, unknown>;
@@ -465,7 +469,7 @@ declare interface GenerationConfig {
465
469
  presencePenalty?: number;
466
470
  /** Optional. If set to true, the log probabilities of the output tokens are returned. Log probabilities are the logarithm of the probability of a token appearing in the output. A higher log probability means the token is more likely to be generated. This can be useful for analyzing the model's confidence in its own output and for debugging. */
467
471
  responseLogprobs?: boolean;
468
- /** Optional. The IANA standard MIME type of the response. The model will generate output that conforms to this MIME type. Supported values include 'text/plain' (default) and 'application/json'. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. This is a preview feature. */
472
+ /** Optional. The IANA standard MIME type of the response. The model will generate output that conforms to this MIME type. Supported values include 'text/plain' (default) and 'application/json'. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. */
469
473
  responseMimeType?: string;
470
474
  /** Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image. */
471
475
  responseModalities?: Modality[];
@@ -656,7 +660,7 @@ export declare class LocalTokenizer {
656
660
  computeTokens(contents: ContentListUnion): Promise<ComputeTokensResult>;
657
661
  }
658
662
 
659
- /** A MCPServer is a server that can be called by the model to perform actions. It is a server that implements the MCP protocol. Next ID: 5. This data type is not supported in Vertex AI. */
663
+ /** A MCPServer is a server that can be called by the model to perform actions. It is a server that implements the MCP protocol. Next ID: 6. This data type is not supported in Vertex AI. */
660
664
  declare interface McpServer {
661
665
  /** The name of the MCPServer. */
662
666
  name?: string;
@@ -727,15 +731,15 @@ declare enum Outcome {
727
731
  */
728
732
  OUTCOME_UNSPECIFIED = "OUTCOME_UNSPECIFIED",
729
733
  /**
730
- * Code execution completed successfully.
734
+ * Code execution completed successfully. `output` contains the stdout, if any.
731
735
  */
732
736
  OUTCOME_OK = "OUTCOME_OK",
733
737
  /**
734
- * Code execution finished but with a failure. `stderr` should contain the reason.
738
+ * Code execution failed. `output` contains the stderr and stdout, if any.
735
739
  */
736
740
  OUTCOME_FAILED = "OUTCOME_FAILED",
737
741
  /**
738
- * Code execution ran for too long, and was cancelled. There may or may not be a partial output present.
742
+ * Code execution ran for too long, and was cancelled. There may or may not be a partial `output` present.
739
743
  */
740
744
  OUTCOME_DEADLINE_EXCEEDED = "OUTCOME_DEADLINE_EXCEEDED"
741
745
  }
@@ -1138,7 +1142,7 @@ declare interface ToolCall {
1138
1142
  args?: Record<string, unknown>;
1139
1143
  }
1140
1144
 
1141
- /** Tool that executes code generated by the model, and automatically returns the result to the model. See also [ExecutableCode]and [CodeExecutionResult] which are input and output to this tool. This data type is not supported in Gemini API. */
1145
+ /** Tool that executes code generated by the model, and automatically returns the result to the model. See also ExecutableCode and CodeExecutionResult, which are input and output to this tool. This data type is not supported in Gemini API. */
1142
1146
  declare interface ToolCodeExecution {
1143
1147
  }
1144
1148
 
@@ -9,18 +9,6 @@ import * as path from 'path';
9
9
  * Copyright 2025 Google LLC
10
10
  * SPDX-License-Identifier: Apache-2.0
11
11
  */
12
- /** Programming language of the `code`. */
13
- var Language;
14
- (function (Language) {
15
- /**
16
- * Unspecified language. This value should not be used.
17
- */
18
- Language["LANGUAGE_UNSPECIFIED"] = "LANGUAGE_UNSPECIFIED";
19
- /**
20
- * Python >= 3.10, with numpy and simpy available.
21
- */
22
- Language["PYTHON"] = "PYTHON";
23
- })(Language || (Language = {}));
24
12
  /** Outcome of the code execution. */
25
13
  var Outcome;
26
14
  (function (Outcome) {
@@ -29,18 +17,30 @@ var Outcome;
29
17
  */
30
18
  Outcome["OUTCOME_UNSPECIFIED"] = "OUTCOME_UNSPECIFIED";
31
19
  /**
32
- * Code execution completed successfully.
20
+ * Code execution completed successfully. `output` contains the stdout, if any.
33
21
  */
34
22
  Outcome["OUTCOME_OK"] = "OUTCOME_OK";
35
23
  /**
36
- * Code execution finished but with a failure. `stderr` should contain the reason.
24
+ * Code execution failed. `output` contains the stderr and stdout, if any.
37
25
  */
38
26
  Outcome["OUTCOME_FAILED"] = "OUTCOME_FAILED";
39
27
  /**
40
- * Code execution ran for too long, and was cancelled. There may or may not be a partial output present.
28
+ * Code execution ran for too long, and was cancelled. There may or may not be a partial `output` present.
41
29
  */
42
30
  Outcome["OUTCOME_DEADLINE_EXCEEDED"] = "OUTCOME_DEADLINE_EXCEEDED";
43
31
  })(Outcome || (Outcome = {}));
32
+ /** Programming language of the `code`. */
33
+ var Language;
34
+ (function (Language) {
35
+ /**
36
+ * Unspecified language. This value should not be used.
37
+ */
38
+ Language["LANGUAGE_UNSPECIFIED"] = "LANGUAGE_UNSPECIFIED";
39
+ /**
40
+ * Python >= 3.10, with numpy and simpy available.
41
+ */
42
+ Language["PYTHON"] = "PYTHON";
43
+ })(Language || (Language = {}));
44
44
  /** Specifies how the response should be scheduled in the conversation. */
45
45
  var FunctionResponseScheduling;
46
46
  (function (FunctionResponseScheduling) {
@@ -108,6 +108,14 @@ var Environment;
108
108
  * Operates in a web browser.
109
109
  */
110
110
  Environment["ENVIRONMENT_BROWSER"] = "ENVIRONMENT_BROWSER";
111
+ /**
112
+ * Operates in a mobile environment.
113
+ */
114
+ Environment["ENVIRONMENT_MOBILE"] = "ENVIRONMENT_MOBILE";
115
+ /**
116
+ * Operates in a desktop environment.
117
+ */
118
+ Environment["ENVIRONMENT_DESKTOP"] = "ENVIRONMENT_DESKTOP";
111
119
  })(Environment || (Environment = {}));
112
120
  /** Type of auth scheme. This enum is not supported in Gemini API. */
113
121
  var AuthType;
@@ -239,30 +247,6 @@ var DynamicRetrievalConfigMode;
239
247
  */
240
248
  DynamicRetrievalConfigMode["MODE_DYNAMIC"] = "MODE_DYNAMIC";
241
249
  })(DynamicRetrievalConfigMode || (DynamicRetrievalConfigMode = {}));
242
- /** Function calling mode. */
243
- var FunctionCallingConfigMode;
244
- (function (FunctionCallingConfigMode) {
245
- /**
246
- * Unspecified function calling mode. This value should not be used.
247
- */
248
- FunctionCallingConfigMode["MODE_UNSPECIFIED"] = "MODE_UNSPECIFIED";
249
- /**
250
- * Default model behavior, model decides to predict either function calls or natural language response.
251
- */
252
- FunctionCallingConfigMode["AUTO"] = "AUTO";
253
- /**
254
- * Model is constrained to always predicting function calls only. If "allowed_function_names" are set, the predicted function calls will be limited to any one of "allowed_function_names", else the predicted function calls will be any one of the provided "function_declarations".
255
- */
256
- FunctionCallingConfigMode["ANY"] = "ANY";
257
- /**
258
- * Model will not predict any function calls. Model behavior is same as when not passing any function declarations.
259
- */
260
- FunctionCallingConfigMode["NONE"] = "NONE";
261
- /**
262
- * Model is constrained to predict either function calls or natural language response. If "allowed_function_names" are set, the predicted function calls will be limited to any one of "allowed_function_names", else the predicted function calls will be any one of the provided "function_declarations".
263
- */
264
- FunctionCallingConfigMode["VALIDATED"] = "VALIDATED";
265
- })(FunctionCallingConfigMode || (FunctionCallingConfigMode = {}));
266
250
  /** The number of thoughts tokens that the model should generate. */
267
251
  var ThinkingLevel;
268
252
  (function (ThinkingLevel) {
@@ -411,6 +395,30 @@ var HarmBlockThreshold;
411
395
  */
412
396
  HarmBlockThreshold["OFF"] = "OFF";
413
397
  })(HarmBlockThreshold || (HarmBlockThreshold = {}));
398
+ /** Function calling mode. */
399
+ var FunctionCallingConfigMode;
400
+ (function (FunctionCallingConfigMode) {
401
+ /**
402
+ * Unspecified function calling mode. This value should not be used.
403
+ */
404
+ FunctionCallingConfigMode["MODE_UNSPECIFIED"] = "MODE_UNSPECIFIED";
405
+ /**
406
+ * Default model behavior, model decides to predict either function calls or natural language response.
407
+ */
408
+ FunctionCallingConfigMode["AUTO"] = "AUTO";
409
+ /**
410
+ * Model is constrained to always predicting function calls only. If "allowed_function_names" are set, the predicted function calls will be limited to any one of "allowed_function_names", else the predicted function calls will be any one of the provided "function_declarations".
411
+ */
412
+ FunctionCallingConfigMode["ANY"] = "ANY";
413
+ /**
414
+ * Model will not predict any function calls. Model behavior is same as when not passing any function declarations.
415
+ */
416
+ FunctionCallingConfigMode["NONE"] = "NONE";
417
+ /**
418
+ * Model is constrained to predict either function calls or natural language response. If "allowed_function_names" are set, the predicted function calls will be limited to any one of "allowed_function_names", else the predicted function calls will be any one of the provided "function_declarations".
419
+ */
420
+ FunctionCallingConfigMode["VALIDATED"] = "VALIDATED";
421
+ })(FunctionCallingConfigMode || (FunctionCallingConfigMode = {}));
414
422
  /** Output only. The reason why the model stopped generating tokens.
415
423
 
416
424
  If empty, the model has not stopped generating the tokens. */
@@ -893,7 +901,23 @@ var PairwiseChoice;
893
901
  */
894
902
  PairwiseChoice["TIE"] = "TIE";
895
903
  })(PairwiseChoice || (PairwiseChoice = {}));
896
- /** The tuning task. Either I2V or T2V. This enum is not supported in Gemini API. */
904
+ /** The speed of the tuning job. Only supported for Veo 3.0 models. This enum is not supported in Gemini API. */
905
+ var TuningSpeed;
906
+ (function (TuningSpeed) {
907
+ /**
908
+ * The default / unset value. For Veo 3.0 models, this defaults to FAST.
909
+ */
910
+ TuningSpeed["TUNING_SPEED_UNSPECIFIED"] = "TUNING_SPEED_UNSPECIFIED";
911
+ /**
912
+ * Regular tuning speed.
913
+ */
914
+ TuningSpeed["REGULAR"] = "REGULAR";
915
+ /**
916
+ * Fast tuning speed.
917
+ */
918
+ TuningSpeed["FAST"] = "FAST";
919
+ })(TuningSpeed || (TuningSpeed = {}));
920
+ /** The tuning task for Veo. This enum is not supported in Gemini API. */
897
921
  var TuningTask;
898
922
  (function (TuningTask) {
899
923
  /**
@@ -913,6 +937,22 @@ var TuningTask;
913
937
  */
914
938
  TuningTask["TUNING_TASK_R2V"] = "TUNING_TASK_R2V";
915
939
  })(TuningTask || (TuningTask = {}));
940
+ /** The orientation of the video. Defaults to LANDSCAPE. This enum is not supported in Gemini API. */
941
+ var VideoOrientation;
942
+ (function (VideoOrientation) {
943
+ /**
944
+ * Unspecified video orientation. Defaults to landscape.
945
+ */
946
+ VideoOrientation["VIDEO_ORIENTATION_UNSPECIFIED"] = "VIDEO_ORIENTATION_UNSPECIFIED";
947
+ /**
948
+ * Landscape orientation (e.g. 16:9, 1280x720).
949
+ */
950
+ VideoOrientation["LANDSCAPE"] = "LANDSCAPE";
951
+ /**
952
+ * Portrait orientation (e.g. 9:16, 720x1280).
953
+ */
954
+ VideoOrientation["PORTRAIT"] = "PORTRAIT";
955
+ })(VideoOrientation || (VideoOrientation = {}));
916
956
  /** Output only. Current state of the `Document`. This enum is not supported in Vertex AI. */
917
957
  var DocumentState;
918
958
  (function (DocumentState) {
@@ -1212,6 +1252,10 @@ var TuningMethod;
1212
1252
  * Distillation tuning.
1213
1253
  */
1214
1254
  TuningMethod["DISTILLATION"] = "DISTILLATION";
1255
+ /**
1256
+ * Reinforcement tuning.
1257
+ */
1258
+ TuningMethod["REINFORCEMENT_TUNING"] = "REINFORCEMENT_TUNING";
1215
1259
  })(TuningMethod || (TuningMethod = {}));
1216
1260
  /** State for the lifecycle of a File. */
1217
1261
  var FileState;