@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/web/web.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
|
|
|
@@ -3229,6 +3233,9 @@ export declare interface GoogleSearch {
|
|
|
3229
3233
|
If customers set a start time, they must set an end time (and vice versa).
|
|
3230
3234
|
*/
|
|
3231
3235
|
timeRangeFilter?: Interval;
|
|
3236
|
+
/** Optional. List of domains to be excluded from the search results.
|
|
3237
|
+
The default limit is 2000 domains. */
|
|
3238
|
+
excludeDomains?: string[];
|
|
3232
3239
|
}
|
|
3233
3240
|
|
|
3234
3241
|
/** Tool to retrieve public web data for grounding, powered by Google. */
|
|
@@ -3249,14 +3256,64 @@ export declare interface GoogleTypeDate {
|
|
|
3249
3256
|
|
|
3250
3257
|
/** Grounding chunk. */
|
|
3251
3258
|
export declare interface GroundingChunk {
|
|
3259
|
+
/** Grounding chunk from Google Maps. */
|
|
3260
|
+
maps?: GroundingChunkMaps;
|
|
3252
3261
|
/** Grounding chunk from context retrieved by the retrieval tools. */
|
|
3253
3262
|
retrievedContext?: GroundingChunkRetrievedContext;
|
|
3254
3263
|
/** Grounding chunk from the web. */
|
|
3255
3264
|
web?: GroundingChunkWeb;
|
|
3256
3265
|
}
|
|
3257
3266
|
|
|
3267
|
+
/** Chunk from Google Maps. */
|
|
3268
|
+
export declare interface GroundingChunkMaps {
|
|
3269
|
+
/** 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. */
|
|
3270
|
+
placeAnswerSources?: GroundingChunkMapsPlaceAnswerSources;
|
|
3271
|
+
/** This Place's resource name, in `places/{place_id}` format. Can be used to look up the Place. */
|
|
3272
|
+
placeId?: string;
|
|
3273
|
+
/** Text of the chunk. */
|
|
3274
|
+
text?: string;
|
|
3275
|
+
/** Title of the chunk. */
|
|
3276
|
+
title?: string;
|
|
3277
|
+
/** URI reference of the chunk. */
|
|
3278
|
+
uri?: string;
|
|
3279
|
+
}
|
|
3280
|
+
|
|
3281
|
+
/** Sources used to generate the place answer. */
|
|
3282
|
+
export declare interface GroundingChunkMapsPlaceAnswerSources {
|
|
3283
|
+
/** A link where users can flag a problem with the generated answer. */
|
|
3284
|
+
flagContentUri?: string;
|
|
3285
|
+
/** Snippets of reviews that are used to generate the answer. */
|
|
3286
|
+
reviewSnippets?: GroundingChunkMapsPlaceAnswerSourcesReviewSnippet[];
|
|
3287
|
+
}
|
|
3288
|
+
|
|
3289
|
+
/** Author attribution for a photo or review. */
|
|
3290
|
+
export declare interface GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution {
|
|
3291
|
+
/** Name of the author of the Photo or Review. */
|
|
3292
|
+
displayName?: string;
|
|
3293
|
+
/** Profile photo URI of the author of the Photo or Review. */
|
|
3294
|
+
photoUri?: string;
|
|
3295
|
+
/** URI of the author of the Photo or Review. */
|
|
3296
|
+
uri?: string;
|
|
3297
|
+
}
|
|
3298
|
+
|
|
3299
|
+
/** Encapsulates a review snippet. */
|
|
3300
|
+
export declare interface GroundingChunkMapsPlaceAnswerSourcesReviewSnippet {
|
|
3301
|
+
/** This review's author. */
|
|
3302
|
+
authorAttribution?: GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution;
|
|
3303
|
+
/** A link where users can flag a problem with the review. */
|
|
3304
|
+
flagContentUri?: string;
|
|
3305
|
+
/** A link to show the review on Google Maps. */
|
|
3306
|
+
googleMapsUri?: string;
|
|
3307
|
+
/** A string of formatted recent time, expressing the review time relative to the current time in a form appropriate for the language and country. */
|
|
3308
|
+
relativePublishTimeDescription?: string;
|
|
3309
|
+
/** A reference representing this place review which may be used to look up this place review again. */
|
|
3310
|
+
review?: string;
|
|
3311
|
+
}
|
|
3312
|
+
|
|
3258
3313
|
/** Chunk from context retrieved by the retrieval tools. */
|
|
3259
3314
|
export declare interface GroundingChunkRetrievedContext {
|
|
3315
|
+
/** Output only. The full document name for the referenced Vertex AI Search document. */
|
|
3316
|
+
documentName?: string;
|
|
3260
3317
|
/** Additional context for the RAG retrieval result. This is only populated when using the RAG retrieval tool. */
|
|
3261
3318
|
ragChunk?: RagChunk;
|
|
3262
3319
|
/** Text of the attribution. */
|
|
@@ -3279,6 +3336,8 @@ export declare interface GroundingChunkWeb {
|
|
|
3279
3336
|
|
|
3280
3337
|
/** Metadata returned to client when grounding is enabled. */
|
|
3281
3338
|
export declare interface GroundingMetadata {
|
|
3339
|
+
/** 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. */
|
|
3340
|
+
googleMapsWidgetContextToken?: string;
|
|
3282
3341
|
/** List of supporting references retrieved from specified grounding source. */
|
|
3283
3342
|
groundingChunks?: GroundingChunk[];
|
|
3284
3343
|
/** Optional. List of grounding support. */
|
|
@@ -5477,6 +5536,36 @@ export declare interface PrebuiltVoiceConfig {
|
|
|
5477
5536
|
voiceName?: string;
|
|
5478
5537
|
}
|
|
5479
5538
|
|
|
5539
|
+
/** Statistics computed for datasets used for preference optimization. */
|
|
5540
|
+
export declare interface PreferenceOptimizationDataStats {
|
|
5541
|
+
/** Output only. Dataset distributions for scores variance per example. */
|
|
5542
|
+
scoreVariancePerExampleDistribution?: DatasetDistribution;
|
|
5543
|
+
/** Output only. Dataset distributions for scores. */
|
|
5544
|
+
scoresDistribution?: DatasetDistribution;
|
|
5545
|
+
/** Output only. Number of billable tokens in the tuning dataset. */
|
|
5546
|
+
totalBillableTokenCount?: string;
|
|
5547
|
+
/** Output only. Number of examples in the tuning dataset. */
|
|
5548
|
+
tuningDatasetExampleCount?: string;
|
|
5549
|
+
/** Output only. Number of tuning steps for this Tuning Job. */
|
|
5550
|
+
tuningStepCount?: string;
|
|
5551
|
+
/** Output only. Sample user examples in the training dataset. */
|
|
5552
|
+
userDatasetExamples?: GeminiPreferenceExample[];
|
|
5553
|
+
/** Output only. Dataset distributions for the user input tokens. */
|
|
5554
|
+
userInputTokenDistribution?: DatasetDistribution;
|
|
5555
|
+
/** Output only. Dataset distributions for the user output tokens. */
|
|
5556
|
+
userOutputTokenDistribution?: DatasetDistribution;
|
|
5557
|
+
}
|
|
5558
|
+
|
|
5559
|
+
/** A pre-tuned model for continuous tuning. */
|
|
5560
|
+
export declare interface PreTunedModel {
|
|
5561
|
+
/** Output only. The name of the base model this PreTunedModel was tuned from. */
|
|
5562
|
+
baseModel?: string;
|
|
5563
|
+
/** Optional. The source checkpoint id. If not specified, the default checkpoint will be used. */
|
|
5564
|
+
checkpointId?: string;
|
|
5565
|
+
/** 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}` */
|
|
5566
|
+
tunedModelName?: string;
|
|
5567
|
+
}
|
|
5568
|
+
|
|
5480
5569
|
/** Config for proactivity features. */
|
|
5481
5570
|
export declare interface ProactivityConfig {
|
|
5482
5571
|
/** If enabled, the model can reject responding to the last prompt. For
|
|
@@ -6209,9 +6298,13 @@ export declare enum SubjectReferenceType {
|
|
|
6209
6298
|
export declare interface SupervisedHyperParameters {
|
|
6210
6299
|
/** Optional. Adapter size for tuning. */
|
|
6211
6300
|
adapterSize?: AdapterSize;
|
|
6301
|
+
/** Optional. Batch size for tuning. This feature is only available for open source models. */
|
|
6302
|
+
batchSize?: string;
|
|
6212
6303
|
/** Optional. Number of complete passes the model makes over the entire training dataset during training. */
|
|
6213
6304
|
epochCount?: string;
|
|
6214
|
-
/** Optional.
|
|
6305
|
+
/** Optional. Learning rate for tuning. Mutually exclusive with `learning_rate_multiplier`. This feature is only available for open source models. */
|
|
6306
|
+
learningRate?: number;
|
|
6307
|
+
/** Optional. Multiplier for adjusting the default learning rate. Mutually exclusive with `learning_rate`. This feature is only available for 1P models. */
|
|
6215
6308
|
learningRateMultiplier?: number;
|
|
6216
6309
|
}
|
|
6217
6310
|
|
|
@@ -6283,6 +6376,8 @@ export declare interface SupervisedTuningSpec {
|
|
|
6283
6376
|
hyperParameters?: SupervisedHyperParameters;
|
|
6284
6377
|
/** 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. */
|
|
6285
6378
|
trainingDatasetUri?: string;
|
|
6379
|
+
/** Tuning mode. */
|
|
6380
|
+
tuningMode?: TuningMode;
|
|
6286
6381
|
/** 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. */
|
|
6287
6382
|
validationDatasetUri?: string;
|
|
6288
6383
|
}
|
|
@@ -6442,10 +6537,12 @@ export declare interface Tool {
|
|
|
6442
6537
|
googleMaps?: GoogleMaps;
|
|
6443
6538
|
/** Optional. Tool to support URL context retrieval. */
|
|
6444
6539
|
urlContext?: UrlContext;
|
|
6540
|
+
/** Optional. Tool to support the model interacting directly with the
|
|
6541
|
+
computer. If enabled, it automatically populates computer-use specific
|
|
6542
|
+
Function Declarations. */
|
|
6543
|
+
computerUse?: ToolComputerUse;
|
|
6445
6544
|
/** Optional. CodeExecution tool type. Enables the model to execute code as part of generation. */
|
|
6446
6545
|
codeExecution?: ToolCodeExecution;
|
|
6447
|
-
/** Optional. Tool to support the model interacting directly with the computer. If enabled, it automatically populates computer-use specific Function Declarations. */
|
|
6448
|
-
computerUse?: ToolComputerUse;
|
|
6449
6546
|
}
|
|
6450
6547
|
|
|
6451
6548
|
/** 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. */
|
|
@@ -6500,7 +6597,7 @@ export declare interface Transcription {
|
|
|
6500
6597
|
}
|
|
6501
6598
|
|
|
6502
6599
|
export declare interface TunedModel {
|
|
6503
|
-
/** Output only. The resource name of the TunedModel. Format: `projects/{project}/locations/{location}/models/{model}
|
|
6600
|
+
/** 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}` */
|
|
6504
6601
|
model?: string;
|
|
6505
6602
|
/** Output only. A resource name of an Endpoint. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`. */
|
|
6506
6603
|
endpoint?: string;
|
|
@@ -6551,6 +6648,8 @@ export declare interface TuningDataset {
|
|
|
6551
6648
|
export declare interface TuningDataStats {
|
|
6552
6649
|
/** Output only. Statistics for distillation. */
|
|
6553
6650
|
distillationDataStats?: DistillationDataStats;
|
|
6651
|
+
/** Output only. Statistics for preference optimization. */
|
|
6652
|
+
preferenceOptimizationDataStats?: PreferenceOptimizationDataStats;
|
|
6554
6653
|
/** The SFT Tuning data stats. */
|
|
6555
6654
|
supervisedTuningDataStats?: SupervisedTuningDataStats;
|
|
6556
6655
|
}
|
|
@@ -6586,6 +6685,8 @@ export declare interface TuningJob {
|
|
|
6586
6685
|
baseModel?: string;
|
|
6587
6686
|
/** Output only. The tuned model resources associated with this TuningJob. */
|
|
6588
6687
|
tunedModel?: TunedModel;
|
|
6688
|
+
/** The pre-tuned model for continuous tuning. */
|
|
6689
|
+
preTunedModel?: PreTunedModel;
|
|
6589
6690
|
/** Tuning Spec for Supervised Fine Tuning. */
|
|
6590
6691
|
supervisedTuningSpec?: SupervisedTuningSpec;
|
|
6591
6692
|
/** Output only. The tuning data statistics associated with this TuningJob. */
|
|
@@ -6594,24 +6695,38 @@ export declare interface TuningJob {
|
|
|
6594
6695
|
encryptionSpec?: EncryptionSpec;
|
|
6595
6696
|
/** Tuning Spec for open sourced and third party Partner models. */
|
|
6596
6697
|
partnerModelTuningSpec?: PartnerModelTuningSpec;
|
|
6597
|
-
/**
|
|
6598
|
-
|
|
6698
|
+
/** 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. */
|
|
6699
|
+
customBaseModel?: string;
|
|
6599
6700
|
/** Output only. The Experiment associated with this TuningJob. */
|
|
6600
6701
|
experiment?: string;
|
|
6601
6702
|
/** 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. */
|
|
6602
6703
|
labels?: Record<string, string>;
|
|
6704
|
+
/** 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. */
|
|
6705
|
+
outputUri?: string;
|
|
6603
6706
|
/** Output only. The resource name of the PipelineJob associated with the TuningJob. Format: `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`. */
|
|
6604
6707
|
pipelineJob?: string;
|
|
6605
|
-
/** Output only. Reserved for future use. */
|
|
6606
|
-
satisfiesPzi?: boolean;
|
|
6607
|
-
/** Output only. Reserved for future use. */
|
|
6608
|
-
satisfiesPzs?: boolean;
|
|
6609
6708
|
/** 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. */
|
|
6610
6709
|
serviceAccount?: string;
|
|
6611
6710
|
/** Optional. The display name of the TunedModel. The name can be up to 128 characters long and can consist of any UTF-8 characters. */
|
|
6612
6711
|
tunedModelDisplayName?: string;
|
|
6613
6712
|
}
|
|
6614
6713
|
|
|
6714
|
+
/** Tuning mode. */
|
|
6715
|
+
export declare enum TuningMode {
|
|
6716
|
+
/**
|
|
6717
|
+
* Tuning mode is unspecified.
|
|
6718
|
+
*/
|
|
6719
|
+
TUNING_MODE_UNSPECIFIED = "TUNING_MODE_UNSPECIFIED",
|
|
6720
|
+
/**
|
|
6721
|
+
* Full fine-tuning mode.
|
|
6722
|
+
*/
|
|
6723
|
+
TUNING_MODE_FULL = "TUNING_MODE_FULL",
|
|
6724
|
+
/**
|
|
6725
|
+
* PEFT adapter tuning mode.
|
|
6726
|
+
*/
|
|
6727
|
+
TUNING_MODE_PEFT_ADAPTER = "TUNING_MODE_PEFT_ADAPTER"
|
|
6728
|
+
}
|
|
6729
|
+
|
|
6615
6730
|
/** A long-running operation. */
|
|
6616
6731
|
export declare interface TuningOperation {
|
|
6617
6732
|
/** Used to retain the full HTTP response. */
|
|
@@ -6744,7 +6859,6 @@ declare namespace types {
|
|
|
6744
6859
|
Mode,
|
|
6745
6860
|
AuthType,
|
|
6746
6861
|
ApiSpec,
|
|
6747
|
-
Environment,
|
|
6748
6862
|
UrlRetrievalStatus,
|
|
6749
6863
|
FinishReason,
|
|
6750
6864
|
HarmProbability,
|
|
@@ -6754,10 +6868,12 @@ declare namespace types {
|
|
|
6754
6868
|
Modality,
|
|
6755
6869
|
MediaResolution,
|
|
6756
6870
|
JobState,
|
|
6871
|
+
TuningMode,
|
|
6757
6872
|
AdapterSize,
|
|
6758
6873
|
FeatureSelectionPreference,
|
|
6759
6874
|
Behavior,
|
|
6760
6875
|
DynamicRetrievalConfigMode,
|
|
6876
|
+
Environment,
|
|
6761
6877
|
FunctionCallingConfigMode,
|
|
6762
6878
|
SafetyFilterLevel,
|
|
6763
6879
|
PersonGeneration,
|
|
@@ -6805,6 +6921,7 @@ declare namespace types {
|
|
|
6805
6921
|
AuthConfig,
|
|
6806
6922
|
GoogleMaps,
|
|
6807
6923
|
UrlContext,
|
|
6924
|
+
ToolComputerUse,
|
|
6808
6925
|
ApiAuthApiKeyConfig,
|
|
6809
6926
|
ApiAuth,
|
|
6810
6927
|
ExternalApiElasticSearchParams,
|
|
@@ -6822,7 +6939,6 @@ declare namespace types {
|
|
|
6822
6939
|
VertexRagStore,
|
|
6823
6940
|
Retrieval,
|
|
6824
6941
|
ToolCodeExecution,
|
|
6825
|
-
ToolComputerUse,
|
|
6826
6942
|
Tool,
|
|
6827
6943
|
FunctionCallingConfig,
|
|
6828
6944
|
LatLng,
|
|
@@ -6847,6 +6963,10 @@ declare namespace types {
|
|
|
6847
6963
|
CitationMetadata,
|
|
6848
6964
|
UrlMetadata,
|
|
6849
6965
|
UrlContextMetadata,
|
|
6966
|
+
GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution,
|
|
6967
|
+
GroundingChunkMapsPlaceAnswerSourcesReviewSnippet,
|
|
6968
|
+
GroundingChunkMapsPlaceAnswerSources,
|
|
6969
|
+
GroundingChunkMaps,
|
|
6850
6970
|
RagChunkPageSpan,
|
|
6851
6971
|
RagChunk,
|
|
6852
6972
|
GroundingChunkRetrievedContext,
|
|
@@ -6925,20 +7045,22 @@ declare namespace types {
|
|
|
6925
7045
|
TunedModelCheckpoint,
|
|
6926
7046
|
TunedModel,
|
|
6927
7047
|
GoogleRpcStatus,
|
|
7048
|
+
PreTunedModel,
|
|
6928
7049
|
SupervisedHyperParameters,
|
|
6929
7050
|
SupervisedTuningSpec,
|
|
6930
7051
|
DatasetDistributionDistributionBucket,
|
|
6931
7052
|
DatasetDistribution,
|
|
6932
7053
|
DatasetStats,
|
|
6933
7054
|
DistillationDataStats,
|
|
7055
|
+
GeminiPreferenceExampleCompletion,
|
|
7056
|
+
GeminiPreferenceExample,
|
|
7057
|
+
PreferenceOptimizationDataStats,
|
|
6934
7058
|
SupervisedTuningDatasetDistributionDatasetBucket,
|
|
6935
7059
|
SupervisedTuningDatasetDistribution,
|
|
6936
7060
|
SupervisedTuningDataStats,
|
|
6937
7061
|
TuningDataStats,
|
|
6938
7062
|
EncryptionSpec,
|
|
6939
7063
|
PartnerModelTuningSpec,
|
|
6940
|
-
DistillationHyperParameters,
|
|
6941
|
-
DistillationSpec,
|
|
6942
7064
|
TuningJob,
|
|
6943
7065
|
ListTuningJobsConfig,
|
|
6944
7066
|
ListTuningJobsParameters,
|
|
@@ -6947,7 +7069,7 @@ declare namespace types {
|
|
|
6947
7069
|
TuningDataset,
|
|
6948
7070
|
TuningValidationDataset,
|
|
6949
7071
|
CreateTuningJobConfig,
|
|
6950
|
-
|
|
7072
|
+
CreateTuningJobParametersPrivate,
|
|
6951
7073
|
TuningOperation,
|
|
6952
7074
|
CreateCachedContentConfig,
|
|
6953
7075
|
CreateCachedContentParameters,
|
|
@@ -7039,8 +7161,8 @@ declare namespace types {
|
|
|
7039
7161
|
ActivityStart,
|
|
7040
7162
|
ActivityEnd,
|
|
7041
7163
|
LiveClientRealtimeInput,
|
|
7042
|
-
LiveSendRealtimeInputParameters,
|
|
7043
7164
|
LiveClientToolResponse,
|
|
7165
|
+
LiveSendRealtimeInputParameters,
|
|
7044
7166
|
LiveClientMessage,
|
|
7045
7167
|
LiveConnectConfig,
|
|
7046
7168
|
LiveConnectParameters,
|
|
@@ -7070,6 +7192,7 @@ declare namespace types {
|
|
|
7070
7192
|
LiveConnectConstraints,
|
|
7071
7193
|
CreateAuthTokenConfig,
|
|
7072
7194
|
CreateAuthTokenParameters,
|
|
7195
|
+
CreateTuningJobParameters,
|
|
7073
7196
|
BlobImageUnion,
|
|
7074
7197
|
PartUnion,
|
|
7075
7198
|
PartListUnion,
|