@google/genai 1.26.0 → 1.27.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 +85 -84
- package/dist/index.cjs +43 -42
- package/dist/index.mjs +43 -42
- package/dist/index.mjs.map +1 -1
- package/dist/node/index.cjs +46 -46
- package/dist/node/index.mjs +46 -46
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/node.d.ts +85 -84
- package/dist/web/index.mjs +43 -42
- package/dist/web/index.mjs.map +1 -1
- package/dist/web/web.d.ts +85 -84
- package/package.json +6 -10
package/dist/web/web.d.ts
CHANGED
|
@@ -64,13 +64,13 @@ export declare enum AdapterSize {
|
|
|
64
64
|
ADAPTER_SIZE_THIRTY_TWO = "ADAPTER_SIZE_THIRTY_TWO"
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
/** The generic reusable api auth config. Deprecated. Please use AuthConfig (google/cloud/aiplatform/master/auth.proto) instead. */
|
|
67
|
+
/** The generic reusable api auth config. Deprecated. Please use AuthConfig (google/cloud/aiplatform/master/auth.proto) instead. This data type is not supported in Gemini API. */
|
|
68
68
|
export declare interface ApiAuth {
|
|
69
69
|
/** The API secret. */
|
|
70
70
|
apiKeyConfig?: ApiAuthApiKeyConfig;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
/** The API secret. */
|
|
73
|
+
/** The API secret. This data type is not supported in Gemini API. */
|
|
74
74
|
export declare interface ApiAuthApiKeyConfig {
|
|
75
75
|
/** Required. The SecretManager secret version resource name storing API key. e.g. projects/{project}/secrets/{secret}/versions/{version} */
|
|
76
76
|
apiKeySecretVersion?: string;
|
|
@@ -278,8 +278,9 @@ declare interface Auth {
|
|
|
278
278
|
* Sets the headers needed to authenticate with the API service.
|
|
279
279
|
*
|
|
280
280
|
* @param headers - The Headers object that will be updated with the authentication headers.
|
|
281
|
+
* @param url - The URL of the request.
|
|
281
282
|
*/
|
|
282
|
-
addAuthHeaders(headers: Headers): Promise<void>;
|
|
283
|
+
addAuthHeaders(headers: Headers, url?: string): Promise<void>;
|
|
283
284
|
}
|
|
284
285
|
|
|
285
286
|
/** Auth configuration to run the extension. */
|
|
@@ -298,19 +299,19 @@ export declare interface AuthConfig {
|
|
|
298
299
|
oidcConfig?: AuthConfigOidcConfig;
|
|
299
300
|
}
|
|
300
301
|
|
|
301
|
-
/** Config for Google Service Account Authentication. */
|
|
302
|
+
/** Config for Google Service Account Authentication. This data type is not supported in Gemini API. */
|
|
302
303
|
export declare interface AuthConfigGoogleServiceAccountConfig {
|
|
303
304
|
/** Optional. The service account that the extension execution service runs as. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified service account. - If not specified, the Vertex AI Extension Service Agent will be used to execute the Extension. */
|
|
304
305
|
serviceAccount?: string;
|
|
305
306
|
}
|
|
306
307
|
|
|
307
|
-
/** Config for HTTP Basic Authentication. */
|
|
308
|
+
/** Config for HTTP Basic Authentication. This data type is not supported in Gemini API. */
|
|
308
309
|
export declare interface AuthConfigHttpBasicAuthConfig {
|
|
309
310
|
/** Required. The name of the SecretManager secret version resource storing the base64 encoded credentials. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource. */
|
|
310
311
|
credentialSecret?: string;
|
|
311
312
|
}
|
|
312
313
|
|
|
313
|
-
/** Config for user oauth. */
|
|
314
|
+
/** Config for user oauth. This data type is not supported in Gemini API. */
|
|
314
315
|
export declare interface AuthConfigOauthConfig {
|
|
315
316
|
/** Access token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time. */
|
|
316
317
|
accessToken?: string;
|
|
@@ -318,7 +319,7 @@ export declare interface AuthConfigOauthConfig {
|
|
|
318
319
|
serviceAccount?: string;
|
|
319
320
|
}
|
|
320
321
|
|
|
321
|
-
/** Config for user OIDC auth. */
|
|
322
|
+
/** Config for user OIDC auth. This data type is not supported in Gemini API. */
|
|
322
323
|
export declare interface AuthConfigOidcConfig {
|
|
323
324
|
/** OpenID Connect formatted ID token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time. */
|
|
324
325
|
idToken?: string;
|
|
@@ -673,11 +674,11 @@ export declare enum BlockedReason {
|
|
|
673
674
|
*/
|
|
674
675
|
IMAGE_SAFETY = "IMAGE_SAFETY",
|
|
675
676
|
/**
|
|
676
|
-
* The prompt was blocked by Model Armor.
|
|
677
|
+
* The prompt was blocked by Model Armor. This enum value is not supported in Gemini API.
|
|
677
678
|
*/
|
|
678
679
|
MODEL_ARMOR = "MODEL_ARMOR",
|
|
679
680
|
/**
|
|
680
|
-
* The prompt was blocked as a jailbreak attempt.
|
|
681
|
+
* The prompt was blocked as a jailbreak attempt. This enum value is not supported in Gemini API.
|
|
681
682
|
*/
|
|
682
683
|
JAILBREAK = "JAILBREAK"
|
|
683
684
|
}
|
|
@@ -702,15 +703,15 @@ export declare interface CachedContent {
|
|
|
702
703
|
|
|
703
704
|
/** Metadata on the usage of the cached content. */
|
|
704
705
|
export declare interface CachedContentUsageMetadata {
|
|
705
|
-
/** Duration of audio in seconds. */
|
|
706
|
+
/** Duration of audio in seconds. This field is not supported in Gemini API. */
|
|
706
707
|
audioDurationSeconds?: number;
|
|
707
|
-
/** Number of images. */
|
|
708
|
+
/** Number of images. This field is not supported in Gemini API. */
|
|
708
709
|
imageCount?: number;
|
|
709
|
-
/** Number of text characters. */
|
|
710
|
+
/** Number of text characters. This field is not supported in Gemini API. */
|
|
710
711
|
textCount?: number;
|
|
711
712
|
/** Total number of tokens that the cached content consumes. */
|
|
712
713
|
totalTokenCount?: number;
|
|
713
|
-
/** Duration of video in seconds. */
|
|
714
|
+
/** Duration of video in seconds. This field is not supported in Gemini API. */
|
|
714
715
|
videoDurationSeconds?: number;
|
|
715
716
|
}
|
|
716
717
|
|
|
@@ -1041,7 +1042,7 @@ export declare interface Checkpoint {
|
|
|
1041
1042
|
step?: string;
|
|
1042
1043
|
}
|
|
1043
1044
|
|
|
1044
|
-
/** Source attributions for content. */
|
|
1045
|
+
/** Source attributions for content. This data type is not supported in Gemini API. */
|
|
1045
1046
|
export declare interface Citation {
|
|
1046
1047
|
/** Output only. End index into the content. */
|
|
1047
1048
|
endIndex?: number;
|
|
@@ -1538,7 +1539,7 @@ export declare interface CreateTuningJobConfig {
|
|
|
1538
1539
|
be charged usage for any applicable operations.
|
|
1539
1540
|
*/
|
|
1540
1541
|
abortSignal?: AbortSignal;
|
|
1541
|
-
/**
|
|
1542
|
+
/** Validation dataset for tuning. The dataset must be formatted as a JSONL file. */
|
|
1542
1543
|
validationDataset?: TuningValidationDataset;
|
|
1543
1544
|
/** The display name of the tuned Model. The name can be up to 128 characters long and can consist of any UTF-8 characters. */
|
|
1544
1545
|
tunedModelDisplayName?: string;
|
|
@@ -1589,7 +1590,7 @@ export declare interface CreateTuningJobParametersPrivate {
|
|
|
1589
1590
|
*/
|
|
1590
1591
|
export declare function createUserContent(partOrString: PartListUnion | string): Content;
|
|
1591
1592
|
|
|
1592
|
-
/** Distribution computed over a tuning dataset. */
|
|
1593
|
+
/** Distribution computed over a tuning dataset. This data type is not supported in Gemini API. */
|
|
1593
1594
|
export declare interface DatasetDistribution {
|
|
1594
1595
|
/** Output only. Defines the histogram bucket. */
|
|
1595
1596
|
buckets?: DatasetDistributionDistributionBucket[];
|
|
@@ -1609,7 +1610,7 @@ export declare interface DatasetDistribution {
|
|
|
1609
1610
|
sum?: number;
|
|
1610
1611
|
}
|
|
1611
1612
|
|
|
1612
|
-
/** Dataset bucket used to create a histogram for the distribution given a population of values. */
|
|
1613
|
+
/** Dataset bucket used to create a histogram for the distribution given a population of values. This data type is not supported in Gemini API. */
|
|
1613
1614
|
export declare interface DatasetDistributionDistributionBucket {
|
|
1614
1615
|
/** Output only. Number of values in the bucket. */
|
|
1615
1616
|
count?: string;
|
|
@@ -1619,7 +1620,7 @@ export declare interface DatasetDistributionDistributionBucket {
|
|
|
1619
1620
|
right?: number;
|
|
1620
1621
|
}
|
|
1621
1622
|
|
|
1622
|
-
/** Statistics computed over a tuning dataset. */
|
|
1623
|
+
/** Statistics computed over a tuning dataset. This data type is not supported in Gemini API. */
|
|
1623
1624
|
export declare interface DatasetStats {
|
|
1624
1625
|
/** Output only. Number of billable characters in the tuning dataset. */
|
|
1625
1626
|
totalBillableCharacterCount?: string;
|
|
@@ -1753,7 +1754,7 @@ export declare interface DeleteResourceJob {
|
|
|
1753
1754
|
error?: JobError;
|
|
1754
1755
|
}
|
|
1755
1756
|
|
|
1756
|
-
/** Statistics computed for datasets used for distillation. */
|
|
1757
|
+
/** Statistics computed for datasets used for distillation. This data type is not supported in Gemini API. */
|
|
1757
1758
|
export declare interface DistillationDataStats {
|
|
1758
1759
|
/** Output only. Statistics computed for the training dataset. */
|
|
1759
1760
|
trainingDatasetStats?: DatasetStats;
|
|
@@ -1990,7 +1991,7 @@ export declare interface EmbeddingsBatchJobSource {
|
|
|
1990
1991
|
inlinedRequests?: EmbedContentBatch;
|
|
1991
1992
|
}
|
|
1992
1993
|
|
|
1993
|
-
/** Represents a customer-managed encryption key spec that can be applied to a top-level resource. */
|
|
1994
|
+
/** Represents a customer-managed encryption key spec that can be applied to a top-level resource. This data type is not supported in Gemini API. */
|
|
1994
1995
|
export declare interface EncryptionSpec {
|
|
1995
1996
|
/** Required. The Cloud KMS resource identifier of the customer managed encryption key used to protect a resource. Has the form: `projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key`. The key needs to be in the same region as where the compute resource is created. */
|
|
1996
1997
|
kmsKeyName?: string;
|
|
@@ -2054,7 +2055,7 @@ export declare interface ExecutableCode {
|
|
|
2054
2055
|
language?: Language;
|
|
2055
2056
|
}
|
|
2056
2057
|
|
|
2057
|
-
/** Retrieve from data source powered by external API for grounding. The external API is not owned by Google, but need to follow the pre-defined API spec. */
|
|
2058
|
+
/** Retrieve from data source powered by external API for grounding. The external API is not owned by Google, but need to follow the pre-defined API spec. This data type is not supported in Gemini API. */
|
|
2058
2059
|
export declare interface ExternalApi {
|
|
2059
2060
|
/** The authentication config to access the API. Deprecated. Please use auth_config instead. */
|
|
2060
2061
|
apiAuth?: ApiAuth;
|
|
@@ -2070,7 +2071,7 @@ export declare interface ExternalApi {
|
|
|
2070
2071
|
simpleSearchParams?: ExternalApiSimpleSearchParams;
|
|
2071
2072
|
}
|
|
2072
2073
|
|
|
2073
|
-
/** The search parameters to use for the ELASTIC_SEARCH spec. */
|
|
2074
|
+
/** The search parameters to use for the ELASTIC_SEARCH spec. This data type is not supported in Gemini API. */
|
|
2074
2075
|
export declare interface ExternalApiElasticSearchParams {
|
|
2075
2076
|
/** The ElasticSearch index to use. */
|
|
2076
2077
|
index?: string;
|
|
@@ -2080,7 +2081,7 @@ export declare interface ExternalApiElasticSearchParams {
|
|
|
2080
2081
|
searchTemplate?: string;
|
|
2081
2082
|
}
|
|
2082
2083
|
|
|
2083
|
-
/** The search parameters to use for SIMPLE_SEARCH spec. */
|
|
2084
|
+
/** The search parameters to use for SIMPLE_SEARCH spec. This data type is not supported in Gemini API. */
|
|
2084
2085
|
export declare interface ExternalApiSimpleSearchParams {
|
|
2085
2086
|
}
|
|
2086
2087
|
|
|
@@ -2517,7 +2518,7 @@ export declare enum FunctionResponseScheduling {
|
|
|
2517
2518
|
INTERRUPT = "INTERRUPT"
|
|
2518
2519
|
}
|
|
2519
2520
|
|
|
2520
|
-
/** Input example for preference optimization. */
|
|
2521
|
+
/** Input example for preference optimization. This data type is not supported in Gemini API. */
|
|
2521
2522
|
export declare interface GeminiPreferenceExample {
|
|
2522
2523
|
/** List of completions for a given prompt. */
|
|
2523
2524
|
completions?: GeminiPreferenceExampleCompletion[];
|
|
@@ -2525,7 +2526,7 @@ export declare interface GeminiPreferenceExample {
|
|
|
2525
2526
|
contents?: Content[];
|
|
2526
2527
|
}
|
|
2527
2528
|
|
|
2528
|
-
/** Completion and its preference score. */
|
|
2529
|
+
/** Completion and its preference score. This data type is not supported in Gemini API. */
|
|
2529
2530
|
export declare interface GeminiPreferenceExampleCompletion {
|
|
2530
2531
|
/** Single turn completion for the given prompt. */
|
|
2531
2532
|
completion?: Content;
|
|
@@ -2851,13 +2852,13 @@ export declare class GenerateContentResponse {
|
|
|
2851
2852
|
export declare class GenerateContentResponsePromptFeedback {
|
|
2852
2853
|
/** Output only. The reason why the prompt was blocked. */
|
|
2853
2854
|
blockReason?: BlockedReason;
|
|
2854
|
-
/** Output only. A readable message that explains the reason why the prompt was blocked. */
|
|
2855
|
+
/** Output only. A readable message that explains the reason why the prompt was blocked. This field is not supported in Gemini API. */
|
|
2855
2856
|
blockReasonMessage?: string;
|
|
2856
2857
|
/** Output only. A list of safety ratings for the prompt. There is one rating per category. */
|
|
2857
2858
|
safetyRatings?: SafetyRating[];
|
|
2858
2859
|
}
|
|
2859
2860
|
|
|
2860
|
-
/** Usage metadata about response(s). */
|
|
2861
|
+
/** Usage metadata about response(s). This data type is not supported in Gemini API. */
|
|
2861
2862
|
export declare class GenerateContentResponseUsageMetadata {
|
|
2862
2863
|
/** Output only. List of modalities of the cached content in the request input. */
|
|
2863
2864
|
cacheTokensDetails?: ModalityTokenCount[];
|
|
@@ -3117,11 +3118,11 @@ export declare interface GenerateVideosSource {
|
|
|
3117
3118
|
export declare interface GenerationConfig {
|
|
3118
3119
|
/** Optional. Config for model selection. */
|
|
3119
3120
|
modelSelectionConfig?: ModelSelectionConfig;
|
|
3120
|
-
/** Optional. If enabled, audio timestamp will be included in the request to the model. */
|
|
3121
|
+
/** Optional. If enabled, audio timestamp will be included in the request to the model. This field is not supported in Gemini API. */
|
|
3121
3122
|
audioTimestamp?: boolean;
|
|
3122
3123
|
/** Optional. Number of candidates to generate. */
|
|
3123
3124
|
candidateCount?: number;
|
|
3124
|
-
/** Optional. If enabled, the model will detect emotions and adapt its responses accordingly. */
|
|
3125
|
+
/** Optional. If enabled, the model will detect emotions and adapt its responses accordingly. This field is not supported in Gemini API. */
|
|
3125
3126
|
enableAffectiveDialog?: boolean;
|
|
3126
3127
|
/** Optional. Frequency penalties. */
|
|
3127
3128
|
frequencyPenalty?: number;
|
|
@@ -3143,7 +3144,7 @@ export declare interface GenerationConfig {
|
|
|
3143
3144
|
responseModalities?: Modality[];
|
|
3144
3145
|
/** 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. */
|
|
3145
3146
|
responseSchema?: Schema;
|
|
3146
|
-
/** Optional. Routing configuration. */
|
|
3147
|
+
/** Optional. Routing configuration. This field is not supported in Gemini API. */
|
|
3147
3148
|
routingConfig?: GenerationConfigRoutingConfig;
|
|
3148
3149
|
/** Optional. Seed. */
|
|
3149
3150
|
seed?: number;
|
|
@@ -3159,11 +3160,11 @@ export declare interface GenerationConfig {
|
|
|
3159
3160
|
topK?: number;
|
|
3160
3161
|
/** Optional. If specified, nucleus sampling will be used. */
|
|
3161
3162
|
topP?: number;
|
|
3162
|
-
/** Optional. Enables enhanced civic answers. It may not be available for all models. */
|
|
3163
|
+
/** Optional. Enables enhanced civic answers. It may not be available for all models. This field is not supported in Vertex AI. */
|
|
3163
3164
|
enableEnhancedCivicAnswers?: boolean;
|
|
3164
3165
|
}
|
|
3165
3166
|
|
|
3166
|
-
/** The configuration for routing the request to a specific model. */
|
|
3167
|
+
/** The configuration for routing the request to a specific model. This data type is not supported in Gemini API. */
|
|
3167
3168
|
export declare interface GenerationConfigRoutingConfig {
|
|
3168
3169
|
/** Automated routing. */
|
|
3169
3170
|
autoMode?: GenerationConfigRoutingConfigAutoRoutingMode;
|
|
@@ -3171,13 +3172,13 @@ export declare interface GenerationConfigRoutingConfig {
|
|
|
3171
3172
|
manualMode?: GenerationConfigRoutingConfigManualRoutingMode;
|
|
3172
3173
|
}
|
|
3173
3174
|
|
|
3174
|
-
/** When automated routing is specified, the routing will be determined by the pretrained routing model and customer provided model routing preference. */
|
|
3175
|
+
/** When automated routing is specified, the routing will be determined by the pretrained routing model and customer provided model routing preference. This data type is not supported in Gemini API. */
|
|
3175
3176
|
export declare interface GenerationConfigRoutingConfigAutoRoutingMode {
|
|
3176
3177
|
/** The model routing preference. */
|
|
3177
3178
|
modelRoutingPreference?: 'UNKNOWN' | 'PRIORITIZE_QUALITY' | 'BALANCED' | 'PRIORITIZE_COST';
|
|
3178
3179
|
}
|
|
3179
3180
|
|
|
3180
|
-
/** When manual routing is set, the specified model will be used directly. */
|
|
3181
|
+
/** When manual routing is set, the specified model will be used directly. This data type is not supported in Gemini API. */
|
|
3181
3182
|
export declare interface GenerationConfigRoutingConfigManualRoutingMode {
|
|
3182
3183
|
/** 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). */
|
|
3183
3184
|
modelName?: string;
|
|
@@ -3441,7 +3442,7 @@ export declare interface GoogleMaps {
|
|
|
3441
3442
|
enableWidget?: boolean;
|
|
3442
3443
|
}
|
|
3443
3444
|
|
|
3444
|
-
/** The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). */
|
|
3445
|
+
/** The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). This data type is not supported in Gemini API. */
|
|
3445
3446
|
export declare interface GoogleRpcStatus {
|
|
3446
3447
|
/** The status code, which should be an enum value of google.rpc.Code. */
|
|
3447
3448
|
code?: number;
|
|
@@ -3457,7 +3458,7 @@ export declare interface GoogleSearch {
|
|
|
3457
3458
|
If customers set a start time, they must set an end time (and vice versa).
|
|
3458
3459
|
*/
|
|
3459
3460
|
timeRangeFilter?: Interval;
|
|
3460
|
-
/** Optional. List of domains to be excluded from the search results. The default limit is 2000 domains. Example: ["amazon.com", "facebook.com"]. */
|
|
3461
|
+
/** Optional. List of domains to be excluded from the search results. The default limit is 2000 domains. Example: ["amazon.com", "facebook.com"]. This field is not supported in Gemini API. */
|
|
3461
3462
|
excludeDomains?: string[];
|
|
3462
3463
|
}
|
|
3463
3464
|
|
|
@@ -3467,7 +3468,7 @@ export declare interface GoogleSearchRetrieval {
|
|
|
3467
3468
|
dynamicRetrievalConfig?: DynamicRetrievalConfig;
|
|
3468
3469
|
}
|
|
3469
3470
|
|
|
3470
|
-
/** Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp */
|
|
3471
|
+
/** Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp. This data type is not supported in Gemini API. */
|
|
3471
3472
|
export declare interface GoogleTypeDate {
|
|
3472
3473
|
/** Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant. */
|
|
3473
3474
|
day?: number;
|
|
@@ -3479,15 +3480,15 @@ export declare interface GoogleTypeDate {
|
|
|
3479
3480
|
|
|
3480
3481
|
/** Grounding chunk. */
|
|
3481
3482
|
export declare interface GroundingChunk {
|
|
3482
|
-
/** Grounding chunk from Google Maps. */
|
|
3483
|
+
/** Grounding chunk from Google Maps. This field is not supported in Gemini API. */
|
|
3483
3484
|
maps?: GroundingChunkMaps;
|
|
3484
|
-
/** Grounding chunk from context retrieved by the retrieval tools. */
|
|
3485
|
+
/** Grounding chunk from context retrieved by the retrieval tools. This field is not supported in Gemini API. */
|
|
3485
3486
|
retrievedContext?: GroundingChunkRetrievedContext;
|
|
3486
3487
|
/** Grounding chunk from the web. */
|
|
3487
3488
|
web?: GroundingChunkWeb;
|
|
3488
3489
|
}
|
|
3489
3490
|
|
|
3490
|
-
/** Chunk from Google Maps. */
|
|
3491
|
+
/** Chunk from Google Maps. This data type is not supported in Gemini API. */
|
|
3491
3492
|
export declare interface GroundingChunkMaps {
|
|
3492
3493
|
/** 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. */
|
|
3493
3494
|
placeAnswerSources?: GroundingChunkMapsPlaceAnswerSources;
|
|
@@ -3501,7 +3502,7 @@ export declare interface GroundingChunkMaps {
|
|
|
3501
3502
|
uri?: string;
|
|
3502
3503
|
}
|
|
3503
3504
|
|
|
3504
|
-
/** Sources used to generate the place answer. */
|
|
3505
|
+
/** Sources used to generate the place answer. This data type is not supported in Gemini API. */
|
|
3505
3506
|
export declare interface GroundingChunkMapsPlaceAnswerSources {
|
|
3506
3507
|
/** A link where users can flag a problem with the generated answer. */
|
|
3507
3508
|
flagContentUri?: string;
|
|
@@ -3509,7 +3510,7 @@ export declare interface GroundingChunkMapsPlaceAnswerSources {
|
|
|
3509
3510
|
reviewSnippets?: GroundingChunkMapsPlaceAnswerSourcesReviewSnippet[];
|
|
3510
3511
|
}
|
|
3511
3512
|
|
|
3512
|
-
/** Author attribution for a photo or review. */
|
|
3513
|
+
/** Author attribution for a photo or review. This data type is not supported in Gemini API. */
|
|
3513
3514
|
export declare interface GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution {
|
|
3514
3515
|
/** Name of the author of the Photo or Review. */
|
|
3515
3516
|
displayName?: string;
|
|
@@ -3519,7 +3520,7 @@ export declare interface GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution {
|
|
|
3519
3520
|
uri?: string;
|
|
3520
3521
|
}
|
|
3521
3522
|
|
|
3522
|
-
/** Encapsulates a review snippet. */
|
|
3523
|
+
/** Encapsulates a review snippet. This data type is not supported in Gemini API. */
|
|
3523
3524
|
export declare interface GroundingChunkMapsPlaceAnswerSourcesReviewSnippet {
|
|
3524
3525
|
/** This review's author. */
|
|
3525
3526
|
authorAttribution?: GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution;
|
|
@@ -3537,7 +3538,7 @@ export declare interface GroundingChunkMapsPlaceAnswerSourcesReviewSnippet {
|
|
|
3537
3538
|
title?: string;
|
|
3538
3539
|
}
|
|
3539
3540
|
|
|
3540
|
-
/** Chunk from context retrieved by the retrieval tools. */
|
|
3541
|
+
/** Chunk from context retrieved by the retrieval tools. This data type is not supported in Gemini API. */
|
|
3541
3542
|
export declare interface GroundingChunkRetrievedContext {
|
|
3542
3543
|
/** Output only. The full document name for the referenced Vertex AI Search document. */
|
|
3543
3544
|
documentName?: string;
|
|
@@ -3553,7 +3554,7 @@ export declare interface GroundingChunkRetrievedContext {
|
|
|
3553
3554
|
|
|
3554
3555
|
/** Chunk from the web. */
|
|
3555
3556
|
export declare interface GroundingChunkWeb {
|
|
3556
|
-
/** Domain of the (original) URI. */
|
|
3557
|
+
/** Domain of the (original) URI. This field is not supported in Gemini API. */
|
|
3557
3558
|
domain?: string;
|
|
3558
3559
|
/** Title of the chunk. */
|
|
3559
3560
|
title?: string;
|
|
@@ -3563,7 +3564,7 @@ export declare interface GroundingChunkWeb {
|
|
|
3563
3564
|
|
|
3564
3565
|
/** Metadata returned to client when grounding is enabled. */
|
|
3565
3566
|
export declare interface GroundingMetadata {
|
|
3566
|
-
/** 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. */
|
|
3567
|
+
/** 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. This field is not supported in Gemini API. */
|
|
3567
3568
|
googleMapsWidgetContextToken?: string;
|
|
3568
3569
|
/** List of supporting references retrieved from specified grounding source. */
|
|
3569
3570
|
groundingChunks?: GroundingChunk[];
|
|
@@ -3571,17 +3572,17 @@ export declare interface GroundingMetadata {
|
|
|
3571
3572
|
groundingSupports?: GroundingSupport[];
|
|
3572
3573
|
/** Optional. Output only. Retrieval metadata. */
|
|
3573
3574
|
retrievalMetadata?: RetrievalMetadata;
|
|
3574
|
-
/** Optional. Queries executed by the retrieval tools. */
|
|
3575
|
+
/** Optional. Queries executed by the retrieval tools. This field is not supported in Gemini API. */
|
|
3575
3576
|
retrievalQueries?: string[];
|
|
3576
3577
|
/** Optional. Google search entry for the following-up web searches. */
|
|
3577
3578
|
searchEntryPoint?: SearchEntryPoint;
|
|
3578
|
-
/** Optional. Output only. List of source flagging uris. This is currently populated only for Google Maps grounding. */
|
|
3579
|
+
/** Optional. Output only. List of source flagging uris. This is currently populated only for Google Maps grounding. This field is not supported in Gemini API. */
|
|
3579
3580
|
sourceFlaggingUris?: GroundingMetadataSourceFlaggingUri[];
|
|
3580
3581
|
/** Optional. Web search queries for the following-up web search. */
|
|
3581
3582
|
webSearchQueries?: string[];
|
|
3582
3583
|
}
|
|
3583
3584
|
|
|
3584
|
-
/** Source content flagging uri for a place or review. This is currently populated only for Google Maps grounding. */
|
|
3585
|
+
/** Source content flagging uri for a place or review. This is currently populated only for Google Maps grounding. This data type is not supported in Gemini API. */
|
|
3585
3586
|
export declare interface GroundingMetadataSourceFlaggingUri {
|
|
3586
3587
|
/** A link where users can flag a problem with the source (place or review). */
|
|
3587
3588
|
flagContentUri?: string;
|
|
@@ -3670,23 +3671,23 @@ export declare enum HarmCategory {
|
|
|
3670
3671
|
*/
|
|
3671
3672
|
HARM_CATEGORY_CIVIC_INTEGRITY = "HARM_CATEGORY_CIVIC_INTEGRITY",
|
|
3672
3673
|
/**
|
|
3673
|
-
* The harm category is image hate.
|
|
3674
|
+
* The harm category is image hate. This enum value is not supported in Gemini API.
|
|
3674
3675
|
*/
|
|
3675
3676
|
HARM_CATEGORY_IMAGE_HATE = "HARM_CATEGORY_IMAGE_HATE",
|
|
3676
3677
|
/**
|
|
3677
|
-
* The harm category is image dangerous content.
|
|
3678
|
+
* The harm category is image dangerous content. This enum value is not supported in Gemini API.
|
|
3678
3679
|
*/
|
|
3679
3680
|
HARM_CATEGORY_IMAGE_DANGEROUS_CONTENT = "HARM_CATEGORY_IMAGE_DANGEROUS_CONTENT",
|
|
3680
3681
|
/**
|
|
3681
|
-
* The harm category is image harassment.
|
|
3682
|
+
* The harm category is image harassment. This enum value is not supported in Gemini API.
|
|
3682
3683
|
*/
|
|
3683
3684
|
HARM_CATEGORY_IMAGE_HARASSMENT = "HARM_CATEGORY_IMAGE_HARASSMENT",
|
|
3684
3685
|
/**
|
|
3685
|
-
* The harm category is image sexually explicit content.
|
|
3686
|
+
* The harm category is image sexually explicit content. This enum value is not supported in Gemini API.
|
|
3686
3687
|
*/
|
|
3687
3688
|
HARM_CATEGORY_IMAGE_SEXUALLY_EXPLICIT = "HARM_CATEGORY_IMAGE_SEXUALLY_EXPLICIT",
|
|
3688
3689
|
/**
|
|
3689
|
-
* The harm category is for jailbreak prompts.
|
|
3690
|
+
* The harm category is for jailbreak prompts. This enum value is not supported in Gemini API.
|
|
3690
3691
|
*/
|
|
3691
3692
|
HARM_CATEGORY_JAILBREAK = "HARM_CATEGORY_JAILBREAK"
|
|
3692
3693
|
}
|
|
@@ -5756,7 +5757,7 @@ export declare interface Part {
|
|
|
5756
5757
|
|
|
5757
5758
|
export declare type PartListUnion = PartUnion[] | PartUnion;
|
|
5758
5759
|
|
|
5759
|
-
/** Tuning spec for Partner models. */
|
|
5760
|
+
/** Tuning spec for Partner models. This data type is not supported in Gemini API. */
|
|
5760
5761
|
export declare interface PartnerModelTuningSpec {
|
|
5761
5762
|
/** Hyperparameters for tuning. The accepted hyper_parameters and their valid range of values will differ depending on the base model. */
|
|
5762
5763
|
hyperParameters?: Record<string, unknown>;
|
|
@@ -5790,7 +5791,7 @@ export declare interface PrebuiltVoiceConfig {
|
|
|
5790
5791
|
voiceName?: string;
|
|
5791
5792
|
}
|
|
5792
5793
|
|
|
5793
|
-
/** Statistics computed for datasets used for preference optimization. */
|
|
5794
|
+
/** Statistics computed for datasets used for preference optimization. This data type is not supported in Gemini API. */
|
|
5794
5795
|
export declare interface PreferenceOptimizationDataStats {
|
|
5795
5796
|
/** Output only. Dataset distributions for scores variance per example. */
|
|
5796
5797
|
scoreVariancePerExampleDistribution?: DatasetDistribution;
|
|
@@ -5810,7 +5811,7 @@ export declare interface PreferenceOptimizationDataStats {
|
|
|
5810
5811
|
userOutputTokenDistribution?: DatasetDistribution;
|
|
5811
5812
|
}
|
|
5812
5813
|
|
|
5813
|
-
/** A pre-tuned model for continuous tuning. */
|
|
5814
|
+
/** A pre-tuned model for continuous tuning. This data type is not supported in Gemini API. */
|
|
5814
5815
|
export declare interface PreTunedModel {
|
|
5815
5816
|
/** Output only. The name of the base model this PreTunedModel was tuned from. */
|
|
5816
5817
|
baseModel?: string;
|
|
@@ -5834,7 +5835,7 @@ export declare interface ProductImage {
|
|
|
5834
5835
|
productImage?: Image_2;
|
|
5835
5836
|
}
|
|
5836
5837
|
|
|
5837
|
-
/** A RagChunk includes the content of a chunk of a RagFile, and associated metadata. */
|
|
5838
|
+
/** A RagChunk includes the content of a chunk of a RagFile, and associated metadata. This data type is not supported in Gemini API. */
|
|
5838
5839
|
export declare interface RagChunk {
|
|
5839
5840
|
/** If populated, represents where the chunk starts and ends in the document. */
|
|
5840
5841
|
pageSpan?: RagChunkPageSpan;
|
|
@@ -5842,7 +5843,7 @@ export declare interface RagChunk {
|
|
|
5842
5843
|
text?: string;
|
|
5843
5844
|
}
|
|
5844
5845
|
|
|
5845
|
-
/** Represents where the chunk starts and ends in the document. */
|
|
5846
|
+
/** Represents where the chunk starts and ends in the document. This data type is not supported in Gemini API. */
|
|
5846
5847
|
export declare interface RagChunkPageSpan {
|
|
5847
5848
|
/** Page where chunk starts in the document. Inclusive. 1-indexed. */
|
|
5848
5849
|
firstPage?: number;
|
|
@@ -5850,7 +5851,7 @@ export declare interface RagChunkPageSpan {
|
|
|
5850
5851
|
lastPage?: number;
|
|
5851
5852
|
}
|
|
5852
5853
|
|
|
5853
|
-
/** Specifies the context retrieval config. */
|
|
5854
|
+
/** Specifies the context retrieval config. This data type is not supported in Gemini API. */
|
|
5854
5855
|
export declare interface RagRetrievalConfig {
|
|
5855
5856
|
/** Optional. Config for filters. */
|
|
5856
5857
|
filter?: RagRetrievalConfigFilter;
|
|
@@ -5862,7 +5863,7 @@ export declare interface RagRetrievalConfig {
|
|
|
5862
5863
|
topK?: number;
|
|
5863
5864
|
}
|
|
5864
5865
|
|
|
5865
|
-
/** Config for filters. */
|
|
5866
|
+
/** Config for filters. This data type is not supported in Gemini API. */
|
|
5866
5867
|
export declare interface RagRetrievalConfigFilter {
|
|
5867
5868
|
/** Optional. String for metadata filtering. */
|
|
5868
5869
|
metadataFilter?: string;
|
|
@@ -5872,13 +5873,13 @@ export declare interface RagRetrievalConfigFilter {
|
|
|
5872
5873
|
vectorSimilarityThreshold?: number;
|
|
5873
5874
|
}
|
|
5874
5875
|
|
|
5875
|
-
/** Config for Hybrid Search. */
|
|
5876
|
+
/** Config for Hybrid Search. This data type is not supported in Gemini API. */
|
|
5876
5877
|
export declare interface RagRetrievalConfigHybridSearch {
|
|
5877
5878
|
/** Optional. Alpha value controls the weight between dense and sparse vector search results. The range is [0, 1], while 0 means sparse vector search only and 1 means dense vector search only. The default value is 0.5 which balances sparse and dense vector search equally. */
|
|
5878
5879
|
alpha?: number;
|
|
5879
5880
|
}
|
|
5880
5881
|
|
|
5881
|
-
/** Config for ranking and reranking. */
|
|
5882
|
+
/** Config for ranking and reranking. This data type is not supported in Gemini API. */
|
|
5882
5883
|
export declare interface RagRetrievalConfigRanking {
|
|
5883
5884
|
/** Optional. Config for LlmRanker. */
|
|
5884
5885
|
llmRanker?: RagRetrievalConfigRankingLlmRanker;
|
|
@@ -5886,13 +5887,13 @@ export declare interface RagRetrievalConfigRanking {
|
|
|
5886
5887
|
rankService?: RagRetrievalConfigRankingRankService;
|
|
5887
5888
|
}
|
|
5888
5889
|
|
|
5889
|
-
/** Config for LlmRanker. */
|
|
5890
|
+
/** Config for LlmRanker. This data type is not supported in Gemini API. */
|
|
5890
5891
|
export declare interface RagRetrievalConfigRankingLlmRanker {
|
|
5891
5892
|
/** Optional. The model name used for ranking. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference#supported-models). */
|
|
5892
5893
|
modelName?: string;
|
|
5893
5894
|
}
|
|
5894
5895
|
|
|
5895
|
-
/** Config for Rank Service. */
|
|
5896
|
+
/** Config for Rank Service. This data type is not supported in Gemini API. */
|
|
5896
5897
|
export declare interface RagRetrievalConfigRankingRankService {
|
|
5897
5898
|
/** Optional. The model name of the rank service. Format: `semantic-ranker-512@latest` */
|
|
5898
5899
|
modelName?: string;
|
|
@@ -6042,7 +6043,7 @@ export declare class ReplayResponse {
|
|
|
6042
6043
|
sdkResponseSegments?: Record<string, unknown>[];
|
|
6043
6044
|
}
|
|
6044
6045
|
|
|
6045
|
-
/** Defines a retrieval tool that model can call to access external knowledge. */
|
|
6046
|
+
/** Defines a retrieval tool that model can call to access external knowledge. This data type is not supported in Gemini API. */
|
|
6046
6047
|
export declare interface Retrieval {
|
|
6047
6048
|
/** Optional. Deprecated. This option is no longer supported. */
|
|
6048
6049
|
disableAttribution?: boolean;
|
|
@@ -6097,11 +6098,11 @@ export declare interface SafetyRating {
|
|
|
6097
6098
|
overwrittenThreshold?: HarmBlockThreshold;
|
|
6098
6099
|
/** Output only. Harm probability levels in the content. */
|
|
6099
6100
|
probability?: HarmProbability;
|
|
6100
|
-
/** Output only. Harm probability score. */
|
|
6101
|
+
/** Output only. Harm probability score. This field is not supported in Gemini API. */
|
|
6101
6102
|
probabilityScore?: number;
|
|
6102
6103
|
/** Output only. Harm severity levels in the content. */
|
|
6103
6104
|
severity?: HarmSeverity;
|
|
6104
|
-
/** Output only. Harm severity score. */
|
|
6105
|
+
/** Output only. Harm severity score. This field is not supported in Gemini API. */
|
|
6105
6106
|
severityScore?: number;
|
|
6106
6107
|
}
|
|
6107
6108
|
|
|
@@ -6628,7 +6629,7 @@ export declare enum SubjectReferenceType {
|
|
|
6628
6629
|
SUBJECT_TYPE_PRODUCT = "SUBJECT_TYPE_PRODUCT"
|
|
6629
6630
|
}
|
|
6630
6631
|
|
|
6631
|
-
/** Hyperparameters for SFT. */
|
|
6632
|
+
/** Hyperparameters for SFT. This data type is not supported in Gemini API. */
|
|
6632
6633
|
export declare interface SupervisedHyperParameters {
|
|
6633
6634
|
/** Optional. Adapter size for tuning. */
|
|
6634
6635
|
adapterSize?: AdapterSize;
|
|
@@ -6642,7 +6643,7 @@ export declare interface SupervisedHyperParameters {
|
|
|
6642
6643
|
learningRateMultiplier?: number;
|
|
6643
6644
|
}
|
|
6644
6645
|
|
|
6645
|
-
/** Dataset distribution for Supervised Tuning. */
|
|
6646
|
+
/** Dataset distribution for Supervised Tuning. This data type is not supported in Gemini API. */
|
|
6646
6647
|
export declare interface SupervisedTuningDatasetDistribution {
|
|
6647
6648
|
/** Output only. Sum of a given population of values that are billable. */
|
|
6648
6649
|
billableSum?: string;
|
|
@@ -6664,7 +6665,7 @@ export declare interface SupervisedTuningDatasetDistribution {
|
|
|
6664
6665
|
sum?: string;
|
|
6665
6666
|
}
|
|
6666
6667
|
|
|
6667
|
-
/** Dataset bucket used to create a histogram for the distribution given a population of values. */
|
|
6668
|
+
/** Dataset bucket used to create a histogram for the distribution given a population of values. This data type is not supported in Gemini API. */
|
|
6668
6669
|
export declare interface SupervisedTuningDatasetDistributionDatasetBucket {
|
|
6669
6670
|
/** Output only. Number of values in the bucket. */
|
|
6670
6671
|
count?: number;
|
|
@@ -6674,7 +6675,7 @@ export declare interface SupervisedTuningDatasetDistributionDatasetBucket {
|
|
|
6674
6675
|
right?: number;
|
|
6675
6676
|
}
|
|
6676
6677
|
|
|
6677
|
-
/** Tuning data statistics for Supervised Tuning. */
|
|
6678
|
+
/** Tuning data statistics for Supervised Tuning. This data type is not supported in Gemini API. */
|
|
6678
6679
|
export declare interface SupervisedTuningDataStats {
|
|
6679
6680
|
/** Output only. For each index in `truncated_example_indices`, the user-facing reason why the example was dropped. */
|
|
6680
6681
|
droppedExampleReasons?: string[];
|
|
@@ -6702,7 +6703,7 @@ export declare interface SupervisedTuningDataStats {
|
|
|
6702
6703
|
userOutputTokenDistribution?: SupervisedTuningDatasetDistribution;
|
|
6703
6704
|
}
|
|
6704
6705
|
|
|
6705
|
-
/** Tuning Spec for Supervised Tuning for first party models. */
|
|
6706
|
+
/** Tuning Spec for Supervised Tuning for first party models. This data type is not supported in Gemini API. */
|
|
6706
6707
|
export declare interface SupervisedTuningSpec {
|
|
6707
6708
|
/** 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. */
|
|
6708
6709
|
exportLastCheckpointOnly?: boolean;
|
|
@@ -6856,7 +6857,7 @@ export declare interface TokensInfo {
|
|
|
6856
6857
|
export declare interface Tool {
|
|
6857
6858
|
/** List of function declarations that the tool supports. */
|
|
6858
6859
|
functionDeclarations?: FunctionDeclaration[];
|
|
6859
|
-
/** Optional. Retrieval tool type. System will always execute the provided retrieval tool(s) to get external knowledge to answer the prompt. Retrieval results are presented to the model for generation. */
|
|
6860
|
+
/** Optional. Retrieval tool type. System will always execute the provided retrieval tool(s) to get external knowledge to answer the prompt. Retrieval results are presented to the model for generation. This field is not supported in Gemini API. */
|
|
6860
6861
|
retrieval?: Retrieval;
|
|
6861
6862
|
/** Optional. Google Search tool type. Specialized retrieval tool
|
|
6862
6863
|
that is powered by Google Search. */
|
|
@@ -6879,7 +6880,7 @@ export declare interface Tool {
|
|
|
6879
6880
|
codeExecution?: ToolCodeExecution;
|
|
6880
6881
|
}
|
|
6881
6882
|
|
|
6882
|
-
/** 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. */
|
|
6883
|
+
/** Tool that executes code generated by the model, and automatically returns the result to the model. See also [ExecutableCode]and [CodeExecutionResult] which are input and output to this tool. This data type is not supported in Gemini API. */
|
|
6883
6884
|
export declare interface ToolCodeExecution {
|
|
6884
6885
|
}
|
|
6885
6886
|
|
|
@@ -6979,7 +6980,7 @@ export declare interface TuningDataset {
|
|
|
6979
6980
|
examples?: TuningExample[];
|
|
6980
6981
|
}
|
|
6981
6982
|
|
|
6982
|
-
/** The tuning data statistic values for TuningJob. */
|
|
6983
|
+
/** The tuning data statistic values for TuningJob. This data type is not supported in Gemini API. */
|
|
6983
6984
|
export declare interface TuningDataStats {
|
|
6984
6985
|
/** Output only. Statistics for distillation. */
|
|
6985
6986
|
distillationDataStats?: DistillationDataStats;
|
|
@@ -6989,7 +6990,7 @@ export declare interface TuningDataStats {
|
|
|
6989
6990
|
supervisedTuningDataStats?: SupervisedTuningDataStats;
|
|
6990
6991
|
}
|
|
6991
6992
|
|
|
6992
|
-
/** A single example for tuning. */
|
|
6993
|
+
/** A single example for tuning. This data type is not supported in Vertex AI. */
|
|
6993
6994
|
export declare interface TuningExample {
|
|
6994
6995
|
/** Required. The expected model output. */
|
|
6995
6996
|
output?: string;
|
|
@@ -7149,7 +7150,7 @@ export declare enum TuningTask {
|
|
|
7149
7150
|
export declare interface TuningValidationDataset {
|
|
7150
7151
|
/** GCS URI of the file containing validation dataset in JSONL format. */
|
|
7151
7152
|
gcsUri?: string;
|
|
7152
|
-
/** The resource name of the Vertex Multimodal Dataset that is used as
|
|
7153
|
+
/** The resource name of the Vertex Multimodal Dataset that is used as validation dataset. Example: 'projects/my-project-id-or-number/locations/my-location/datasets/my-dataset-id'. */
|
|
7153
7154
|
vertexDatasetResource?: string;
|
|
7154
7155
|
}
|
|
7155
7156
|
|
|
@@ -7851,7 +7852,7 @@ export declare interface UsageMetadata {
|
|
|
7851
7852
|
trafficType?: TrafficType;
|
|
7852
7853
|
}
|
|
7853
7854
|
|
|
7854
|
-
/** Hyperparameters for Veo. */
|
|
7855
|
+
/** Hyperparameters for Veo. This data type is not supported in Gemini API. */
|
|
7855
7856
|
export declare interface VeoHyperParameters {
|
|
7856
7857
|
/** Optional. Number of complete passes the model makes over the entire training dataset during training. */
|
|
7857
7858
|
epochCount?: string;
|
|
@@ -7861,7 +7862,7 @@ export declare interface VeoHyperParameters {
|
|
|
7861
7862
|
tuningTask?: TuningTask;
|
|
7862
7863
|
}
|
|
7863
7864
|
|
|
7864
|
-
/** Tuning Spec for Veo Model Tuning. */
|
|
7865
|
+
/** Tuning Spec for Veo Model Tuning. This data type is not supported in Gemini API. */
|
|
7865
7866
|
export declare interface VeoTuningSpec {
|
|
7866
7867
|
/** Optional. Hyperparameters for Veo. */
|
|
7867
7868
|
hyperParameters?: VeoHyperParameters;
|
|
@@ -7871,7 +7872,7 @@ export declare interface VeoTuningSpec {
|
|
|
7871
7872
|
validationDatasetUri?: string;
|
|
7872
7873
|
}
|
|
7873
7874
|
|
|
7874
|
-
/** Retrieve from Vertex AI Search datastore or engine for grounding. datastore and engine are mutually exclusive. See https://cloud.google.com/products/agent-builder */
|
|
7875
|
+
/** Retrieve from Vertex AI Search datastore or engine for grounding. datastore and engine are mutually exclusive. See https://cloud.google.com/products/agent-builder. This data type is not supported in Gemini API. */
|
|
7875
7876
|
export declare interface VertexAISearch {
|
|
7876
7877
|
/** 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. */
|
|
7877
7878
|
dataStoreSpecs?: VertexAISearchDataStoreSpec[];
|
|
@@ -7885,7 +7886,7 @@ export declare interface VertexAISearch {
|
|
|
7885
7886
|
maxResults?: number;
|
|
7886
7887
|
}
|
|
7887
7888
|
|
|
7888
|
-
/** Define data stores within engine to filter on in a search call and configurations for those data stores. For more information, see https://cloud.google.com/generative-ai-app-builder/docs/reference/rpc/google.cloud.discoveryengine.v1#datastorespec */
|
|
7889
|
+
/** Define data stores within engine to filter on in a search call and configurations for those data stores. For more information, see https://cloud.google.com/generative-ai-app-builder/docs/reference/rpc/google.cloud.discoveryengine.v1#datastorespec. This data type is not supported in Gemini API. */
|
|
7889
7890
|
export declare interface VertexAISearchDataStoreSpec {
|
|
7890
7891
|
/** Full resource name of DataStore, such as Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}` */
|
|
7891
7892
|
dataStore?: string;
|
|
@@ -7893,7 +7894,7 @@ export declare interface VertexAISearchDataStoreSpec {
|
|
|
7893
7894
|
filter?: string;
|
|
7894
7895
|
}
|
|
7895
7896
|
|
|
7896
|
-
/** Retrieve from Vertex RAG Store for grounding. */
|
|
7897
|
+
/** Retrieve from Vertex RAG Store for grounding. This data type is not supported in Gemini API. */
|
|
7897
7898
|
export declare interface VertexRagStore {
|
|
7898
7899
|
/** Optional. Deprecated. Please use rag_resources instead. */
|
|
7899
7900
|
ragCorpora?: string[];
|
|
@@ -7909,7 +7910,7 @@ export declare interface VertexRagStore {
|
|
|
7909
7910
|
vectorDistanceThreshold?: number;
|
|
7910
7911
|
}
|
|
7911
7912
|
|
|
7912
|
-
/** The definition of the Rag resource. */
|
|
7913
|
+
/** The definition of the Rag resource. This data type is not supported in Gemini API. */
|
|
7913
7914
|
export declare interface VertexRagStoreRagResource {
|
|
7914
7915
|
/** Optional. RagCorpora resource name. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` */
|
|
7915
7916
|
ragCorpus?: string;
|