@maxim_mazurok/gapi.client.aiplatform-v1 0.0.20240424 → 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 +62 -19
- 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. */
|
|
@@ -2178,8 +2184,10 @@ declare namespace gapi.client {
|
|
|
2178
2184
|
interface GoogleCloudAiplatformV1FindNeighborsResponseNeighbor {
|
|
2179
2185
|
/** The datapoint of the neighbor. Note that full datapoints are returned only when "return_full_datapoint" is set to true. Otherwise, only the "datapoint_id" and "crowding_tag" fields are populated. */
|
|
2180
2186
|
datapoint?: GoogleCloudAiplatformV1IndexDatapoint;
|
|
2181
|
-
/** The distance between the neighbor and the query
|
|
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. */
|
|
@@ -2285,6 +2293,8 @@ declare namespace gapi.client {
|
|
|
2285
2293
|
baseModelUri?: string;
|
|
2286
2294
|
}
|
|
2287
2295
|
interface GoogleCloudAiplatformV1GroundingMetadata {
|
|
2296
|
+
/** Optional. Google search entry for the following-up web searches. */
|
|
2297
|
+
searchEntryPoint?: GoogleCloudAiplatformV1SearchEntryPoint;
|
|
2288
2298
|
/** Optional. Web search queries for the following-up web search. */
|
|
2289
2299
|
webSearchQueries?: string[];
|
|
2290
2300
|
}
|
|
@@ -2433,12 +2443,14 @@ declare namespace gapi.client {
|
|
|
2433
2443
|
crowdingTag?: GoogleCloudAiplatformV1IndexDatapointCrowdingTag;
|
|
2434
2444
|
/** Required. Unique identifier of the datapoint. */
|
|
2435
2445
|
datapointId?: string;
|
|
2436
|
-
/** Required. Feature embedding vector. An array of numbers with the length of [NearestNeighborSearchConfig.dimensions]. */
|
|
2446
|
+
/** Required. Feature embedding vector for dense index. An array of numbers with the length of [NearestNeighborSearchConfig.dimensions]. */
|
|
2437
2447
|
featureVector?: number[];
|
|
2438
2448
|
/** 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 numeric comparisons. */
|
|
2439
2449
|
numericRestricts?: GoogleCloudAiplatformV1IndexDatapointNumericRestriction[];
|
|
2440
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 */
|
|
2441
2451
|
restricts?: GoogleCloudAiplatformV1IndexDatapointRestriction[];
|
|
2452
|
+
/** Optional. Feature embedding vector for sparse index. */
|
|
2453
|
+
sparseEmbedding?: GoogleCloudAiplatformV1IndexDatapointSparseEmbedding;
|
|
2442
2454
|
}
|
|
2443
2455
|
interface GoogleCloudAiplatformV1IndexDatapointCrowdingTag {
|
|
2444
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. */
|
|
@@ -2464,6 +2476,12 @@ declare namespace gapi.client {
|
|
|
2464
2476
|
/** The namespace of this restriction. e.g.: color. */
|
|
2465
2477
|
namespace?: string;
|
|
2466
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
|
+
}
|
|
2467
2485
|
interface GoogleCloudAiplatformV1IndexEndpoint {
|
|
2468
2486
|
/** Output only. Timestamp when this IndexEndpoint was created. */
|
|
2469
2487
|
createTime?: string;
|
|
@@ -2505,7 +2523,9 @@ declare namespace gapi.client {
|
|
|
2505
2523
|
interface GoogleCloudAiplatformV1IndexStats {
|
|
2506
2524
|
/** Output only. The number of shards in the Index. */
|
|
2507
2525
|
shardsCount?: number;
|
|
2508
|
-
/** Output only. The number of vectors in the Index. */
|
|
2526
|
+
/** Output only. The number of sparse vectors in the Index. */
|
|
2527
|
+
sparseVectorsCount?: string;
|
|
2528
|
+
/** Output only. The number of dense vectors in the Index. */
|
|
2509
2529
|
vectorsCount?: string;
|
|
2510
2530
|
}
|
|
2511
2531
|
interface GoogleCloudAiplatformV1InputDataConfig {
|
|
@@ -3679,7 +3699,7 @@ declare namespace gapi.client {
|
|
|
3679
3699
|
labels?: {[P in string]: string};
|
|
3680
3700
|
/** Optional. Immutable. The specification of a single machine for the template. */
|
|
3681
3701
|
machineSpec?: GoogleCloudAiplatformV1MachineSpec;
|
|
3682
|
-
/**
|
|
3702
|
+
/** The resource name of the NotebookRuntimeTemplate. */
|
|
3683
3703
|
name?: string;
|
|
3684
3704
|
/** Optional. Network spec. */
|
|
3685
3705
|
networkSpec?: GoogleCloudAiplatformV1NetworkSpec;
|
|
@@ -4001,6 +4021,8 @@ declare namespace gapi.client {
|
|
|
4001
4021
|
deploy?: GoogleCloudAiplatformV1PublisherModelCallToActionDeploy;
|
|
4002
4022
|
/** Optional. Deploy PublisherModel to Google Kubernetes Engine. */
|
|
4003
4023
|
deployGke?: GoogleCloudAiplatformV1PublisherModelCallToActionDeployGke;
|
|
4024
|
+
/** Optional. Fine tune the PublisherModel with the third-party model tuning UI. */
|
|
4025
|
+
fineTune?: GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences;
|
|
4004
4026
|
/** Optional. Open evaluation pipeline of the PublisherModel. */
|
|
4005
4027
|
openEvaluationPipeline?: GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences;
|
|
4006
4028
|
/** Optional. Open fine-tuning pipeline of the PublisherModel. */
|
|
@@ -4031,6 +4053,8 @@ declare namespace gapi.client {
|
|
|
4031
4053
|
containerSpec?: GoogleCloudAiplatformV1ModelContainerSpec;
|
|
4032
4054
|
/** A description of resources that are dedicated to the DeployedModel, and that need a higher degree of manual configuration. */
|
|
4033
4055
|
dedicatedResources?: GoogleCloudAiplatformV1DedicatedResources;
|
|
4056
|
+
/** Optional. The name of the deploy task (e.g., "text to image generation"). */
|
|
4057
|
+
deployTaskName?: string;
|
|
4034
4058
|
/** Optional. Large model reference. When this is set, model_artifact_spec is not needed. */
|
|
4035
4059
|
largeModelReference?: GoogleCloudAiplatformV1LargeModelReference;
|
|
4036
4060
|
/** Optional. Default model display name. */
|
|
@@ -5145,6 +5169,8 @@ declare namespace gapi.client {
|
|
|
5145
5169
|
promptType?: string;
|
|
5146
5170
|
/** Customized stop sequences. */
|
|
5147
5171
|
stopSequences?: string[];
|
|
5172
|
+
/** The Google Cloud Storage URI that stores the system instruction, starting with gs://. */
|
|
5173
|
+
systemInstructionGcsUri?: string;
|
|
5148
5174
|
/** Temperature value used for sampling set when the dataset was saved. This value is used to tune the degree of randomness. */
|
|
5149
5175
|
temperature?: number;
|
|
5150
5176
|
/** The content of the prompt dataset. */
|
|
@@ -5775,6 +5801,12 @@ declare namespace gapi.client {
|
|
|
5775
5801
|
/** A token to retrieve next page of results. Pass to SearchDataItemsRequest.page_token to obtain that page. */
|
|
5776
5802
|
nextPageToken?: string;
|
|
5777
5803
|
}
|
|
5804
|
+
interface GoogleCloudAiplatformV1SearchEntryPoint {
|
|
5805
|
+
/** Optional. Web content snippet that can be embedded in a web page or an app webview. */
|
|
5806
|
+
renderedContent?: string;
|
|
5807
|
+
/** Optional. Base64 encoded JSON representing array of tuple. */
|
|
5808
|
+
sdkBlob?: string;
|
|
5809
|
+
}
|
|
5778
5810
|
interface GoogleCloudAiplatformV1SearchFeaturesResponse {
|
|
5779
5811
|
/** The Features matching the request. Fields returned: * `name` * `description` * `labels` * `create_time` * `update_time` */
|
|
5780
5812
|
features?: GoogleCloudAiplatformV1Feature[];
|
|
@@ -6093,9 +6125,9 @@ declare namespace gapi.client {
|
|
|
6093
6125
|
interface GoogleCloudAiplatformV1SupervisedHyperParameters {
|
|
6094
6126
|
/** Optional. Adapter size for tuning. */
|
|
6095
6127
|
adapterSize?: string;
|
|
6096
|
-
/** Optional. Number of
|
|
6128
|
+
/** Optional. Number of complete passes the model makes over the entire training dataset during training. */
|
|
6097
6129
|
epochCount?: string;
|
|
6098
|
-
/** Optional.
|
|
6130
|
+
/** Optional. Multiplier for adjusting the default learning rate. */
|
|
6099
6131
|
learningRateMultiplier?: number;
|
|
6100
6132
|
}
|
|
6101
6133
|
interface GoogleCloudAiplatformV1SupervisedTuningDatasetDistribution {
|
|
@@ -6145,9 +6177,9 @@ declare namespace gapi.client {
|
|
|
6145
6177
|
interface GoogleCloudAiplatformV1SupervisedTuningSpec {
|
|
6146
6178
|
/** Optional. Hyperparameters for SFT. */
|
|
6147
6179
|
hyperParameters?: GoogleCloudAiplatformV1SupervisedHyperParameters;
|
|
6148
|
-
/** 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. */
|
|
6149
6181
|
trainingDatasetUri?: string;
|
|
6150
|
-
/** 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. */
|
|
6151
6183
|
validationDatasetUri?: string;
|
|
6152
6184
|
}
|
|
6153
6185
|
interface GoogleCloudAiplatformV1SyncFeatureViewRequest {}
|
|
@@ -6428,7 +6460,7 @@ declare namespace gapi.client {
|
|
|
6428
6460
|
supervisedTuningDataStats?: GoogleCloudAiplatformV1SupervisedTuningDataStats;
|
|
6429
6461
|
}
|
|
6430
6462
|
interface GoogleCloudAiplatformV1TuningJob {
|
|
6431
|
-
/**
|
|
6463
|
+
/** The base model that is being tuned, e.g., "gemini-1.0-pro-002". */
|
|
6432
6464
|
baseModel?: string;
|
|
6433
6465
|
/** Output only. Time when the TuningJob was created. */
|
|
6434
6466
|
createTime?: string;
|
|
@@ -6835,11 +6867,10 @@ declare namespace gapi.client {
|
|
|
6835
6867
|
trainingSegmentResults?: LanguageLabsAidaTrustRecitationProtoSegmentResult[];
|
|
6836
6868
|
}
|
|
6837
6869
|
interface LanguageLabsAidaTrustRecitationProtoSegmentResult {
|
|
6838
|
-
/** The dataset the segment came from. */
|
|
6870
|
+
/** The dataset the segment came from. Datasets change often as model evolves. Treat this field as informational only and avoid depending on it directly. */
|
|
6839
6871
|
attributionDataset?: string;
|
|
6840
6872
|
/** human-friendly string that contains information from doc_attribution which could be shown by clients */
|
|
6841
6873
|
displayAttributionMessage?: string;
|
|
6842
|
-
/** populated when recitation_action == CITE */
|
|
6843
6874
|
docAttribution?: LanguageLabsAidaTrustRecitationProtoDocAttribution;
|
|
6844
6875
|
/** number of documents that contained this segment */
|
|
6845
6876
|
docOccurrences?: number;
|
|
@@ -6847,6 +6878,8 @@ declare namespace gapi.client {
|
|
|
6847
6878
|
/** The raw text in the given input that is corresponding to the segment. It will be available only when 'return_segment_raw_text' is enabled in the request options. */
|
|
6848
6879
|
rawText?: string;
|
|
6849
6880
|
segmentRecitationAction?: string;
|
|
6881
|
+
/** The category of the source dataset where the segment came from. This is more stable than Dataset. */
|
|
6882
|
+
sourceCategory?: string;
|
|
6850
6883
|
/** The segment boundary start (inclusive) and end index (exclusive) in the given text. In the streaming RPC, the indexes always start from the beginning of the first text in the entire stream. The indexes are measured in UTF-16 code units. */
|
|
6851
6884
|
startIndex?: number;
|
|
6852
6885
|
}
|
|
@@ -6908,11 +6941,10 @@ declare namespace gapi.client {
|
|
|
6908
6941
|
trainingSegmentResults?: LearningGenaiRecitationSegmentResult[];
|
|
6909
6942
|
}
|
|
6910
6943
|
interface LearningGenaiRecitationSegmentResult {
|
|
6911
|
-
/** The dataset the segment came from. */
|
|
6944
|
+
/** The dataset the segment came from. Datasets change often as model evolves. Treat this field as informational only and avoid depending on it directly. */
|
|
6912
6945
|
attributionDataset?: string;
|
|
6913
6946
|
/** human-friendly string that contains information from doc_attribution which could be shown by clients */
|
|
6914
6947
|
displayAttributionMessage?: string;
|
|
6915
|
-
/** populated when recitation_action == CITE */
|
|
6916
6948
|
docAttribution?: LearningGenaiRecitationDocAttribution;
|
|
6917
6949
|
/** number of documents that contained this segment */
|
|
6918
6950
|
docOccurrences?: number;
|
|
@@ -6920,6 +6952,8 @@ declare namespace gapi.client {
|
|
|
6920
6952
|
/** The raw text in the given input that is corresponding to the segment. It will be available only when 'return_segment_raw_text' is enabled in the request options. */
|
|
6921
6953
|
rawText?: string;
|
|
6922
6954
|
segmentRecitationAction?: string;
|
|
6955
|
+
/** The category of the source dataset where the segment came from. This is more stable than Dataset. */
|
|
6956
|
+
sourceCategory?: string;
|
|
6923
6957
|
/** The segment boundary start (inclusive) and end index (exclusive) in the given text. In the streaming RPC, the indexes always start from the beginning of the first text in the entire stream. The indexes are measured in UTF-16 code units. */
|
|
6924
6958
|
startIndex?: number;
|
|
6925
6959
|
}
|
|
@@ -7251,7 +7285,12 @@ declare namespace gapi.client {
|
|
|
7251
7285
|
/** The sum of the size of all the contents in the request. */
|
|
7252
7286
|
totalContentSize?: string;
|
|
7253
7287
|
}
|
|
7288
|
+
interface LearningServingLlmAtlasOutputMetadata {
|
|
7289
|
+
requestTopic?: string;
|
|
7290
|
+
source?: string;
|
|
7291
|
+
}
|
|
7254
7292
|
interface LearningServingLlmMessageMetadata {
|
|
7293
|
+
atlasMetadata?: LearningServingLlmAtlasOutputMetadata;
|
|
7255
7294
|
/** Summary of classifier output. We attach this to all messages regardless of whether classification rules triggered or not. */
|
|
7256
7295
|
classifierSummary?: LearningGenaiRootClassifierOutputSummary;
|
|
7257
7296
|
/** Contains metadata related to Codey Processors. */
|
|
@@ -7278,20 +7317,24 @@ declare namespace gapi.client {
|
|
|
7278
7317
|
lmPrefix?: string;
|
|
7279
7318
|
/** The original text generated by LLM. This is the raw output for debugging purposes. */
|
|
7280
7319
|
originalText?: string;
|
|
7281
|
-
/**
|
|
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. */
|
|
7282
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;
|
|
7283
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. */
|
|
7284
7325
|
raiOutputs?: LearningGenaiRootRAIOutput[];
|
|
7285
7326
|
/** Recitation Results. It will be populated as long as Recitation processing is enabled, regardless of recitation outcome. */
|
|
7286
7327
|
recitationResult?: LearningGenaiRecitationRecitationResult;
|
|
7287
|
-
/** NOT
|
|
7328
|
+
/** NOT IMPLEMENTED TODO (b/334187574) Remove this field after Labs migrates to per_stream_returned_token_count and total_returned_token_count. */
|
|
7288
7329
|
returnTokenCount?: number;
|
|
7289
7330
|
/** All the different scores for a message are logged here. */
|
|
7290
7331
|
scores?: LearningGenaiRootScore[];
|
|
7291
7332
|
/** Whether the response is terminated during streaming return. Only used for streaming requests. */
|
|
7292
7333
|
streamTerminated?: boolean;
|
|
7293
|
-
/**
|
|
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. */
|
|
7294
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;
|
|
7295
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. */
|
|
7296
7339
|
translatedUserPrompts?: string[];
|
|
7297
7340
|
/** The metadata from Vertex SafetyCat processors */
|
|
@@ -11704,7 +11747,7 @@ declare namespace gapi.client {
|
|
|
11704
11747
|
key?: string;
|
|
11705
11748
|
/** OAuth 2.0 token for the current user. */
|
|
11706
11749
|
oauth_token?: string;
|
|
11707
|
-
/** Required. The resource name of the Location to create FeatureGroups. Format: `projects/{project}/locations/{location}
|
|
11750
|
+
/** Required. The resource name of the Location to create FeatureGroups. Format: `projects/{project}/locations/{location}` */
|
|
11708
11751
|
parent: string;
|
|
11709
11752
|
/** Returns response with indentations and line breaks. */
|
|
11710
11753
|
prettyPrint?: boolean;
|
|
@@ -11735,7 +11778,7 @@ declare namespace gapi.client {
|
|
|
11735
11778
|
key?: string;
|
|
11736
11779
|
/** OAuth 2.0 token for the current user. */
|
|
11737
11780
|
oauth_token?: string;
|
|
11738
|
-
/** Required. The resource name of the Location to create FeatureGroups. Format: `projects/{project}/locations/{location}
|
|
11781
|
+
/** Required. The resource name of the Location to create FeatureGroups. Format: `projects/{project}/locations/{location}` */
|
|
11739
11782
|
parent: string;
|
|
11740
11783
|
/** Returns response with indentations and line breaks. */
|
|
11741
11784
|
prettyPrint?: boolean;
|