@google/genai 1.13.0 → 1.14.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 +170 -47
- package/dist/index.cjs +244 -81
- package/dist/index.mjs +245 -82
- package/dist/index.mjs.map +1 -1
- package/dist/node/index.cjs +244 -81
- package/dist/node/index.mjs +245 -82
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/node.d.ts +170 -47
- package/dist/web/index.mjs +245 -82
- package/dist/web/index.mjs.map +1 -1
- package/dist/web/web.d.ts +170 -47
- package/package.json +1 -1
package/dist/node/node.d.ts
CHANGED
|
@@ -1425,6 +1425,8 @@ export declare interface CreateTuningJobConfig {
|
|
|
1425
1425
|
learningRateMultiplier?: number;
|
|
1426
1426
|
/** If set to true, disable intermediate checkpoints for SFT and only the last checkpoint will be exported. Otherwise, enable intermediate checkpoints for SFT. */
|
|
1427
1427
|
exportLastCheckpointOnly?: boolean;
|
|
1428
|
+
/** The optional checkpoint id of the pre-tuned model to use for tuning, if applicable. */
|
|
1429
|
+
preTunedModelCheckpointId?: string;
|
|
1428
1430
|
/** Adapter size for tuning. */
|
|
1429
1431
|
adapterSize?: AdapterSize;
|
|
1430
1432
|
/** The batch size hyperparameter for tuning. If not set, a default of 4 or 16 will be used based on the number of training examples. */
|
|
@@ -1435,7 +1437,7 @@ export declare interface CreateTuningJobConfig {
|
|
|
1435
1437
|
|
|
1436
1438
|
/** Supervised fine-tuning job creation parameters - optional fields. */
|
|
1437
1439
|
export declare interface CreateTuningJobParameters {
|
|
1438
|
-
/** The base model that is being tuned, e.g., "gemini-
|
|
1440
|
+
/** The base model that is being tuned, e.g., "gemini-2.5-flash". */
|
|
1439
1441
|
baseModel: string;
|
|
1440
1442
|
/** Cloud Storage path to file containing training dataset for tuning. The dataset must be formatted as a JSONL file. */
|
|
1441
1443
|
trainingDataset: TuningDataset;
|
|
@@ -1443,6 +1445,18 @@ export declare interface CreateTuningJobParameters {
|
|
|
1443
1445
|
config?: CreateTuningJobConfig;
|
|
1444
1446
|
}
|
|
1445
1447
|
|
|
1448
|
+
/** Supervised fine-tuning job creation parameters - optional fields. */
|
|
1449
|
+
export declare interface CreateTuningJobParametersPrivate {
|
|
1450
|
+
/** The base model that is being tuned, e.g., "gemini-2.5-flash". */
|
|
1451
|
+
baseModel?: string;
|
|
1452
|
+
/** The PreTunedModel that is being tuned. */
|
|
1453
|
+
preTunedModel?: PreTunedModel;
|
|
1454
|
+
/** Cloud Storage path to file containing training dataset for tuning. The dataset must be formatted as a JSONL file. */
|
|
1455
|
+
trainingDataset: TuningDataset;
|
|
1456
|
+
/** Configuration for the tuning job. */
|
|
1457
|
+
config?: CreateTuningJobConfig;
|
|
1458
|
+
}
|
|
1459
|
+
|
|
1446
1460
|
/**
|
|
1447
1461
|
* Creates a `Content` object with a user role from a `PartListUnion` object or `string`.
|
|
1448
1462
|
*/
|
|
@@ -1612,34 +1626,6 @@ export declare interface DistillationDataStats {
|
|
|
1612
1626
|
trainingDatasetStats?: DatasetStats;
|
|
1613
1627
|
}
|
|
1614
1628
|
|
|
1615
|
-
/** Hyperparameters for Distillation. */
|
|
1616
|
-
export declare interface DistillationHyperParameters {
|
|
1617
|
-
/** Optional. Adapter size for distillation. */
|
|
1618
|
-
adapterSize?: AdapterSize;
|
|
1619
|
-
/** Optional. Number of complete passes the model makes over the entire training dataset during training. */
|
|
1620
|
-
epochCount?: string;
|
|
1621
|
-
/** Optional. Multiplier for adjusting the default learning rate. */
|
|
1622
|
-
learningRateMultiplier?: number;
|
|
1623
|
-
}
|
|
1624
|
-
|
|
1625
|
-
/** Tuning Spec for Distillation. */
|
|
1626
|
-
export declare interface DistillationSpec {
|
|
1627
|
-
/** The base teacher model that is being distilled. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models). */
|
|
1628
|
-
baseTeacherModel?: string;
|
|
1629
|
-
/** Optional. Hyperparameters for Distillation. */
|
|
1630
|
-
hyperParameters?: DistillationHyperParameters;
|
|
1631
|
-
/** Deprecated. A path in a Cloud Storage bucket, which will be treated as the root output directory of the distillation pipeline. It is used by the system to generate the paths of output artifacts. */
|
|
1632
|
-
pipelineRootDirectory?: string;
|
|
1633
|
-
/** The student model that is being tuned, e.g., "google/gemma-2b-1.1-it". Deprecated. Use base_model instead. */
|
|
1634
|
-
studentModel?: string;
|
|
1635
|
-
/** Deprecated. Cloud Storage path to file containing training dataset for tuning. The dataset must be formatted as a JSONL file. */
|
|
1636
|
-
trainingDatasetUri?: string;
|
|
1637
|
-
/** The resource name of the Tuned teacher model. Format: `projects/{project}/locations/{location}/models/{model}`. */
|
|
1638
|
-
tunedTeacherModelSource?: string;
|
|
1639
|
-
/** Optional. Cloud Storage path to file containing validation dataset for tuning. The dataset must be formatted as a JSONL file. */
|
|
1640
|
-
validationDatasetUri?: string;
|
|
1641
|
-
}
|
|
1642
|
-
|
|
1643
1629
|
export declare type DownloadableFileUnion = string | File_2 | GeneratedVideo | Video;
|
|
1644
1630
|
|
|
1645
1631
|
declare interface Downloader {
|
|
@@ -1895,9 +1881,11 @@ export declare enum EndSensitivity {
|
|
|
1895
1881
|
|
|
1896
1882
|
/** Tool to search public web data, powered by Vertex AI Search and Sec4 compliance. */
|
|
1897
1883
|
export declare interface EnterpriseWebSearch {
|
|
1884
|
+
/** Optional. List of domains to be excluded from the search results. The default limit is 2000 domains. */
|
|
1885
|
+
excludeDomains?: string[];
|
|
1898
1886
|
}
|
|
1899
1887
|
|
|
1900
|
-
/**
|
|
1888
|
+
/** The environment being operated. */
|
|
1901
1889
|
export declare enum Environment {
|
|
1902
1890
|
/**
|
|
1903
1891
|
* Defaults to browser.
|
|
@@ -2331,6 +2319,22 @@ export declare enum FunctionResponseScheduling {
|
|
|
2331
2319
|
INTERRUPT = "INTERRUPT"
|
|
2332
2320
|
}
|
|
2333
2321
|
|
|
2322
|
+
/** Input example for preference optimization. */
|
|
2323
|
+
export declare interface GeminiPreferenceExample {
|
|
2324
|
+
/** List of completions for a given prompt. */
|
|
2325
|
+
completions?: GeminiPreferenceExampleCompletion[];
|
|
2326
|
+
/** Multi-turn contents that represents the Prompt. */
|
|
2327
|
+
contents?: Content[];
|
|
2328
|
+
}
|
|
2329
|
+
|
|
2330
|
+
/** Completion and its preference score. */
|
|
2331
|
+
export declare interface GeminiPreferenceExampleCompletion {
|
|
2332
|
+
/** Single turn completion for the given prompt. */
|
|
2333
|
+
completion?: Content;
|
|
2334
|
+
/** The score for the given completion. */
|
|
2335
|
+
score?: number;
|
|
2336
|
+
}
|
|
2337
|
+
|
|
2334
2338
|
/** Optional model configuration parameters.
|
|
2335
2339
|
|
|
2336
2340
|
For more information, see `Content generation parameters
|
|
@@ -2960,7 +2964,7 @@ export declare interface GenerationConfigRoutingConfigManualRoutingMode {
|
|
|
2960
2964
|
export declare interface GenerationConfigThinkingConfig {
|
|
2961
2965
|
/** Optional. Indicates whether to include thoughts in the response. If true, thoughts are returned only when available. */
|
|
2962
2966
|
includeThoughts?: boolean;
|
|
2963
|
-
/** Optional. Indicates the thinking budget in tokens.
|
|
2967
|
+
/** Optional. Indicates the thinking budget in tokens. */
|
|
2964
2968
|
thinkingBudget?: number;
|
|
2965
2969
|
}
|
|
2966
2970
|
|
|
@@ -3236,6 +3240,9 @@ export declare interface GoogleSearch {
|
|
|
3236
3240
|
If customers set a start time, they must set an end time (and vice versa).
|
|
3237
3241
|
*/
|
|
3238
3242
|
timeRangeFilter?: Interval;
|
|
3243
|
+
/** Optional. List of domains to be excluded from the search results.
|
|
3244
|
+
The default limit is 2000 domains. */
|
|
3245
|
+
excludeDomains?: string[];
|
|
3239
3246
|
}
|
|
3240
3247
|
|
|
3241
3248
|
/** Tool to retrieve public web data for grounding, powered by Google. */
|
|
@@ -3256,14 +3263,64 @@ export declare interface GoogleTypeDate {
|
|
|
3256
3263
|
|
|
3257
3264
|
/** Grounding chunk. */
|
|
3258
3265
|
export declare interface GroundingChunk {
|
|
3266
|
+
/** Grounding chunk from Google Maps. */
|
|
3267
|
+
maps?: GroundingChunkMaps;
|
|
3259
3268
|
/** Grounding chunk from context retrieved by the retrieval tools. */
|
|
3260
3269
|
retrievedContext?: GroundingChunkRetrievedContext;
|
|
3261
3270
|
/** Grounding chunk from the web. */
|
|
3262
3271
|
web?: GroundingChunkWeb;
|
|
3263
3272
|
}
|
|
3264
3273
|
|
|
3274
|
+
/** Chunk from Google Maps. */
|
|
3275
|
+
export declare interface GroundingChunkMaps {
|
|
3276
|
+
/** Sources used to generate the place answer. This includes review snippets and photos that were used to generate the answer, as well as uris to flag content. */
|
|
3277
|
+
placeAnswerSources?: GroundingChunkMapsPlaceAnswerSources;
|
|
3278
|
+
/** This Place's resource name, in `places/{place_id}` format. Can be used to look up the Place. */
|
|
3279
|
+
placeId?: string;
|
|
3280
|
+
/** Text of the chunk. */
|
|
3281
|
+
text?: string;
|
|
3282
|
+
/** Title of the chunk. */
|
|
3283
|
+
title?: string;
|
|
3284
|
+
/** URI reference of the chunk. */
|
|
3285
|
+
uri?: string;
|
|
3286
|
+
}
|
|
3287
|
+
|
|
3288
|
+
/** Sources used to generate the place answer. */
|
|
3289
|
+
export declare interface GroundingChunkMapsPlaceAnswerSources {
|
|
3290
|
+
/** A link where users can flag a problem with the generated answer. */
|
|
3291
|
+
flagContentUri?: string;
|
|
3292
|
+
/** Snippets of reviews that are used to generate the answer. */
|
|
3293
|
+
reviewSnippets?: GroundingChunkMapsPlaceAnswerSourcesReviewSnippet[];
|
|
3294
|
+
}
|
|
3295
|
+
|
|
3296
|
+
/** Author attribution for a photo or review. */
|
|
3297
|
+
export declare interface GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution {
|
|
3298
|
+
/** Name of the author of the Photo or Review. */
|
|
3299
|
+
displayName?: string;
|
|
3300
|
+
/** Profile photo URI of the author of the Photo or Review. */
|
|
3301
|
+
photoUri?: string;
|
|
3302
|
+
/** URI of the author of the Photo or Review. */
|
|
3303
|
+
uri?: string;
|
|
3304
|
+
}
|
|
3305
|
+
|
|
3306
|
+
/** Encapsulates a review snippet. */
|
|
3307
|
+
export declare interface GroundingChunkMapsPlaceAnswerSourcesReviewSnippet {
|
|
3308
|
+
/** This review's author. */
|
|
3309
|
+
authorAttribution?: GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution;
|
|
3310
|
+
/** A link where users can flag a problem with the review. */
|
|
3311
|
+
flagContentUri?: string;
|
|
3312
|
+
/** A link to show the review on Google Maps. */
|
|
3313
|
+
googleMapsUri?: string;
|
|
3314
|
+
/** A string of formatted recent time, expressing the review time relative to the current time in a form appropriate for the language and country. */
|
|
3315
|
+
relativePublishTimeDescription?: string;
|
|
3316
|
+
/** A reference representing this place review which may be used to look up this place review again. */
|
|
3317
|
+
review?: string;
|
|
3318
|
+
}
|
|
3319
|
+
|
|
3265
3320
|
/** Chunk from context retrieved by the retrieval tools. */
|
|
3266
3321
|
export declare interface GroundingChunkRetrievedContext {
|
|
3322
|
+
/** Output only. The full document name for the referenced Vertex AI Search document. */
|
|
3323
|
+
documentName?: string;
|
|
3267
3324
|
/** Additional context for the RAG retrieval result. This is only populated when using the RAG retrieval tool. */
|
|
3268
3325
|
ragChunk?: RagChunk;
|
|
3269
3326
|
/** Text of the attribution. */
|
|
@@ -3286,6 +3343,8 @@ export declare interface GroundingChunkWeb {
|
|
|
3286
3343
|
|
|
3287
3344
|
/** Metadata returned to client when grounding is enabled. */
|
|
3288
3345
|
export declare interface GroundingMetadata {
|
|
3346
|
+
/** Optional. Output only. Resource name of the Google Maps widget context token to be used with the PlacesContextElement widget to render contextual data. This is populated only for Google Maps grounding. */
|
|
3347
|
+
googleMapsWidgetContextToken?: string;
|
|
3289
3348
|
/** List of supporting references retrieved from specified grounding source. */
|
|
3290
3349
|
groundingChunks?: GroundingChunk[];
|
|
3291
3350
|
/** Optional. List of grounding support. */
|
|
@@ -5484,6 +5543,36 @@ export declare interface PrebuiltVoiceConfig {
|
|
|
5484
5543
|
voiceName?: string;
|
|
5485
5544
|
}
|
|
5486
5545
|
|
|
5546
|
+
/** Statistics computed for datasets used for preference optimization. */
|
|
5547
|
+
export declare interface PreferenceOptimizationDataStats {
|
|
5548
|
+
/** Output only. Dataset distributions for scores variance per example. */
|
|
5549
|
+
scoreVariancePerExampleDistribution?: DatasetDistribution;
|
|
5550
|
+
/** Output only. Dataset distributions for scores. */
|
|
5551
|
+
scoresDistribution?: DatasetDistribution;
|
|
5552
|
+
/** Output only. Number of billable tokens in the tuning dataset. */
|
|
5553
|
+
totalBillableTokenCount?: string;
|
|
5554
|
+
/** Output only. Number of examples in the tuning dataset. */
|
|
5555
|
+
tuningDatasetExampleCount?: string;
|
|
5556
|
+
/** Output only. Number of tuning steps for this Tuning Job. */
|
|
5557
|
+
tuningStepCount?: string;
|
|
5558
|
+
/** Output only. Sample user examples in the training dataset. */
|
|
5559
|
+
userDatasetExamples?: GeminiPreferenceExample[];
|
|
5560
|
+
/** Output only. Dataset distributions for the user input tokens. */
|
|
5561
|
+
userInputTokenDistribution?: DatasetDistribution;
|
|
5562
|
+
/** Output only. Dataset distributions for the user output tokens. */
|
|
5563
|
+
userOutputTokenDistribution?: DatasetDistribution;
|
|
5564
|
+
}
|
|
5565
|
+
|
|
5566
|
+
/** A pre-tuned model for continuous tuning. */
|
|
5567
|
+
export declare interface PreTunedModel {
|
|
5568
|
+
/** Output only. The name of the base model this PreTunedModel was tuned from. */
|
|
5569
|
+
baseModel?: string;
|
|
5570
|
+
/** Optional. The source checkpoint id. If not specified, the default checkpoint will be used. */
|
|
5571
|
+
checkpointId?: string;
|
|
5572
|
+
/** The resource name of the Model. E.g., a model resource name with a specified version id or alias: `projects/{project}/locations/{location}/models/{model}@{version_id}` `projects/{project}/locations/{location}/models/{model}@{alias}` Or, omit the version id to use the default version: `projects/{project}/locations/{location}/models/{model}` */
|
|
5573
|
+
tunedModelName?: string;
|
|
5574
|
+
}
|
|
5575
|
+
|
|
5487
5576
|
/** Config for proactivity features. */
|
|
5488
5577
|
export declare interface ProactivityConfig {
|
|
5489
5578
|
/** If enabled, the model can reject responding to the last prompt. For
|
|
@@ -6216,9 +6305,13 @@ export declare enum SubjectReferenceType {
|
|
|
6216
6305
|
export declare interface SupervisedHyperParameters {
|
|
6217
6306
|
/** Optional. Adapter size for tuning. */
|
|
6218
6307
|
adapterSize?: AdapterSize;
|
|
6308
|
+
/** Optional. Batch size for tuning. This feature is only available for open source models. */
|
|
6309
|
+
batchSize?: string;
|
|
6219
6310
|
/** Optional. Number of complete passes the model makes over the entire training dataset during training. */
|
|
6220
6311
|
epochCount?: string;
|
|
6221
|
-
/** Optional.
|
|
6312
|
+
/** Optional. Learning rate for tuning. Mutually exclusive with `learning_rate_multiplier`. This feature is only available for open source models. */
|
|
6313
|
+
learningRate?: number;
|
|
6314
|
+
/** Optional. Multiplier for adjusting the default learning rate. Mutually exclusive with `learning_rate`. This feature is only available for 1P models. */
|
|
6222
6315
|
learningRateMultiplier?: number;
|
|
6223
6316
|
}
|
|
6224
6317
|
|
|
@@ -6290,6 +6383,8 @@ export declare interface SupervisedTuningSpec {
|
|
|
6290
6383
|
hyperParameters?: SupervisedHyperParameters;
|
|
6291
6384
|
/** 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. */
|
|
6292
6385
|
trainingDatasetUri?: string;
|
|
6386
|
+
/** Tuning mode. */
|
|
6387
|
+
tuningMode?: TuningMode;
|
|
6293
6388
|
/** 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. */
|
|
6294
6389
|
validationDatasetUri?: string;
|
|
6295
6390
|
}
|
|
@@ -6449,10 +6544,12 @@ export declare interface Tool {
|
|
|
6449
6544
|
googleMaps?: GoogleMaps;
|
|
6450
6545
|
/** Optional. Tool to support URL context retrieval. */
|
|
6451
6546
|
urlContext?: UrlContext;
|
|
6547
|
+
/** Optional. Tool to support the model interacting directly with the
|
|
6548
|
+
computer. If enabled, it automatically populates computer-use specific
|
|
6549
|
+
Function Declarations. */
|
|
6550
|
+
computerUse?: ToolComputerUse;
|
|
6452
6551
|
/** Optional. CodeExecution tool type. Enables the model to execute code as part of generation. */
|
|
6453
6552
|
codeExecution?: ToolCodeExecution;
|
|
6454
|
-
/** Optional. Tool to support the model interacting directly with the computer. If enabled, it automatically populates computer-use specific Function Declarations. */
|
|
6455
|
-
computerUse?: ToolComputerUse;
|
|
6456
6553
|
}
|
|
6457
6554
|
|
|
6458
6555
|
/** 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. */
|
|
@@ -6507,7 +6604,7 @@ export declare interface Transcription {
|
|
|
6507
6604
|
}
|
|
6508
6605
|
|
|
6509
6606
|
export declare interface TunedModel {
|
|
6510
|
-
/** Output only. The resource name of the TunedModel. Format: `projects/{project}/locations/{location}/models/{model}
|
|
6607
|
+
/** Output only. The resource name of the TunedModel. Format: `projects/{project}/locations/{location}/models/{model}@{version_id}` When tuning from a base model, the version_id will be 1. For continuous tuning, the version id will be incremented by 1 from the last version id in the parent model. E.g., `projects/{project}/locations/{location}/models/{model}@{last_version_id + 1}` */
|
|
6511
6608
|
model?: string;
|
|
6512
6609
|
/** Output only. A resource name of an Endpoint. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`. */
|
|
6513
6610
|
endpoint?: string;
|
|
@@ -6558,6 +6655,8 @@ export declare interface TuningDataset {
|
|
|
6558
6655
|
export declare interface TuningDataStats {
|
|
6559
6656
|
/** Output only. Statistics for distillation. */
|
|
6560
6657
|
distillationDataStats?: DistillationDataStats;
|
|
6658
|
+
/** Output only. Statistics for preference optimization. */
|
|
6659
|
+
preferenceOptimizationDataStats?: PreferenceOptimizationDataStats;
|
|
6561
6660
|
/** The SFT Tuning data stats. */
|
|
6562
6661
|
supervisedTuningDataStats?: SupervisedTuningDataStats;
|
|
6563
6662
|
}
|
|
@@ -6593,6 +6692,8 @@ export declare interface TuningJob {
|
|
|
6593
6692
|
baseModel?: string;
|
|
6594
6693
|
/** Output only. The tuned model resources associated with this TuningJob. */
|
|
6595
6694
|
tunedModel?: TunedModel;
|
|
6695
|
+
/** The pre-tuned model for continuous tuning. */
|
|
6696
|
+
preTunedModel?: PreTunedModel;
|
|
6596
6697
|
/** Tuning Spec for Supervised Fine Tuning. */
|
|
6597
6698
|
supervisedTuningSpec?: SupervisedTuningSpec;
|
|
6598
6699
|
/** Output only. The tuning data statistics associated with this TuningJob. */
|
|
@@ -6601,24 +6702,38 @@ export declare interface TuningJob {
|
|
|
6601
6702
|
encryptionSpec?: EncryptionSpec;
|
|
6602
6703
|
/** Tuning Spec for open sourced and third party Partner models. */
|
|
6603
6704
|
partnerModelTuningSpec?: PartnerModelTuningSpec;
|
|
6604
|
-
/**
|
|
6605
|
-
|
|
6705
|
+
/** Optional. The user-provided path to custom model weights. Set this field to tune a custom model. The path must be a Cloud Storage directory that contains the model weights in .safetensors format along with associated model metadata files. If this field is set, the base_model field must still be set to indicate which base model the custom model is derived from. This feature is only available for open source models. */
|
|
6706
|
+
customBaseModel?: string;
|
|
6606
6707
|
/** Output only. The Experiment associated with this TuningJob. */
|
|
6607
6708
|
experiment?: string;
|
|
6608
6709
|
/** Optional. The labels with user-defined metadata to organize TuningJob and generated resources such as Model and Endpoint. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels. */
|
|
6609
6710
|
labels?: Record<string, string>;
|
|
6711
|
+
/** Optional. Cloud Storage path to the directory where tuning job outputs are written to. This field is only available and required for open source models. */
|
|
6712
|
+
outputUri?: string;
|
|
6610
6713
|
/** Output only. The resource name of the PipelineJob associated with the TuningJob. Format: `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`. */
|
|
6611
6714
|
pipelineJob?: string;
|
|
6612
|
-
/** Output only. Reserved for future use. */
|
|
6613
|
-
satisfiesPzi?: boolean;
|
|
6614
|
-
/** Output only. Reserved for future use. */
|
|
6615
|
-
satisfiesPzs?: boolean;
|
|
6616
6715
|
/** The service account that the tuningJob workload runs as. If not specified, the Vertex AI Secure Fine-Tuned Service Agent in the project will be used. See https://cloud.google.com/iam/docs/service-agents#vertex-ai-secure-fine-tuning-service-agent Users starting the pipeline must have the `iam.serviceAccounts.actAs` permission on this service account. */
|
|
6617
6716
|
serviceAccount?: string;
|
|
6618
6717
|
/** Optional. The display name of the TunedModel. The name can be up to 128 characters long and can consist of any UTF-8 characters. */
|
|
6619
6718
|
tunedModelDisplayName?: string;
|
|
6620
6719
|
}
|
|
6621
6720
|
|
|
6721
|
+
/** Tuning mode. */
|
|
6722
|
+
export declare enum TuningMode {
|
|
6723
|
+
/**
|
|
6724
|
+
* Tuning mode is unspecified.
|
|
6725
|
+
*/
|
|
6726
|
+
TUNING_MODE_UNSPECIFIED = "TUNING_MODE_UNSPECIFIED",
|
|
6727
|
+
/**
|
|
6728
|
+
* Full fine-tuning mode.
|
|
6729
|
+
*/
|
|
6730
|
+
TUNING_MODE_FULL = "TUNING_MODE_FULL",
|
|
6731
|
+
/**
|
|
6732
|
+
* PEFT adapter tuning mode.
|
|
6733
|
+
*/
|
|
6734
|
+
TUNING_MODE_PEFT_ADAPTER = "TUNING_MODE_PEFT_ADAPTER"
|
|
6735
|
+
}
|
|
6736
|
+
|
|
6622
6737
|
/** A long-running operation. */
|
|
6623
6738
|
export declare interface TuningOperation {
|
|
6624
6739
|
/** Used to retain the full HTTP response. */
|
|
@@ -6751,7 +6866,6 @@ declare namespace types {
|
|
|
6751
6866
|
Mode,
|
|
6752
6867
|
AuthType,
|
|
6753
6868
|
ApiSpec,
|
|
6754
|
-
Environment,
|
|
6755
6869
|
UrlRetrievalStatus,
|
|
6756
6870
|
FinishReason,
|
|
6757
6871
|
HarmProbability,
|
|
@@ -6761,10 +6875,12 @@ declare namespace types {
|
|
|
6761
6875
|
Modality,
|
|
6762
6876
|
MediaResolution,
|
|
6763
6877
|
JobState,
|
|
6878
|
+
TuningMode,
|
|
6764
6879
|
AdapterSize,
|
|
6765
6880
|
FeatureSelectionPreference,
|
|
6766
6881
|
Behavior,
|
|
6767
6882
|
DynamicRetrievalConfigMode,
|
|
6883
|
+
Environment,
|
|
6768
6884
|
FunctionCallingConfigMode,
|
|
6769
6885
|
SafetyFilterLevel,
|
|
6770
6886
|
PersonGeneration,
|
|
@@ -6812,6 +6928,7 @@ declare namespace types {
|
|
|
6812
6928
|
AuthConfig,
|
|
6813
6929
|
GoogleMaps,
|
|
6814
6930
|
UrlContext,
|
|
6931
|
+
ToolComputerUse,
|
|
6815
6932
|
ApiAuthApiKeyConfig,
|
|
6816
6933
|
ApiAuth,
|
|
6817
6934
|
ExternalApiElasticSearchParams,
|
|
@@ -6829,7 +6946,6 @@ declare namespace types {
|
|
|
6829
6946
|
VertexRagStore,
|
|
6830
6947
|
Retrieval,
|
|
6831
6948
|
ToolCodeExecution,
|
|
6832
|
-
ToolComputerUse,
|
|
6833
6949
|
Tool,
|
|
6834
6950
|
FunctionCallingConfig,
|
|
6835
6951
|
LatLng,
|
|
@@ -6854,6 +6970,10 @@ declare namespace types {
|
|
|
6854
6970
|
CitationMetadata,
|
|
6855
6971
|
UrlMetadata,
|
|
6856
6972
|
UrlContextMetadata,
|
|
6973
|
+
GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution,
|
|
6974
|
+
GroundingChunkMapsPlaceAnswerSourcesReviewSnippet,
|
|
6975
|
+
GroundingChunkMapsPlaceAnswerSources,
|
|
6976
|
+
GroundingChunkMaps,
|
|
6857
6977
|
RagChunkPageSpan,
|
|
6858
6978
|
RagChunk,
|
|
6859
6979
|
GroundingChunkRetrievedContext,
|
|
@@ -6932,20 +7052,22 @@ declare namespace types {
|
|
|
6932
7052
|
TunedModelCheckpoint,
|
|
6933
7053
|
TunedModel,
|
|
6934
7054
|
GoogleRpcStatus,
|
|
7055
|
+
PreTunedModel,
|
|
6935
7056
|
SupervisedHyperParameters,
|
|
6936
7057
|
SupervisedTuningSpec,
|
|
6937
7058
|
DatasetDistributionDistributionBucket,
|
|
6938
7059
|
DatasetDistribution,
|
|
6939
7060
|
DatasetStats,
|
|
6940
7061
|
DistillationDataStats,
|
|
7062
|
+
GeminiPreferenceExampleCompletion,
|
|
7063
|
+
GeminiPreferenceExample,
|
|
7064
|
+
PreferenceOptimizationDataStats,
|
|
6941
7065
|
SupervisedTuningDatasetDistributionDatasetBucket,
|
|
6942
7066
|
SupervisedTuningDatasetDistribution,
|
|
6943
7067
|
SupervisedTuningDataStats,
|
|
6944
7068
|
TuningDataStats,
|
|
6945
7069
|
EncryptionSpec,
|
|
6946
7070
|
PartnerModelTuningSpec,
|
|
6947
|
-
DistillationHyperParameters,
|
|
6948
|
-
DistillationSpec,
|
|
6949
7071
|
TuningJob,
|
|
6950
7072
|
ListTuningJobsConfig,
|
|
6951
7073
|
ListTuningJobsParameters,
|
|
@@ -6954,7 +7076,7 @@ declare namespace types {
|
|
|
6954
7076
|
TuningDataset,
|
|
6955
7077
|
TuningValidationDataset,
|
|
6956
7078
|
CreateTuningJobConfig,
|
|
6957
|
-
|
|
7079
|
+
CreateTuningJobParametersPrivate,
|
|
6958
7080
|
TuningOperation,
|
|
6959
7081
|
CreateCachedContentConfig,
|
|
6960
7082
|
CreateCachedContentParameters,
|
|
@@ -7046,8 +7168,8 @@ declare namespace types {
|
|
|
7046
7168
|
ActivityStart,
|
|
7047
7169
|
ActivityEnd,
|
|
7048
7170
|
LiveClientRealtimeInput,
|
|
7049
|
-
LiveSendRealtimeInputParameters,
|
|
7050
7171
|
LiveClientToolResponse,
|
|
7172
|
+
LiveSendRealtimeInputParameters,
|
|
7051
7173
|
LiveClientMessage,
|
|
7052
7174
|
LiveConnectConfig,
|
|
7053
7175
|
LiveConnectParameters,
|
|
@@ -7077,6 +7199,7 @@ declare namespace types {
|
|
|
7077
7199
|
LiveConnectConstraints,
|
|
7078
7200
|
CreateAuthTokenConfig,
|
|
7079
7201
|
CreateAuthTokenParameters,
|
|
7202
|
+
CreateTuningJobParameters,
|
|
7080
7203
|
BlobImageUnion,
|
|
7081
7204
|
PartUnion,
|
|
7082
7205
|
PartListUnion,
|