@maxim_mazurok/gapi.client.aiplatform-v1 0.0.20240429 → 0.0.20240501
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/index.d.ts +36 -9
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://aiplatform.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20240501
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -2164,6 +2164,12 @@ declare namespace gapi.client {
|
|
|
2164
2164
|
neighborCount?: number;
|
|
2165
2165
|
/** Crowding is a constraint on a neighbor list produced by nearest neighbor search requiring that no more than some value k' of the k neighbors returned have the same value of crowding_attribute. It's used for improving result diversity. This field is the maximum number of matches with the same crowding tag. */
|
|
2166
2166
|
perCrowdingAttributeNeighborCount?: number;
|
|
2167
|
+
/** Optional. Represents RRF algorithm that combines search results. */
|
|
2168
|
+
rrf?: GoogleCloudAiplatformV1FindNeighborsRequestQueryRRF;
|
|
2169
|
+
}
|
|
2170
|
+
interface GoogleCloudAiplatformV1FindNeighborsRequestQueryRRF {
|
|
2171
|
+
/** Required. Users can provide an alpha value to give more weight to dense vs sparse results. For example, if the alpha is 0, we only return sparse and if the alpha is 1, we only return dense. */
|
|
2172
|
+
alpha?: number;
|
|
2167
2173
|
}
|
|
2168
2174
|
interface GoogleCloudAiplatformV1FindNeighborsResponse {
|
|
2169
2175
|
/** The nearest neighbors of the query datapoints. */
|
|
@@ -2180,6 +2186,8 @@ declare namespace gapi.client {
|
|
|
2180
2186
|
datapoint?: GoogleCloudAiplatformV1IndexDatapoint;
|
|
2181
2187
|
/** The distance between the neighbor and the dense embedding query. */
|
|
2182
2188
|
distance?: number;
|
|
2189
|
+
/** The distance between the neighbor and the query sparse_embedding. */
|
|
2190
|
+
sparseDistance?: number;
|
|
2183
2191
|
}
|
|
2184
2192
|
interface GoogleCloudAiplatformV1FractionSplit {
|
|
2185
2193
|
/** The fraction of the input data that is to be used to evaluate the Model. */
|
|
@@ -2441,6 +2449,8 @@ declare namespace gapi.client {
|
|
|
2441
2449
|
numericRestricts?: GoogleCloudAiplatformV1IndexDatapointNumericRestriction[];
|
|
2442
2450
|
/** Optional. List of Restrict of the datapoint, used to perform "restricted searches" where boolean rule are used to filter the subset of the database eligible for matching. This uses categorical tokens. See: https://cloud.google.com/vertex-ai/docs/matching-engine/filtering */
|
|
2443
2451
|
restricts?: GoogleCloudAiplatformV1IndexDatapointRestriction[];
|
|
2452
|
+
/** Optional. Feature embedding vector for sparse index. */
|
|
2453
|
+
sparseEmbedding?: GoogleCloudAiplatformV1IndexDatapointSparseEmbedding;
|
|
2444
2454
|
}
|
|
2445
2455
|
interface GoogleCloudAiplatformV1IndexDatapointCrowdingTag {
|
|
2446
2456
|
/** The attribute value used for crowding. The maximum number of neighbors to return per crowding attribute value (per_crowding_attribute_num_neighbors) is configured per-query. This field is ignored if per_crowding_attribute_num_neighbors is larger than the total number of neighbors to return for a given query. */
|
|
@@ -2466,6 +2476,12 @@ declare namespace gapi.client {
|
|
|
2466
2476
|
/** The namespace of this restriction. e.g.: color. */
|
|
2467
2477
|
namespace?: string;
|
|
2468
2478
|
}
|
|
2479
|
+
interface GoogleCloudAiplatformV1IndexDatapointSparseEmbedding {
|
|
2480
|
+
/** Optional. The list of indexes for the embedding values of the sparse vector. */
|
|
2481
|
+
dimensions?: string[];
|
|
2482
|
+
/** Optional. The list of embedding values of the sparse vector. */
|
|
2483
|
+
values?: number[];
|
|
2484
|
+
}
|
|
2469
2485
|
interface GoogleCloudAiplatformV1IndexEndpoint {
|
|
2470
2486
|
/** Output only. Timestamp when this IndexEndpoint was created. */
|
|
2471
2487
|
createTime?: string;
|
|
@@ -2507,6 +2523,8 @@ declare namespace gapi.client {
|
|
|
2507
2523
|
interface GoogleCloudAiplatformV1IndexStats {
|
|
2508
2524
|
/** Output only. The number of shards in the Index. */
|
|
2509
2525
|
shardsCount?: number;
|
|
2526
|
+
/** Output only. The number of sparse vectors in the Index. */
|
|
2527
|
+
sparseVectorsCount?: string;
|
|
2510
2528
|
/** Output only. The number of dense vectors in the Index. */
|
|
2511
2529
|
vectorsCount?: string;
|
|
2512
2530
|
}
|
|
@@ -3681,7 +3699,7 @@ declare namespace gapi.client {
|
|
|
3681
3699
|
labels?: {[P in string]: string};
|
|
3682
3700
|
/** Optional. Immutable. The specification of a single machine for the template. */
|
|
3683
3701
|
machineSpec?: GoogleCloudAiplatformV1MachineSpec;
|
|
3684
|
-
/**
|
|
3702
|
+
/** The resource name of the NotebookRuntimeTemplate. */
|
|
3685
3703
|
name?: string;
|
|
3686
3704
|
/** Optional. Network spec. */
|
|
3687
3705
|
networkSpec?: GoogleCloudAiplatformV1NetworkSpec;
|
|
@@ -6107,9 +6125,9 @@ declare namespace gapi.client {
|
|
|
6107
6125
|
interface GoogleCloudAiplatformV1SupervisedHyperParameters {
|
|
6108
6126
|
/** Optional. Adapter size for tuning. */
|
|
6109
6127
|
adapterSize?: string;
|
|
6110
|
-
/** Optional. Number of
|
|
6128
|
+
/** Optional. Number of complete passes the model makes over the entire training dataset during training. */
|
|
6111
6129
|
epochCount?: string;
|
|
6112
|
-
/** Optional.
|
|
6130
|
+
/** Optional. Multiplier for adjusting the default learning rate. */
|
|
6113
6131
|
learningRateMultiplier?: number;
|
|
6114
6132
|
}
|
|
6115
6133
|
interface GoogleCloudAiplatformV1SupervisedTuningDatasetDistribution {
|
|
@@ -6159,9 +6177,9 @@ declare namespace gapi.client {
|
|
|
6159
6177
|
interface GoogleCloudAiplatformV1SupervisedTuningSpec {
|
|
6160
6178
|
/** Optional. Hyperparameters for SFT. */
|
|
6161
6179
|
hyperParameters?: GoogleCloudAiplatformV1SupervisedHyperParameters;
|
|
6162
|
-
/** Required. Cloud Storage path to file containing training dataset for tuning. */
|
|
6180
|
+
/** Required. Cloud Storage path to file containing training dataset for tuning. The dataset must be formatted as a JSONL file. */
|
|
6163
6181
|
trainingDatasetUri?: string;
|
|
6164
|
-
/** Optional. Cloud Storage path to file containing validation dataset for tuning. */
|
|
6182
|
+
/** Optional. Cloud Storage path to file containing validation dataset for tuning. The dataset must be formatted as a JSONL file. */
|
|
6165
6183
|
validationDatasetUri?: string;
|
|
6166
6184
|
}
|
|
6167
6185
|
interface GoogleCloudAiplatformV1SyncFeatureViewRequest {}
|
|
@@ -6442,7 +6460,7 @@ declare namespace gapi.client {
|
|
|
6442
6460
|
supervisedTuningDataStats?: GoogleCloudAiplatformV1SupervisedTuningDataStats;
|
|
6443
6461
|
}
|
|
6444
6462
|
interface GoogleCloudAiplatformV1TuningJob {
|
|
6445
|
-
/**
|
|
6463
|
+
/** The base model that is being tuned, e.g., "gemini-1.0-pro-002". */
|
|
6446
6464
|
baseModel?: string;
|
|
6447
6465
|
/** Output only. Time when the TuningJob was created. */
|
|
6448
6466
|
createTime?: string;
|
|
@@ -7267,7 +7285,12 @@ declare namespace gapi.client {
|
|
|
7267
7285
|
/** The sum of the size of all the contents in the request. */
|
|
7268
7286
|
totalContentSize?: string;
|
|
7269
7287
|
}
|
|
7288
|
+
interface LearningServingLlmAtlasOutputMetadata {
|
|
7289
|
+
requestTopic?: string;
|
|
7290
|
+
source?: string;
|
|
7291
|
+
}
|
|
7270
7292
|
interface LearningServingLlmMessageMetadata {
|
|
7293
|
+
atlasMetadata?: LearningServingLlmAtlasOutputMetadata;
|
|
7271
7294
|
/** Summary of classifier output. We attach this to all messages regardless of whether classification rules triggered or not. */
|
|
7272
7295
|
classifierSummary?: LearningGenaiRootClassifierOutputSummary;
|
|
7273
7296
|
/** Contains metadata related to Codey Processors. */
|
|
@@ -7294,13 +7317,15 @@ declare namespace gapi.client {
|
|
|
7294
7317
|
lmPrefix?: string;
|
|
7295
7318
|
/** The original text generated by LLM. This is the raw output for debugging purposes. */
|
|
7296
7319
|
originalText?: string;
|
|
7297
|
-
/**
|
|
7320
|
+
/** Number of tokens decoded by the model as part of a stream. This count may be different from `per_stream_returned_token_count` which, is counted after any response rewriting or truncation. Applies to streaming response only. */
|
|
7298
7321
|
perStreamDecodedTokenCount?: number;
|
|
7322
|
+
/** Number of tokens returned per stream in a response candidate after any response rewriting or truncation. Applies to streaming response only. Applies to Gemini models only. */
|
|
7323
|
+
perStreamReturnedTokenCount?: number;
|
|
7299
7324
|
/** Results of running RAI on the query or this response candidate. One output per rai_config. It will be populated regardless of whether the threshold is exceeded or not. */
|
|
7300
7325
|
raiOutputs?: LearningGenaiRootRAIOutput[];
|
|
7301
7326
|
/** Recitation Results. It will be populated as long as Recitation processing is enabled, regardless of recitation outcome. */
|
|
7302
7327
|
recitationResult?: LearningGenaiRecitationRecitationResult;
|
|
7303
|
-
/** NOT
|
|
7328
|
+
/** NOT IMPLEMENTED TODO (b/334187574) Remove this field after Labs migrates to per_stream_returned_token_count and total_returned_token_count. */
|
|
7304
7329
|
returnTokenCount?: number;
|
|
7305
7330
|
/** All the different scores for a message are logged here. */
|
|
7306
7331
|
scores?: LearningGenaiRootScore[];
|
|
@@ -7308,6 +7333,8 @@ declare namespace gapi.client {
|
|
|
7308
7333
|
streamTerminated?: boolean;
|
|
7309
7334
|
/** Total tokens decoded so far per response_candidate. For streaming: Count of all the tokens decoded so far (aggregated count). For unary: Count of all the tokens decoded per response_candidate. */
|
|
7310
7335
|
totalDecodedTokenCount?: number;
|
|
7336
|
+
/** Total number of tokens returned in a response candidate. For streaming, it is the aggregated count (i.e. total so far) Applies to Gemini models only. */
|
|
7337
|
+
totalReturnedTokenCount?: number;
|
|
7311
7338
|
/** Translated user-prompt used for RAI post processing. This is for internal processing only. We will translate in pre-processor and pass the translated text to the post processor using this field. It will be empty if non of the signals requested need translation. */
|
|
7312
7339
|
translatedUserPrompts?: string[];
|
|
7313
7340
|
/** The metadata from Vertex SafetyCat processors */
|