@google/genai 1.0.1 → 1.2.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/README.md +6 -6
- package/dist/genai.d.ts +82 -43
- package/dist/index.cjs +14565 -0
- package/dist/index.mjs +464 -111
- package/dist/index.mjs.map +1 -1
- package/dist/node/index.cjs +14970 -0
- package/dist/node/index.mjs +464 -111
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/node.d.ts +82 -43
- package/dist/web/index.mjs +464 -111
- package/dist/web/index.mjs.map +1 -1
- package/dist/web/web.d.ts +82 -43
- package/package.json +5 -1
package/README.md
CHANGED
|
@@ -33,7 +33,7 @@ npm install @google/genai
|
|
|
33
33
|
|
|
34
34
|
## Quickstart
|
|
35
35
|
|
|
36
|
-
The simplest way to get started is to
|
|
36
|
+
The simplest way to get started is to use an API key from
|
|
37
37
|
[Google AI Studio](https://aistudio.google.com/apikey):
|
|
38
38
|
|
|
39
39
|
```typescript
|
|
@@ -130,19 +130,19 @@ const ai = new GoogleGenAI({
|
|
|
130
130
|
All API features are accessed through an instance of the `GoogleGenAI` classes.
|
|
131
131
|
The submodules bundle together related API methods:
|
|
132
132
|
|
|
133
|
-
- [`ai.models`](https://googleapis.github.io/js-genai/
|
|
133
|
+
- [`ai.models`](https://googleapis.github.io/js-genai/release_docs/classes/models.Models.html):
|
|
134
134
|
Use `models` to query models (`generateContent`, `generateImages`, ...), or
|
|
135
135
|
examine their metadata.
|
|
136
|
-
- [`ai.caches`](https://googleapis.github.io/js-genai/
|
|
136
|
+
- [`ai.caches`](https://googleapis.github.io/js-genai/release_docs/classes/caches.Caches.html):
|
|
137
137
|
Create and manage `caches` to reduce costs when repeatedly using the same
|
|
138
138
|
large prompt prefix.
|
|
139
|
-
- [`ai.chats`](https://googleapis.github.io/js-genai/
|
|
139
|
+
- [`ai.chats`](https://googleapis.github.io/js-genai/release_docs/classes/chats.Chats.html):
|
|
140
140
|
Create local stateful `chat` objects to simplify multi turn interactions.
|
|
141
|
-
- [`ai.files`](https://googleapis.github.io/js-genai/
|
|
141
|
+
- [`ai.files`](https://googleapis.github.io/js-genai/release_docs/classes/files.Files.html):
|
|
142
142
|
Upload `files` to the API and reference them in your prompts.
|
|
143
143
|
This reduces bandwidth if you use a file many times, and handles files too
|
|
144
144
|
large to fit inline with your prompt.
|
|
145
|
-
- [`ai.live`](https://googleapis.github.io/js-genai/
|
|
145
|
+
- [`ai.live`](https://googleapis.github.io/js-genai/release_docs/classes/live.Live.html):
|
|
146
146
|
Start a `live` session for real time interaction, allows text + audio + video
|
|
147
147
|
input, and text or audio output.
|
|
148
148
|
|
package/dist/genai.d.ts
CHANGED
|
@@ -1282,15 +1282,15 @@ export declare interface DistillationHyperParameters {
|
|
|
1282
1282
|
|
|
1283
1283
|
/** Tuning Spec for Distillation. */
|
|
1284
1284
|
export declare interface DistillationSpec {
|
|
1285
|
-
/** The base teacher model that is being distilled
|
|
1285
|
+
/** 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). */
|
|
1286
1286
|
baseTeacherModel?: string;
|
|
1287
1287
|
/** Optional. Hyperparameters for Distillation. */
|
|
1288
1288
|
hyperParameters?: DistillationHyperParameters;
|
|
1289
|
-
/**
|
|
1289
|
+
/** 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. */
|
|
1290
1290
|
pipelineRootDirectory?: string;
|
|
1291
|
-
/** The student model that is being tuned, e.g., "google/gemma-2b-1.1-it". */
|
|
1291
|
+
/** The student model that is being tuned, e.g., "google/gemma-2b-1.1-it". Deprecated. Use base_model instead. */
|
|
1292
1292
|
studentModel?: string;
|
|
1293
|
-
/**
|
|
1293
|
+
/** Deprecated. Cloud Storage path to file containing training dataset for tuning. The dataset must be formatted as a JSONL file. */
|
|
1294
1294
|
trainingDatasetUri?: string;
|
|
1295
1295
|
/** The resource name of the Tuned teacher model. Format: `projects/{project}/locations/{location}/models/{model}`. */
|
|
1296
1296
|
tunedTeacherModelSource?: string;
|
|
@@ -1619,6 +1619,8 @@ export { File_2 as File }
|
|
|
1619
1619
|
|
|
1620
1620
|
/** URI based data. */
|
|
1621
1621
|
export declare interface FileData {
|
|
1622
|
+
/** Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. It is not currently used in the Gemini GenerateContent calls. */
|
|
1623
|
+
displayName?: string;
|
|
1622
1624
|
/** Required. URI. */
|
|
1623
1625
|
fileUri?: string;
|
|
1624
1626
|
/** Required. The IANA standard MIME type of the source data. */
|
|
@@ -1843,7 +1845,7 @@ export declare interface FunctionCall {
|
|
|
1843
1845
|
/** The unique id of the function call. If populated, the client to execute the
|
|
1844
1846
|
`function_call` and return the response with the matching `id`. */
|
|
1845
1847
|
id?: string;
|
|
1846
|
-
/** Optional.
|
|
1848
|
+
/** Optional. The function parameters and values in JSON object format. See [FunctionDeclaration.parameters] for parameter details. */
|
|
1847
1849
|
args?: Record<string, unknown>;
|
|
1848
1850
|
/** Required. The name of the function to call. Matches [FunctionDeclaration.name]. */
|
|
1849
1851
|
name?: string;
|
|
@@ -2406,6 +2408,8 @@ export declare interface GenerateVideosConfig {
|
|
|
2406
2408
|
negativePrompt?: string;
|
|
2407
2409
|
/** Whether to use the prompt rewriting logic. */
|
|
2408
2410
|
enhancePrompt?: boolean;
|
|
2411
|
+
/** Whether to generate audio along with the video. */
|
|
2412
|
+
generateAudio?: boolean;
|
|
2409
2413
|
}
|
|
2410
2414
|
|
|
2411
2415
|
/** A video generation operation. */
|
|
@@ -2448,6 +2452,8 @@ export declare class GenerateVideosResponse {
|
|
|
2448
2452
|
|
|
2449
2453
|
/** Generation config. */
|
|
2450
2454
|
export declare interface GenerationConfig {
|
|
2455
|
+
/** Optional. Config for model selection. */
|
|
2456
|
+
modelSelectionConfig?: ModelSelectionConfig;
|
|
2451
2457
|
/** Optional. If enabled, audio timestamp will be included in the request to the model. */
|
|
2452
2458
|
audioTimestamp?: boolean;
|
|
2453
2459
|
/** Optional. Number of candidates to generate. */
|
|
@@ -2466,16 +2472,22 @@ export declare interface GenerationConfig {
|
|
|
2466
2472
|
responseLogprobs?: boolean;
|
|
2467
2473
|
/** Optional. Output response mimetype of the generated candidate text. Supported mimetype: - `text/plain`: (default) Text output. - `application/json`: JSON response in the candidates. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. This is a preview feature. */
|
|
2468
2474
|
responseMimeType?: string;
|
|
2475
|
+
/** Optional. The modalities of the response. */
|
|
2476
|
+
responseModalities?: Modality[];
|
|
2469
2477
|
/** Optional. The `Schema` object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema). If set, a compatible response_mime_type must also be set. Compatible mimetypes: `application/json`: Schema for JSON response. */
|
|
2470
2478
|
responseSchema?: Schema;
|
|
2471
2479
|
/** Optional. Routing configuration. */
|
|
2472
2480
|
routingConfig?: GenerationConfigRoutingConfig;
|
|
2473
2481
|
/** Optional. Seed. */
|
|
2474
2482
|
seed?: number;
|
|
2483
|
+
/** Optional. The speech generation config. */
|
|
2484
|
+
speechConfig?: SpeechConfig;
|
|
2475
2485
|
/** Optional. Stop sequences. */
|
|
2476
2486
|
stopSequences?: string[];
|
|
2477
2487
|
/** Optional. Controls the randomness of predictions. */
|
|
2478
2488
|
temperature?: number;
|
|
2489
|
+
/** Optional. Config for thinking features. An error will be returned if this field is set for models that don't support thinking. */
|
|
2490
|
+
thinkingConfig?: GenerationConfigThinkingConfig;
|
|
2479
2491
|
/** Optional. If specified, top-k sampling will be used. */
|
|
2480
2492
|
topK?: number;
|
|
2481
2493
|
/** Optional. If specified, nucleus sampling will be used. */
|
|
@@ -2498,10 +2510,18 @@ export declare interface GenerationConfigRoutingConfigAutoRoutingMode {
|
|
|
2498
2510
|
|
|
2499
2511
|
/** When manual routing is set, the specified model will be used directly. */
|
|
2500
2512
|
export declare interface GenerationConfigRoutingConfigManualRoutingMode {
|
|
2501
|
-
/** The model name to use. Only the public LLM models are accepted.
|
|
2513
|
+
/** The model name to use. Only the public LLM models are accepted. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference#supported-models). */
|
|
2502
2514
|
modelName?: string;
|
|
2503
2515
|
}
|
|
2504
2516
|
|
|
2517
|
+
/** Config for thinking features. */
|
|
2518
|
+
export declare interface GenerationConfigThinkingConfig {
|
|
2519
|
+
/** Optional. Indicates whether to include thoughts in the response. If true, thoughts are returned only when available. */
|
|
2520
|
+
includeThoughts?: boolean;
|
|
2521
|
+
/** Optional. Indicates the thinking budget in tokens. This is only applied when enable_thinking is true. */
|
|
2522
|
+
thinkingBudget?: number;
|
|
2523
|
+
}
|
|
2524
|
+
|
|
2505
2525
|
/** Optional parameters for caches.get method. */
|
|
2506
2526
|
export declare interface GetCachedContentConfig {
|
|
2507
2527
|
/** Used to override HTTP request options. */
|
|
@@ -2764,6 +2784,8 @@ export declare interface GroundingChunk {
|
|
|
2764
2784
|
|
|
2765
2785
|
/** Chunk from context retrieved by the retrieval tools. */
|
|
2766
2786
|
export declare interface GroundingChunkRetrievedContext {
|
|
2787
|
+
/** Additional context for the RAG retrieval result. This is only populated when using the RAG retrieval tool. */
|
|
2788
|
+
ragChunk?: RagChunk;
|
|
2767
2789
|
/** Text of the attribution. */
|
|
2768
2790
|
text?: string;
|
|
2769
2791
|
/** Title of the attribution. */
|
|
@@ -2875,7 +2897,7 @@ export declare enum HarmCategory {
|
|
|
2875
2897
|
*/
|
|
2876
2898
|
HARM_CATEGORY_SEXUALLY_EXPLICIT = "HARM_CATEGORY_SEXUALLY_EXPLICIT",
|
|
2877
2899
|
/**
|
|
2878
|
-
* The harm category is civic integrity.
|
|
2900
|
+
* Deprecated: Election filter is not longer supported. The harm category is civic integrity.
|
|
2879
2901
|
*/
|
|
2880
2902
|
HARM_CATEGORY_CIVIC_INTEGRITY = "HARM_CATEGORY_CIVIC_INTEGRITY"
|
|
2881
2903
|
}
|
|
@@ -3675,8 +3697,6 @@ export declare interface LiveMusicGenerationConfig {
|
|
|
3675
3697
|
muteDrums?: boolean;
|
|
3676
3698
|
/** Whether the audio output should contain only bass and drums. */
|
|
3677
3699
|
onlyBassAndDrums?: boolean;
|
|
3678
|
-
/** The mode of music generation. Default mode is QUALITY. */
|
|
3679
|
-
musicGenerationMode?: MusicGenerationMode;
|
|
3680
3700
|
}
|
|
3681
3701
|
|
|
3682
3702
|
/** The playback control signal to apply to the music generation. */
|
|
@@ -4126,7 +4146,7 @@ export declare enum Modality {
|
|
|
4126
4146
|
*/
|
|
4127
4147
|
IMAGE = "IMAGE",
|
|
4128
4148
|
/**
|
|
4129
|
-
* Indicates the model should return
|
|
4149
|
+
* Indicates the model should return audio.
|
|
4130
4150
|
*/
|
|
4131
4151
|
AUDIO = "AUDIO"
|
|
4132
4152
|
}
|
|
@@ -4500,24 +4520,6 @@ export declare interface MultiSpeakerVoiceConfig {
|
|
|
4500
4520
|
speakerVoiceConfigs?: SpeakerVoiceConfig[];
|
|
4501
4521
|
}
|
|
4502
4522
|
|
|
4503
|
-
/** The mode of music generation. */
|
|
4504
|
-
export declare enum MusicGenerationMode {
|
|
4505
|
-
/**
|
|
4506
|
-
* This value is unused.
|
|
4507
|
-
*/
|
|
4508
|
-
MUSIC_GENERATION_MODE_UNSPECIFIED = "MUSIC_GENERATION_MODE_UNSPECIFIED",
|
|
4509
|
-
/**
|
|
4510
|
-
* Steer text prompts to regions of latent space with higher quality
|
|
4511
|
-
music.
|
|
4512
|
-
*/
|
|
4513
|
-
QUALITY = "QUALITY",
|
|
4514
|
-
/**
|
|
4515
|
-
* Steer text prompts to regions of latent space with a larger diversity
|
|
4516
|
-
of music.
|
|
4517
|
-
*/
|
|
4518
|
-
DIVERSITY = "DIVERSITY"
|
|
4519
|
-
}
|
|
4520
|
-
|
|
4521
4523
|
/** A long-running operation. */
|
|
4522
4524
|
export declare interface Operation {
|
|
4523
4525
|
/** The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. */
|
|
@@ -4717,12 +4719,12 @@ export declare interface Part {
|
|
|
4717
4719
|
thought?: boolean;
|
|
4718
4720
|
/** Optional. Inlined bytes data. */
|
|
4719
4721
|
inlineData?: Blob_2;
|
|
4722
|
+
/** Optional. URI based data. */
|
|
4723
|
+
fileData?: FileData;
|
|
4720
4724
|
/** Optional. Result of executing the [ExecutableCode]. */
|
|
4721
4725
|
codeExecutionResult?: CodeExecutionResult;
|
|
4722
4726
|
/** Optional. Code generated by the model that is meant to be executed. */
|
|
4723
4727
|
executableCode?: ExecutableCode;
|
|
4724
|
-
/** Optional. URI based data. */
|
|
4725
|
-
fileData?: FileData;
|
|
4726
4728
|
/** Optional. A predicted [FunctionCall] returned from the model that contains a string representing the [FunctionDeclaration.name] with the parameters and their values. */
|
|
4727
4729
|
functionCall?: FunctionCall;
|
|
4728
4730
|
/** Optional. The result output of a [FunctionCall] that contains a string representing the [FunctionDeclaration.name] and a structured JSON object containing any output from the function call. It is used as context to the model. */
|
|
@@ -4766,6 +4768,22 @@ export declare interface ProactivityConfig {
|
|
|
4766
4768
|
proactiveAudio?: boolean;
|
|
4767
4769
|
}
|
|
4768
4770
|
|
|
4771
|
+
/** A RagChunk includes the content of a chunk of a RagFile, and associated metadata. */
|
|
4772
|
+
export declare interface RagChunk {
|
|
4773
|
+
/** If populated, represents where the chunk starts and ends in the document. */
|
|
4774
|
+
pageSpan?: RagChunkPageSpan;
|
|
4775
|
+
/** The content of the chunk. */
|
|
4776
|
+
text?: string;
|
|
4777
|
+
}
|
|
4778
|
+
|
|
4779
|
+
/** Represents where the chunk starts and ends in the document. */
|
|
4780
|
+
export declare interface RagChunkPageSpan {
|
|
4781
|
+
/** Page where chunk starts in the document. Inclusive. 1-indexed. */
|
|
4782
|
+
firstPage?: number;
|
|
4783
|
+
/** Page where chunk ends in the document. Inclusive. 1-indexed. */
|
|
4784
|
+
lastPage?: number;
|
|
4785
|
+
}
|
|
4786
|
+
|
|
4769
4787
|
/** Specifies the context retrieval config. */
|
|
4770
4788
|
export declare interface RagRetrievalConfig {
|
|
4771
4789
|
/** Optional. Config for filters. */
|
|
@@ -4804,7 +4822,7 @@ export declare interface RagRetrievalConfigRanking {
|
|
|
4804
4822
|
|
|
4805
4823
|
/** Config for LlmRanker. */
|
|
4806
4824
|
export declare interface RagRetrievalConfigRankingLlmRanker {
|
|
4807
|
-
/** Optional. The model name used for ranking.
|
|
4825
|
+
/** Optional. The model name used for ranking. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference#supported-models). */
|
|
4808
4826
|
modelName?: string;
|
|
4809
4827
|
}
|
|
4810
4828
|
|
|
@@ -4890,6 +4908,8 @@ export declare interface Retrieval {
|
|
|
4890
4908
|
export declare interface RetrievalConfig {
|
|
4891
4909
|
/** Optional. The location of the user. */
|
|
4892
4910
|
latLng?: LatLng;
|
|
4911
|
+
/** The language code of the user. */
|
|
4912
|
+
languageCode?: string;
|
|
4893
4913
|
}
|
|
4894
4914
|
|
|
4895
4915
|
/** Metadata related to retrieval in the grounding flow. */
|
|
@@ -5002,7 +5022,12 @@ export declare enum Scale {
|
|
|
5002
5022
|
B_MAJOR_A_FLAT_MINOR = "B_MAJOR_A_FLAT_MINOR"
|
|
5003
5023
|
}
|
|
5004
5024
|
|
|
5005
|
-
/** Schema is used to define the format of input/output data.
|
|
5025
|
+
/** Schema is used to define the format of input/output data.
|
|
5026
|
+
|
|
5027
|
+
Represents a select subset of an [OpenAPI 3.0 schema
|
|
5028
|
+
object](https://spec.openapis.org/oas/v3.0.3#schema-object). More fields may
|
|
5029
|
+
be added in the future as needed.
|
|
5030
|
+
*/
|
|
5006
5031
|
export declare interface Schema {
|
|
5007
5032
|
/** Optional. The value should be validated against any (one or more) of the subschemas in the list. */
|
|
5008
5033
|
anyOf?: Schema[];
|
|
@@ -5415,15 +5440,17 @@ export declare interface SupervisedTuningDatasetDistributionDatasetBucket {
|
|
|
5415
5440
|
|
|
5416
5441
|
/** Tuning data statistics for Supervised Tuning. */
|
|
5417
5442
|
export declare interface SupervisedTuningDataStats {
|
|
5443
|
+
/** Output only. For each index in `truncated_example_indices`, the user-facing reason why the example was dropped. */
|
|
5444
|
+
droppedExampleReasons?: string[];
|
|
5418
5445
|
/** Output only. Number of billable characters in the tuning dataset. */
|
|
5419
5446
|
totalBillableCharacterCount?: string;
|
|
5420
5447
|
/** Output only. Number of billable tokens in the tuning dataset. */
|
|
5421
5448
|
totalBillableTokenCount?: string;
|
|
5422
|
-
/** The number of examples in the dataset that have been
|
|
5449
|
+
/** Output only. The number of examples in the dataset that have been dropped. An example can be dropped for reasons including: too many tokens, contains an invalid image, contains too many images, etc. */
|
|
5423
5450
|
totalTruncatedExampleCount?: string;
|
|
5424
5451
|
/** Output only. Number of tuning characters in the tuning dataset. */
|
|
5425
5452
|
totalTuningCharacterCount?: string;
|
|
5426
|
-
/** A partial sample of the indices (starting from 1) of the
|
|
5453
|
+
/** Output only. A partial sample of the indices (starting from 1) of the dropped examples. */
|
|
5427
5454
|
truncatedExampleIndices?: string[];
|
|
5428
5455
|
/** Output only. Number of examples in the tuning dataset. */
|
|
5429
5456
|
tuningDatasetExampleCount?: string;
|
|
@@ -5441,14 +5468,14 @@ export declare interface SupervisedTuningDataStats {
|
|
|
5441
5468
|
|
|
5442
5469
|
/** Tuning Spec for Supervised Tuning for first party models. */
|
|
5443
5470
|
export declare interface SupervisedTuningSpec {
|
|
5471
|
+
/** Optional. If set to true, disable intermediate checkpoints for SFT and only the last checkpoint will be exported. Otherwise, enable intermediate checkpoints for SFT. Default is false. */
|
|
5472
|
+
exportLastCheckpointOnly?: boolean;
|
|
5444
5473
|
/** Optional. Hyperparameters for SFT. */
|
|
5445
5474
|
hyperParameters?: SupervisedHyperParameters;
|
|
5446
5475
|
/** Required. Cloud Storage path to file containing training dataset for tuning. The dataset must be formatted as a JSONL file. */
|
|
5447
5476
|
trainingDatasetUri?: string;
|
|
5448
5477
|
/** Optional. Cloud Storage path to file containing validation dataset for tuning. The dataset must be formatted as a JSONL file. */
|
|
5449
5478
|
validationDatasetUri?: string;
|
|
5450
|
-
/** Optional. If set to true, disable intermediate checkpoints for SFT and only the last checkpoint will be exported. */
|
|
5451
|
-
exportLastCheckpointOnly?: boolean;
|
|
5452
5479
|
}
|
|
5453
5480
|
|
|
5454
5481
|
export declare interface TestTableFile {
|
|
@@ -5516,7 +5543,7 @@ export declare interface Tool {
|
|
|
5516
5543
|
googleMaps?: GoogleMaps;
|
|
5517
5544
|
/** Optional. Tool to support URL context retrieval. */
|
|
5518
5545
|
urlContext?: UrlContext;
|
|
5519
|
-
/** Optional. CodeExecution tool type. Enables the model to execute code as part of generation.
|
|
5546
|
+
/** Optional. CodeExecution tool type. Enables the model to execute code as part of generation. */
|
|
5520
5547
|
codeExecution?: ToolCodeExecution;
|
|
5521
5548
|
}
|
|
5522
5549
|
|
|
@@ -5644,7 +5671,7 @@ export declare interface TuningJob {
|
|
|
5644
5671
|
error?: GoogleRpcStatus;
|
|
5645
5672
|
/** Optional. The description of the TuningJob. */
|
|
5646
5673
|
description?: string;
|
|
5647
|
-
/** The base model that is being tuned
|
|
5674
|
+
/** The base model that is being tuned. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models). */
|
|
5648
5675
|
baseModel?: string;
|
|
5649
5676
|
/** Output only. The tuned model resources associated with this TuningJob. */
|
|
5650
5677
|
tunedModel?: TunedModel;
|
|
@@ -5664,6 +5691,8 @@ export declare interface TuningJob {
|
|
|
5664
5691
|
labels?: Record<string, string>;
|
|
5665
5692
|
/** Output only. The resource name of the PipelineJob associated with the TuningJob. Format: `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`. */
|
|
5666
5693
|
pipelineJob?: string;
|
|
5694
|
+
/** 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. */
|
|
5695
|
+
serviceAccount?: string;
|
|
5667
5696
|
/** Optional. The display name of the TunedModel. The name can be up to 128 characters long and can consist of any UTF-8 characters. */
|
|
5668
5697
|
tunedModelDisplayName?: string;
|
|
5669
5698
|
}
|
|
@@ -5757,7 +5786,11 @@ export declare enum Type {
|
|
|
5757
5786
|
/**
|
|
5758
5787
|
* OpenAPI object type
|
|
5759
5788
|
*/
|
|
5760
|
-
OBJECT = "OBJECT"
|
|
5789
|
+
OBJECT = "OBJECT",
|
|
5790
|
+
/**
|
|
5791
|
+
* Null type
|
|
5792
|
+
*/
|
|
5793
|
+
NULL = "NULL"
|
|
5761
5794
|
}
|
|
5762
5795
|
|
|
5763
5796
|
declare namespace types {
|
|
@@ -5773,10 +5806,10 @@ declare namespace types {
|
|
|
5773
5806
|
createModelContent,
|
|
5774
5807
|
Outcome,
|
|
5775
5808
|
Language,
|
|
5809
|
+
Type,
|
|
5776
5810
|
HarmCategory,
|
|
5777
5811
|
HarmBlockMethod,
|
|
5778
5812
|
HarmBlockThreshold,
|
|
5779
|
-
Type,
|
|
5780
5813
|
Mode,
|
|
5781
5814
|
AuthType,
|
|
5782
5815
|
FinishReason,
|
|
@@ -5809,21 +5842,20 @@ declare namespace types {
|
|
|
5809
5842
|
TurnCoverage,
|
|
5810
5843
|
FunctionResponseScheduling,
|
|
5811
5844
|
Scale,
|
|
5812
|
-
MusicGenerationMode,
|
|
5813
5845
|
LiveMusicPlaybackControl,
|
|
5814
5846
|
VideoMetadata,
|
|
5815
5847
|
Blob_2 as Blob,
|
|
5848
|
+
FileData,
|
|
5816
5849
|
CodeExecutionResult,
|
|
5817
5850
|
ExecutableCode,
|
|
5818
|
-
FileData,
|
|
5819
5851
|
FunctionCall,
|
|
5820
5852
|
FunctionResponse,
|
|
5821
5853
|
Part,
|
|
5822
5854
|
Content,
|
|
5823
5855
|
HttpOptions,
|
|
5856
|
+
Schema,
|
|
5824
5857
|
ModelSelectionConfig,
|
|
5825
5858
|
SafetySetting,
|
|
5826
|
-
Schema,
|
|
5827
5859
|
FunctionDeclaration,
|
|
5828
5860
|
Interval,
|
|
5829
5861
|
GoogleSearch,
|
|
@@ -5871,6 +5903,8 @@ declare namespace types {
|
|
|
5871
5903
|
CitationMetadata,
|
|
5872
5904
|
UrlMetadata,
|
|
5873
5905
|
UrlContextMetadata,
|
|
5906
|
+
RagChunkPageSpan,
|
|
5907
|
+
RagChunk,
|
|
5874
5908
|
GroundingChunkRetrievedContext,
|
|
5875
5909
|
GroundingChunkWeb,
|
|
5876
5910
|
GroundingChunk,
|
|
@@ -5923,6 +5957,7 @@ declare namespace types {
|
|
|
5923
5957
|
DeleteModelConfig,
|
|
5924
5958
|
DeleteModelParameters,
|
|
5925
5959
|
DeleteModelResponse,
|
|
5960
|
+
GenerationConfigThinkingConfig,
|
|
5926
5961
|
GenerationConfig,
|
|
5927
5962
|
CountTokensConfig,
|
|
5928
5963
|
CountTokensParameters,
|
|
@@ -6287,6 +6322,10 @@ export declare interface VertexAISearch {
|
|
|
6287
6322
|
datastore?: string;
|
|
6288
6323
|
/** Optional. Fully-qualified Vertex AI Search engine resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` */
|
|
6289
6324
|
engine?: string;
|
|
6325
|
+
/** Optional. Filter strings to be passed to the search API. */
|
|
6326
|
+
filter?: string;
|
|
6327
|
+
/** Optional. Number of search results to return per query. The default value is 10. The maximumm allowed value is 10. */
|
|
6328
|
+
maxResults?: number;
|
|
6290
6329
|
}
|
|
6291
6330
|
|
|
6292
6331
|
/** Retrieve from Vertex RAG Store for grounding. */
|