@google/genai 1.21.0 → 1.23.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.
@@ -5,8 +5,7 @@ import { GoogleAuthOptions } from 'google-auth-library';
5
5
  /** Marks the end of user activity.
6
6
 
7
7
  This can only be sent if automatic (i.e. server-side) activity detection is
8
- disabled.
9
- */
8
+ disabled. */
10
9
  export declare interface ActivityEnd {
11
10
  }
12
11
 
@@ -29,8 +28,7 @@ export declare enum ActivityHandling {
29
28
  /** Marks the start of user activity.
30
29
 
31
30
  This can only be sent if automatic (i.e. server-side) activity detection is
32
- disabled.
33
- */
31
+ disabled. */
34
32
  export declare interface ActivityStart {
35
33
  }
36
34
 
@@ -1069,6 +1067,18 @@ export declare interface CodeExecutionResult {
1069
1067
  output?: string;
1070
1068
  }
1071
1069
 
1070
+ /** Tool to support computer use. */
1071
+ export declare interface ComputerUse {
1072
+ /** Required. The environment being operated. */
1073
+ environment?: Environment;
1074
+ /** By default, predefined functions are included in the final model call.
1075
+ Some of them can be explicitly excluded from being automatically included.
1076
+ This can serve two purposes:
1077
+ 1. Using a more restricted / different action space.
1078
+ 2. Improving the definitions / instructions of predefined functions. */
1079
+ excludedPredefinedFunctions?: string[];
1080
+ }
1081
+
1072
1082
  /** Optional parameters for computing tokens. */
1073
1083
  export declare interface ComputeTokensConfig {
1074
1084
  /** Used to override HTTP request options. */
@@ -1141,8 +1151,7 @@ export declare type ContentListUnion = Content | Content[] | PartUnion | PartUni
1141
1151
 
1142
1152
  A content reference image represents a subject to reference (ex. person,
1143
1153
  product, animal) provided by the user. It can optionally be provided in
1144
- addition to a style reference image (ex. background, style reference).
1145
- */
1154
+ addition to a style reference image (ex. background, style reference). */
1146
1155
  export declare class ContentReferenceImage {
1147
1156
  /** The reference image for the editing operation. */
1148
1157
  referenceImage?: Image_2;
@@ -1182,8 +1191,7 @@ export declare interface ControlReferenceConfig {
1182
1191
  enable_control_image_computation field in the config should be set to True.
1183
1192
 
1184
1193
  A control image is an image that represents a sketch image of areas for the
1185
- model to fill in based on the prompt.
1186
- */
1194
+ model to fill in based on the prompt. */
1187
1195
  export declare class ControlReferenceImage {
1188
1196
  /** The reference image for the editing operation. */
1189
1197
  referenceImage?: Image_2;
@@ -1378,8 +1386,7 @@ export declare interface CreateCachedContentParameters {
1378
1386
  /** Parameters for initializing a new chat session.
1379
1387
 
1380
1388
  These parameters are used when creating a chat session with the
1381
- `chats.create()` method.
1382
- */
1389
+ `chats.create()` method. */
1383
1390
  export declare interface CreateChatParameters {
1384
1391
  /** The name of the model to use for the chat session.
1385
1392
 
@@ -1463,6 +1470,16 @@ export declare class CreateFileResponse {
1463
1470
  sdkHttpResponse?: HttpResponse;
1464
1471
  }
1465
1472
 
1473
+ /**
1474
+ * Creates a `FunctionResponsePart` object from a `base64` encoded `string`.
1475
+ */
1476
+ export declare function createFunctionResponsePartFromBase64(data: string, mimeType: string): FunctionResponsePart;
1477
+
1478
+ /**
1479
+ * Creates a `FunctionResponsePart` object from a `URI` string.
1480
+ */
1481
+ export declare function createFunctionResponsePartFromUri(uri: string, mimeType: string): FunctionResponsePart;
1482
+
1466
1483
  /**
1467
1484
  * Creates a `Content` object with a model role from a `PartListUnion` object or `string`.
1468
1485
  */
@@ -1491,7 +1508,7 @@ export declare function createPartFromFunctionCall(name: string, args: Record<st
1491
1508
  /**
1492
1509
  * Creates a `Part` object from a `FunctionResponse` object.
1493
1510
  */
1494
- export declare function createPartFromFunctionResponse(id: string, name: string, response: Record<string, unknown>): Part;
1511
+ export declare function createPartFromFunctionResponse(id: string, name: string, response: Record<string, unknown>, parts?: FunctionResponsePart[]): Part;
1495
1512
 
1496
1513
  /**
1497
1514
  * Creates a `Part` object from a `text` string.
@@ -1837,6 +1854,8 @@ export declare interface EditImageConfig {
1837
1854
  outputCompressionQuality?: number;
1838
1855
  /** Whether to add a watermark to the generated images. */
1839
1856
  addWatermark?: boolean;
1857
+ /** User specified labels to track billing usage. */
1858
+ labels?: Record<string, string>;
1840
1859
  /** Describes the editing mode for the request. */
1841
1860
  editMode?: EditMode;
1842
1861
  /** The number of sampling steps. A higher value has better image
@@ -2290,8 +2309,7 @@ export declare interface FileStatus {
2290
2309
 
2291
2310
  /** Output only. The reason why the model stopped generating tokens.
2292
2311
 
2293
- If empty, the model has not stopped generating the tokens.
2294
- */
2312
+ If empty, the model has not stopped generating the tokens. */
2295
2313
  export declare enum FinishReason {
2296
2314
  /**
2297
2315
  * The finish reason is unspecified.
@@ -2344,7 +2362,15 @@ export declare enum FinishReason {
2344
2362
  /**
2345
2363
  * The tool call generated by the model is invalid.
2346
2364
  */
2347
- UNEXPECTED_TOOL_CALL = "UNEXPECTED_TOOL_CALL"
2365
+ UNEXPECTED_TOOL_CALL = "UNEXPECTED_TOOL_CALL",
2366
+ /**
2367
+ * Image generation stopped because the generated images have prohibited content.
2368
+ */
2369
+ IMAGE_PROHIBITED_CONTENT = "IMAGE_PROHIBITED_CONTENT",
2370
+ /**
2371
+ * The model was expected to generate an image, but none was generated.
2372
+ */
2373
+ NO_IMAGE = "NO_IMAGE"
2348
2374
  }
2349
2375
 
2350
2376
  /** A function call. */
@@ -2393,8 +2419,7 @@ export declare enum FunctionCallingConfigMode {
2393
2419
  /** Defines a function that the model can generate JSON inputs for.
2394
2420
 
2395
2421
  The inputs are based on `OpenAPI 3.0 specifications
2396
- <https://spec.openapis.org/oas/v3.0.3>`_.
2397
- */
2422
+ <https://spec.openapis.org/oas/v3.0.3>`_. */
2398
2423
  export declare interface FunctionDeclaration {
2399
2424
  /** Defines the function behavior. */
2400
2425
  behavior?: Behavior;
@@ -2432,8 +2457,7 @@ export declare class FunctionResponse {
2432
2457
  /** Raw media bytes for function response.
2433
2458
 
2434
2459
  Text should not be sent as raw bytes, use the FunctionResponse.response
2435
- field.
2436
- */
2460
+ field. */
2437
2461
  export declare class FunctionResponseBlob {
2438
2462
  /** Required. The IANA standard MIME type of the source data. */
2439
2463
  mimeType?: string;
@@ -2458,8 +2482,7 @@ export declare class FunctionResponseFileData {
2458
2482
 
2459
2483
  A `FunctionResponsePart` must have a fixed IANA MIME type identifying the
2460
2484
  type and subtype of the media if the `inline_data` field is filled with raw
2461
- bytes.
2462
- */
2485
+ bytes. */
2463
2486
  export declare class FunctionResponsePart {
2464
2487
  /** Optional. Inline media bytes. */
2465
2488
  inlineData?: FunctionResponseBlob;
@@ -2506,8 +2529,7 @@ export declare interface GeminiPreferenceExampleCompletion {
2506
2529
  /** Optional model configuration parameters.
2507
2530
 
2508
2531
  For more information, see `Content generation parameters
2509
- <https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/content-generation-parameters>`_.
2510
- */
2532
+ <https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/content-generation-parameters>`_. */
2511
2533
  export declare interface GenerateContentConfig {
2512
2534
  /** Used to override HTTP request options. */
2513
2535
  httpOptions?: HttpOptions;
@@ -2650,6 +2672,9 @@ export declare interface GenerateContentConfig {
2650
2672
  /** The thinking features configuration.
2651
2673
  */
2652
2674
  thinkingConfig?: ThinkingConfig;
2675
+ /** The image generation configuration.
2676
+ */
2677
+ imageConfig?: ImageConfig;
2653
2678
  }
2654
2679
 
2655
2680
  /** Config for models.generate_content parameters. */
@@ -2926,6 +2951,8 @@ export declare interface GenerateImagesConfig {
2926
2951
  outputCompressionQuality?: number;
2927
2952
  /** Whether to add a watermark to the generated images. */
2928
2953
  addWatermark?: boolean;
2954
+ /** User specified labels to track billing usage. */
2955
+ labels?: Record<string, string>;
2929
2956
  /** The size of the largest dimension of the generated image.
2930
2957
  Supported sizes are 1K and 2K (not supported for Imagen 3 models). */
2931
2958
  imageSize?: string;
@@ -3783,6 +3810,13 @@ declare interface Image_2 {
3783
3810
  }
3784
3811
  export { Image_2 as Image }
3785
3812
 
3813
+ /** The image generation configuration to be used in GenerateContentConfig. */
3814
+ export declare interface ImageConfig {
3815
+ /** Aspect ratio of the generated images. Supported values are
3816
+ "1:1", "2:3", "3:2", "3:4", "4:3", "9:16", "16:9", and "21:9". */
3817
+ aspectRatio?: string;
3818
+ }
3819
+
3786
3820
  /** Enum that specifies the language of the text in the prompt. */
3787
3821
  export declare enum ImagePromptLanguage {
3788
3822
  /**
@@ -3857,8 +3891,7 @@ export declare class InlinedResponse {
3857
3891
  The start time must be less than or equal to the end time.
3858
3892
  When the start equals the end time, the interval is an empty interval.
3859
3893
  (matches no time)
3860
- When both start and end are unspecified, the interval matches any time.
3861
- */
3894
+ When both start and end are unspecified, the interval matches any time. */
3862
3895
  export declare interface Interval {
3863
3896
  /** The start time of the interval. */
3864
3897
  startTime?: string;
@@ -3945,8 +3978,7 @@ export declare enum Language {
3945
3978
  This is expressed as a pair of doubles to represent degrees latitude and
3946
3979
  degrees longitude. Unless specified otherwise, this object must conform to the
3947
3980
  <a href="https://en.wikipedia.org/wiki/World_Geodetic_System#1984_version">
3948
- WGS84 standard</a>. Values must be within normalized ranges.
3949
- */
3981
+ WGS84 standard</a>. Values must be within normalized ranges. */
3950
3982
  export declare interface LatLng {
3951
3983
  /** The latitude in degrees. It must be in the range [-90.0, +90.0]. */
3952
3984
  latitude?: number;
@@ -4187,8 +4219,7 @@ export declare interface LiveCallbacks {
4187
4219
  All the content here will unconditionally be appended to the conversation
4188
4220
  history and used as part of the prompt to the model to generate content.
4189
4221
 
4190
- A message here will interrupt any current model generation.
4191
- */
4222
+ A message here will interrupt any current model generation. */
4192
4223
  export declare interface LiveClientContent {
4193
4224
  /** The content appended to the current conversation with the model.
4194
4225
 
@@ -4228,8 +4259,7 @@ export declare interface LiveClientMessage {
4228
4259
  - Even before the end of turn, the data is processed incrementally
4229
4260
  to optimize for a fast start of the response from the model.
4230
4261
  - Is always assumed to be the user's input (cannot be used to populate
4231
- conversation history).
4232
- */
4262
+ conversation history). */
4233
4263
  export declare interface LiveClientRealtimeInput {
4234
4264
  /** Inlined bytes data for media input. */
4235
4265
  mediaChunks?: Blob_2[];
@@ -4306,8 +4336,7 @@ export declare interface LiveClientSetup {
4306
4336
  Note that in the unary and server-streaming GenerateContent APIs function
4307
4337
  calling happens by exchanging the `Content` parts, while in the bidi
4308
4338
  GenerateContent APIs function calling happens over this dedicated set of
4309
- messages.
4310
- */
4339
+ messages. */
4311
4340
  export declare class LiveClientToolResponse {
4312
4341
  /** The response to the function calls. */
4313
4342
  functionResponses?: FunctionResponse[];
@@ -4362,6 +4391,11 @@ export declare interface LiveConnectConfig {
4362
4391
  /** The speech generation configuration.
4363
4392
  */
4364
4393
  speechConfig?: SpeechConfig;
4394
+ /** Config for thinking features.
4395
+ An error will be returned if this field is set for models that don't
4396
+ support thinking.
4397
+ */
4398
+ thinkingConfig?: ThinkingConfig;
4365
4399
  /** If enabled, the model will detect emotions and adapt its responses accordingly. */
4366
4400
  enableAffectiveDialog?: boolean;
4367
4401
  /** The user provided system instructions for the model.
@@ -4582,8 +4616,7 @@ export declare enum LiveMusicPlaybackControl {
4582
4616
  /** Server update generated by the model in response to client messages.
4583
4617
 
4584
4618
  Content is generated as quickly as possible, and not in real time.
4585
- Clients may choose to buffer and play it out in real time.
4586
- */
4619
+ Clients may choose to buffer and play it out in real time. */
4587
4620
  export declare interface LiveMusicServerContent {
4588
4621
  /** The audio chunks that the model has generated. */
4589
4622
  audioChunks?: AudioChunk[];
@@ -4745,8 +4778,7 @@ export declare class LiveSendToolResponseParameters {
4745
4778
  /** Incremental server update generated by the model in response to client messages.
4746
4779
 
4747
4780
  Content is generated as quickly as possible, and not in real time. Clients
4748
- may choose to buffer and play it out in real time.
4749
- */
4781
+ may choose to buffer and play it out in real time. */
4750
4782
  export declare interface LiveServerContent {
4751
4783
  /** The content that the model has generated as part of the current conversation with the user. */
4752
4784
  modelTurn?: Content;
@@ -4827,8 +4859,7 @@ export declare class LiveServerMessage {
4827
4859
 
4828
4860
  /** Update of the session resumption state.
4829
4861
 
4830
- Only sent if `session_resumption` was set in the connection config.
4831
- */
4862
+ Only sent if `session_resumption` was set in the connection config. */
4832
4863
  export declare interface LiveServerSessionResumptionUpdate {
4833
4864
  /** New handle that represents state that can be resumed. Empty if `resumable`=false. */
4834
4865
  newHandle?: string;
@@ -4858,8 +4889,7 @@ export declare interface LiveServerToolCall {
4858
4889
 
4859
4890
  If there were side-effects to those tool calls, clients may attempt to undo
4860
4891
  the tool calls. This message occurs only in cases where the clients interrupt
4861
- server turns.
4862
- */
4892
+ server turns. */
4863
4893
  export declare interface LiveServerToolCallCancellation {
4864
4894
  /** The ids of the tool calls to be cancelled. */
4865
4895
  ids?: string[];
@@ -4910,8 +4940,7 @@ export declare interface MaskReferenceConfig {
4910
4940
 
4911
4941
  A mask image is an image whose non-zero values indicate where to edit the base
4912
4942
  image. If the user provides a mask image, the mask must be in the same
4913
- dimensions as the raw image.
4914
- */
4943
+ dimensions as the raw image. */
4915
4944
  export declare class MaskReferenceImage {
4916
4945
  /** The reference image for the editing operation. */
4917
4946
  referenceImage?: Image_2;
@@ -5675,8 +5704,7 @@ export declare class Pager<T> implements AsyncIterable<T> {
5675
5704
 
5676
5705
  Exactly one field within a Part should be set, representing the specific type
5677
5706
  of content being conveyed. Using multiple fields within the same `Part`
5678
- instance is considered invalid.
5679
- */
5707
+ instance is considered invalid. */
5680
5708
  export declare interface Part {
5681
5709
  /** Metadata for a given video. */
5682
5710
  videoMetadata?: VideoMetadata;
@@ -5851,8 +5879,7 @@ export declare interface RagRetrievalConfigRankingRankService {
5851
5879
 
5852
5880
  A raw reference image represents the base image to edit, provided by the user.
5853
5881
  It can optionally be provided in addition to a mask reference image or
5854
- a style reference image.
5855
- */
5882
+ a style reference image. */
5856
5883
  export declare class RawReferenceImage {
5857
5884
  /** The reference image for the editing operation. */
5858
5885
  referenceImage?: Image_2;
@@ -5867,8 +5894,7 @@ export declare class RawReferenceImage {
5867
5894
  /** Marks the end of user activity.
5868
5895
 
5869
5896
  This can only be sent if automatic (i.e. server-side) activity detection is
5870
- disabled.
5871
- */
5897
+ disabled. */
5872
5898
  export declare interface RealtimeInputConfig {
5873
5899
  /** If not set, automatic activity detection is enabled by default. If automatic voice detection is disabled, the client must send activity signals. */
5874
5900
  automaticActivityDetection?: AutomaticActivityDetection;
@@ -5912,6 +5938,8 @@ export declare interface RecontextImageConfig {
5912
5938
  outputCompressionQuality?: number;
5913
5939
  /** Whether to use the prompt rewriting logic. */
5914
5940
  enhancePrompt?: boolean;
5941
+ /** User specified labels to track billing usage. */
5942
+ labels?: Record<string, string>;
5915
5943
  }
5916
5944
 
5917
5945
  /** The parameters for recontextualizing an image. */
@@ -6125,8 +6153,7 @@ export declare enum Scale {
6125
6153
 
6126
6154
  Represents a select subset of an [OpenAPI 3.0 schema
6127
6155
  object](https://spec.openapis.org/oas/v3.0.3#schema-object). More fields may
6128
- be added in the future as needed.
6129
- */
6156
+ be added in the future as needed. */
6130
6157
  export declare interface Schema {
6131
6158
  /** Optional. The value should be validated against any (one or more) of the subschemas in the list. */
6132
6159
  anyOf?: Schema[];
@@ -6231,6 +6258,8 @@ export declare interface SegmentImageConfig {
6231
6258
  can be set to a decimal value between 0 and 255 non-inclusive.
6232
6259
  Set to -1 for no binary color thresholding. */
6233
6260
  binaryColorThreshold?: number;
6261
+ /** User specified labels to track billing usage. */
6262
+ labels?: Record<string, string>;
6234
6263
  }
6235
6264
 
6236
6265
  /** The parameters for segmenting an image. */
@@ -6274,8 +6303,7 @@ export declare enum SegmentMode {
6274
6303
 
6275
6304
  /** Parameters for sending a message within a chat session.
6276
6305
 
6277
- These parameters are used with the `chat.sendMessage()` method.
6278
- */
6306
+ These parameters are used with the `chat.sendMessage()` method. */
6279
6307
  export declare interface SendMessageParameters {
6280
6308
  /** The message to send to the model.
6281
6309
 
@@ -6421,8 +6449,7 @@ export declare class Session {
6421
6449
  /** Configuration of session resumption mechanism.
6422
6450
 
6423
6451
  Included in `LiveConnectConfig.session_resumption`. If included server
6424
- will send `LiveServerSessionResumptionUpdate` messages.
6425
- */
6452
+ will send `LiveServerSessionResumptionUpdate` messages. */
6426
6453
  export declare interface SessionResumptionConfig {
6427
6454
  /** Session resumption handle of previous session (session to restore).
6428
6455
 
@@ -6469,8 +6496,7 @@ export declare class SingleEmbedContentResponse {
6469
6496
  Context window will always be cut at start of USER role turn. System
6470
6497
  instructions and `BidiGenerateContentSetup.prefix_turns` will not be
6471
6498
  subject to the sliding window mechanism, they will always stay at the
6472
- beginning of context window.
6473
- */
6499
+ beginning of context window. */
6474
6500
  export declare interface SlidingWindow {
6475
6501
  /** Session reduction target -- how many tokens we should keep. Window shortening operation has some latency costs, so we should avoid running it on every turn. Should be < trigger_tokens. If not set, trigger_tokens/2 is assumed. */
6476
6502
  targetTokens?: string;
@@ -6530,8 +6556,7 @@ export declare interface StyleReferenceConfig {
6530
6556
  additionally optional config parameters for the style reference image.
6531
6557
 
6532
6558
  A raw reference image can also be provided as a destination for the style to
6533
- be applied to.
6534
- */
6559
+ be applied to. */
6535
6560
  export declare class StyleReferenceImage {
6536
6561
  /** The reference image for the editing operation. */
6537
6562
  referenceImage?: Image_2;
@@ -6559,8 +6584,7 @@ export declare interface SubjectReferenceConfig {
6559
6584
  additionally optional config parameters for the subject reference image.
6560
6585
 
6561
6586
  A raw reference image can also be provided as a destination for the subject to
6562
- be applied to.
6563
- */
6587
+ be applied to. */
6564
6588
  export declare class SubjectReferenceImage {
6565
6589
  /** The reference image for the editing operation. */
6566
6590
  referenceImage?: Image_2;
@@ -6827,7 +6851,7 @@ export declare interface Tool {
6827
6851
  /** Optional. Tool to support the model interacting directly with the
6828
6852
  computer. If enabled, it automatically populates computer-use specific
6829
6853
  Function Declarations. */
6830
- computerUse?: ToolComputerUse;
6854
+ computerUse?: ComputerUse;
6831
6855
  /** Optional. CodeExecution tool type. Enables the model to execute code as part of generation. */
6832
6856
  codeExecution?: ToolCodeExecution;
6833
6857
  }
@@ -6836,22 +6860,9 @@ export declare interface Tool {
6836
6860
  export declare interface ToolCodeExecution {
6837
6861
  }
6838
6862
 
6839
- /** Tool to support computer use. */
6840
- export declare interface ToolComputerUse {
6841
- /** Required. The environment being operated. */
6842
- environment?: Environment;
6843
- /** By default, predefined functions are included in the final model call.
6844
- Some of them can be explicitly excluded from being automatically included.
6845
- This can serve two purposes:
6846
- 1. Using a more restricted / different action space.
6847
- 2. Improving the definitions / instructions of predefined functions. */
6848
- excludedPredefinedFunctions?: string[];
6849
- }
6850
-
6851
6863
  /** Tool config.
6852
6864
 
6853
- This config is shared for all tools provided in the request.
6854
- */
6865
+ This config is shared for all tools provided in the request. */
6855
6866
  export declare interface ToolConfig {
6856
6867
  /** Optional. Function calling config. */
6857
6868
  functionCallingConfig?: FunctionCallingConfig;
@@ -7002,6 +7013,8 @@ export declare interface TuningJob {
7002
7013
  serviceAccount?: string;
7003
7014
  /** Optional. The display name of the TunedModel. The name can be up to 128 characters long and can consist of any UTF-8 characters. */
7004
7015
  tunedModelDisplayName?: string;
7016
+ /** Tuning Spec for Veo Tuning. */
7017
+ veoTuningSpec?: VeoTuningSpec;
7005
7018
  }
7006
7019
 
7007
7020
  /** Tuning mode. */
@@ -7085,6 +7098,22 @@ declare class Tunings extends BaseModule {
7085
7098
  private tuneMldevInternal;
7086
7099
  }
7087
7100
 
7101
+ /** Optional. The tuning task. Either I2V or T2V. */
7102
+ export declare enum TuningTask {
7103
+ /**
7104
+ * Default value. This value is unused.
7105
+ */
7106
+ TUNING_TASK_UNSPECIFIED = "TUNING_TASK_UNSPECIFIED",
7107
+ /**
7108
+ * Tuning task for image to video.
7109
+ */
7110
+ TUNING_TASK_I2V = "TUNING_TASK_I2V",
7111
+ /**
7112
+ * Tuning task for text to video.
7113
+ */
7114
+ TUNING_TASK_T2V = "TUNING_TASK_T2V"
7115
+ }
7116
+
7088
7117
  export declare interface TuningValidationDataset {
7089
7118
  /** GCS URI of the file containing validation dataset in JSONL format. */
7090
7119
  gcsUri?: string;
@@ -7166,6 +7195,8 @@ export declare enum Type {
7166
7195
 
7167
7196
  declare namespace types {
7168
7197
  export {
7198
+ createFunctionResponsePartFromBase64,
7199
+ createFunctionResponsePartFromUri,
7169
7200
  createPartFromUri,
7170
7201
  createPartFromText,
7171
7202
  createPartFromFunctionCall,
@@ -7195,6 +7226,7 @@ declare namespace types {
7195
7226
  JobState,
7196
7227
  TuningMode,
7197
7228
  AdapterSize,
7229
+ TuningTask,
7198
7230
  FeatureSelectionPreference,
7199
7231
  Behavior,
7200
7232
  DynamicRetrievalConfigMode,
@@ -7253,7 +7285,7 @@ declare namespace types {
7253
7285
  AuthConfig,
7254
7286
  GoogleMaps,
7255
7287
  UrlContext,
7256
- ToolComputerUse,
7288
+ ComputerUse,
7257
7289
  ApiAuthApiKeyConfig,
7258
7290
  ApiAuth,
7259
7291
  ExternalApiElasticSearchParams,
@@ -7283,6 +7315,7 @@ declare namespace types {
7283
7315
  SpeechConfig,
7284
7316
  AutomaticFunctionCallingConfig,
7285
7317
  ThinkingConfig,
7318
+ ImageConfig,
7286
7319
  GenerationConfigRoutingConfigAutoRoutingMode,
7287
7320
  GenerationConfigRoutingConfigManualRoutingMode,
7288
7321
  GenerationConfigRoutingConfig,
@@ -7405,6 +7438,8 @@ declare namespace types {
7405
7438
  TuningDataStats,
7406
7439
  EncryptionSpec,
7407
7440
  PartnerModelTuningSpec,
7441
+ VeoHyperParameters,
7442
+ VeoTuningSpec,
7408
7443
  TuningJob,
7409
7444
  ListTuningJobsConfig,
7410
7445
  ListTuningJobsParameters,
@@ -7661,8 +7696,7 @@ export declare interface UploadFileParameters {
7661
7696
 
7662
7697
  For more information on this configuration, refer to
7663
7698
  the `Imagen API reference documentation
7664
- <https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/imagen-api>`_.
7665
- */
7699
+ <https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/imagen-api>`_. */
7666
7700
  export declare interface UpscaleImageConfig {
7667
7701
  /** Used to override HTTP request options. */
7668
7702
  httpOptions?: HttpOptions;
@@ -7692,6 +7726,8 @@ export declare interface UpscaleImageConfig {
7692
7726
  output image will have be more different from the input image, but
7693
7727
  with finer details and less noise. */
7694
7728
  imagePreservationFactor?: number;
7729
+ /** User specified labels to track billing usage. */
7730
+ labels?: Record<string, string>;
7695
7731
  }
7696
7732
 
7697
7733
  /** User-facing config UpscaleImageParameters. */
@@ -7782,6 +7818,26 @@ export declare interface UsageMetadata {
7782
7818
  trafficType?: TrafficType;
7783
7819
  }
7784
7820
 
7821
+ /** Hyperparameters for Veo. */
7822
+ export declare interface VeoHyperParameters {
7823
+ /** Optional. Number of complete passes the model makes over the entire training dataset during training. */
7824
+ epochCount?: string;
7825
+ /** Optional. Multiplier for adjusting the default learning rate. */
7826
+ learningRateMultiplier?: number;
7827
+ /** Optional. The tuning task. Either I2V or T2V. */
7828
+ tuningTask?: TuningTask;
7829
+ }
7830
+
7831
+ /** Tuning Spec for Veo Model Tuning. */
7832
+ export declare interface VeoTuningSpec {
7833
+ /** Optional. Hyperparameters for Veo. */
7834
+ hyperParameters?: VeoHyperParameters;
7835
+ /** Required. Training dataset used for tuning. The dataset can be specified as either a Cloud Storage path to a JSONL file or as the resource name of a Vertex Multimodal Dataset. */
7836
+ trainingDatasetUri?: string;
7837
+ /** Optional. Validation dataset used for tuning. The dataset can be specified as either a Cloud Storage path to a JSONL file or as the resource name of a Vertex Multimodal Dataset. */
7838
+ validationDatasetUri?: string;
7839
+ }
7840
+
7785
7841
  /** Retrieve from Vertex AI Search datastore or engine for grounding. datastore and engine are mutually exclusive. See https://cloud.google.com/products/agent-builder */
7786
7842
  export declare interface VertexAISearch {
7787
7843
  /** Specifications that define the specific DataStores to be searched, along with configurations for those data stores. This is only considered for Engines with multiple data stores. It should only be set if engine is used. */