@maxim_mazurok/gapi.client.aiplatform-v1beta1 0.0.20231129 → 0.0.20231214
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 +289 -24
- 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=v1beta1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20231214
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -28,6 +28,218 @@ declare namespace gapi.client {
|
|
|
28
28
|
): void;
|
|
29
29
|
|
|
30
30
|
namespace aiplatform {
|
|
31
|
+
interface CloudAiLargeModelsVisionEmbedVideoResponse {
|
|
32
|
+
/** The embedding vector for the video. */
|
|
33
|
+
videoEmbeddings?: any[];
|
|
34
|
+
}
|
|
35
|
+
interface CloudAiLargeModelsVisionFilteredText {
|
|
36
|
+
/** Confidence level */
|
|
37
|
+
category?: string;
|
|
38
|
+
/** Filtered category */
|
|
39
|
+
confidence?: string;
|
|
40
|
+
/** Input prompt */
|
|
41
|
+
prompt?: string;
|
|
42
|
+
/** Score for category */
|
|
43
|
+
score?: number;
|
|
44
|
+
}
|
|
45
|
+
interface CloudAiLargeModelsVisionGenerateVideoResponse {
|
|
46
|
+
/** The generates samples. */
|
|
47
|
+
generatedSamples?: CloudAiLargeModelsVisionMedia[];
|
|
48
|
+
/** Returns if any videos were filtered due to RAI policies. */
|
|
49
|
+
raiMediaFilteredCount?: number;
|
|
50
|
+
/** Returns rai failure reasons if any. */
|
|
51
|
+
raiMediaFilteredReasons?: string[];
|
|
52
|
+
/** Returns filtered text rai info. */
|
|
53
|
+
raiTextFilteredReason?: CloudAiLargeModelsVisionFilteredText;
|
|
54
|
+
}
|
|
55
|
+
interface CloudAiLargeModelsVisionImage {
|
|
56
|
+
/** Image encoding, encoded as "image/png" or "image/jpg". */
|
|
57
|
+
encoding?: string;
|
|
58
|
+
/** Raw bytes. */
|
|
59
|
+
image?: string;
|
|
60
|
+
/** RAI scores for generated image. */
|
|
61
|
+
imageRaiScores?: CloudAiLargeModelsVisionImageRAIScores;
|
|
62
|
+
/** RAI info for image */
|
|
63
|
+
raiInfo?: CloudAiLargeModelsVisionRaiInfo;
|
|
64
|
+
/** Semantic filter info for image. */
|
|
65
|
+
semanticFilterResponse?: CloudAiLargeModelsVisionSemanticFilterResponse;
|
|
66
|
+
/** Path to another storage (typically Google Cloud Storage). */
|
|
67
|
+
uri?: string;
|
|
68
|
+
}
|
|
69
|
+
interface CloudAiLargeModelsVisionImageRAIScores {
|
|
70
|
+
/** Agile watermark score for image. */
|
|
71
|
+
agileWatermarkDetectionScore?: number;
|
|
72
|
+
}
|
|
73
|
+
interface CloudAiLargeModelsVisionMedia {
|
|
74
|
+
/** Image. */
|
|
75
|
+
image?: CloudAiLargeModelsVisionImage;
|
|
76
|
+
/** Video */
|
|
77
|
+
video?: CloudAiLargeModelsVisionVideo;
|
|
78
|
+
}
|
|
79
|
+
interface CloudAiLargeModelsVisionMediaGenerateContentResponse {
|
|
80
|
+
/** Response to the user's request. */
|
|
81
|
+
response?: CloudAiNlLlmProtoServiceGenerateMultiModalResponse;
|
|
82
|
+
}
|
|
83
|
+
interface CloudAiLargeModelsVisionNamedBoundingBox {
|
|
84
|
+
classes?: string[];
|
|
85
|
+
entities?: string[];
|
|
86
|
+
scores?: number[];
|
|
87
|
+
x1?: number;
|
|
88
|
+
x2?: number;
|
|
89
|
+
y1?: number;
|
|
90
|
+
y2?: number;
|
|
91
|
+
}
|
|
92
|
+
interface CloudAiLargeModelsVisionRaiInfo {
|
|
93
|
+
/** List of rai categories' information to return */
|
|
94
|
+
raiCategories?: string[];
|
|
95
|
+
/** List of rai scores mapping to the rai categories. Rounded to 1 decimal place. */
|
|
96
|
+
scores?: number[];
|
|
97
|
+
}
|
|
98
|
+
interface CloudAiLargeModelsVisionReasonVideoResponse {
|
|
99
|
+
/** Generated text responses. The generated responses for different segments within the same video. */
|
|
100
|
+
responses?: CloudAiLargeModelsVisionReasonVideoResponseTextResponse[];
|
|
101
|
+
}
|
|
102
|
+
interface CloudAiLargeModelsVisionReasonVideoResponseTextResponse {
|
|
103
|
+
/** Partition of the caption's video in time. This field is intended for video captioning. To represent the start time and end time of the caption's video. */
|
|
104
|
+
relativeTemporalPartition?: CloudAiLargeModelsVisionRelativeTemporalPartition;
|
|
105
|
+
/** Text information */
|
|
106
|
+
text?: string;
|
|
107
|
+
}
|
|
108
|
+
interface CloudAiLargeModelsVisionRelativeTemporalPartition {
|
|
109
|
+
/** End time offset of the partition. */
|
|
110
|
+
endOffset?: string;
|
|
111
|
+
/** Start time offset of the partition. */
|
|
112
|
+
startOffset?: string;
|
|
113
|
+
}
|
|
114
|
+
interface CloudAiLargeModelsVisionSemanticFilterResponse {
|
|
115
|
+
/** Class labels of the bounding boxes that failed the semantic filtering. Bounding box coordinates. */
|
|
116
|
+
namedBoundingBoxes?: CloudAiLargeModelsVisionNamedBoundingBox[];
|
|
117
|
+
/** This response is added when semantic filter config is turned on in EditConfig. It reports if this image is passed semantic filter response. If passed_semantic_filter is false, the bounding box information will be populated for user to check what caused the semantic filter to fail. */
|
|
118
|
+
passedSemanticFilter?: boolean;
|
|
119
|
+
}
|
|
120
|
+
interface CloudAiLargeModelsVisionVideo {
|
|
121
|
+
/** Path to another storage (typically Google Cloud Storage). */
|
|
122
|
+
uri?: string;
|
|
123
|
+
/** Raw bytes. */
|
|
124
|
+
video?: string;
|
|
125
|
+
}
|
|
126
|
+
interface CloudAiNlLlmProtoServiceCandidate {
|
|
127
|
+
/** Source attribution of the generated content. */
|
|
128
|
+
citationMetadata?: CloudAiNlLlmProtoServiceCitationMetadata;
|
|
129
|
+
/** Content of the candidate. */
|
|
130
|
+
content?: CloudAiNlLlmProtoServiceContent;
|
|
131
|
+
/** A string that describes the filtering behavior in more detail. Only filled when reason is set. */
|
|
132
|
+
finishMessage?: string;
|
|
133
|
+
/** The reason why the model stopped generating tokens. */
|
|
134
|
+
finishReason?: string;
|
|
135
|
+
/** Index of the candidate. */
|
|
136
|
+
index?: number;
|
|
137
|
+
/** Safety ratings of the generated content. */
|
|
138
|
+
safetyRatings?: CloudAiNlLlmProtoServiceSafetyRating[];
|
|
139
|
+
}
|
|
140
|
+
interface CloudAiNlLlmProtoServiceCitation {
|
|
141
|
+
/** End index into the content. */
|
|
142
|
+
endIndex?: number;
|
|
143
|
+
/** License of the attribution. */
|
|
144
|
+
license?: string;
|
|
145
|
+
/** Publication date of the attribution. */
|
|
146
|
+
publicationDate?: GoogleTypeDate;
|
|
147
|
+
/** Start index into the content. */
|
|
148
|
+
startIndex?: number;
|
|
149
|
+
/** Title of the attribution. */
|
|
150
|
+
title?: string;
|
|
151
|
+
/** Url reference of the attribution. */
|
|
152
|
+
uri?: string;
|
|
153
|
+
}
|
|
154
|
+
interface CloudAiNlLlmProtoServiceCitationMetadata {
|
|
155
|
+
/** List of citations. */
|
|
156
|
+
citations?: CloudAiNlLlmProtoServiceCitation[];
|
|
157
|
+
}
|
|
158
|
+
interface CloudAiNlLlmProtoServiceContent {
|
|
159
|
+
/** The parts of the message. */
|
|
160
|
+
parts?: CloudAiNlLlmProtoServicePart[];
|
|
161
|
+
/** The role of the current conversation participant. */
|
|
162
|
+
role?: string;
|
|
163
|
+
}
|
|
164
|
+
interface CloudAiNlLlmProtoServiceFunctionCall {
|
|
165
|
+
/** The function parameters and values in JSON format. */
|
|
166
|
+
args?: {[P in string]: any};
|
|
167
|
+
/** Required. The name of the function to call. */
|
|
168
|
+
name?: string;
|
|
169
|
+
}
|
|
170
|
+
interface CloudAiNlLlmProtoServiceFunctionResponse {
|
|
171
|
+
/** Required. The name of the function to call. */
|
|
172
|
+
name?: string;
|
|
173
|
+
/** Required. The function response in JSON object format. */
|
|
174
|
+
response?: {[P in string]: any};
|
|
175
|
+
}
|
|
176
|
+
interface CloudAiNlLlmProtoServiceGenerateMultiModalResponse {
|
|
177
|
+
/** Possible candidate responses to the conversation up until this point. */
|
|
178
|
+
candidates?: CloudAiNlLlmProtoServiceCandidate[];
|
|
179
|
+
/** Content filter results for a prompt sent in the request. Note: Sent only in the first stream chunk. Only happens when no candidates were generated due to content violations. */
|
|
180
|
+
promptFeedback?: CloudAiNlLlmProtoServicePromptFeedback;
|
|
181
|
+
/** Billable prediction metrics. */
|
|
182
|
+
reportingMetrics?: IntelligenceCloudAutomlXpsReportingMetrics;
|
|
183
|
+
/** Usage metadata about the response(s). */
|
|
184
|
+
usageMetadata?: CloudAiNlLlmProtoServiceUsageMetadata;
|
|
185
|
+
}
|
|
186
|
+
interface CloudAiNlLlmProtoServicePart {
|
|
187
|
+
/** URI-based data. */
|
|
188
|
+
fileData?: CloudAiNlLlmProtoServicePartFileData;
|
|
189
|
+
/** Function call data. */
|
|
190
|
+
functionCall?: CloudAiNlLlmProtoServiceFunctionCall;
|
|
191
|
+
/** Function response data. */
|
|
192
|
+
functionResponse?: CloudAiNlLlmProtoServiceFunctionResponse;
|
|
193
|
+
/** Inline bytes data */
|
|
194
|
+
inlineData?: CloudAiNlLlmProtoServicePartBlob;
|
|
195
|
+
/** Text input. */
|
|
196
|
+
text?: string;
|
|
197
|
+
/** Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data. */
|
|
198
|
+
videoMetadata?: CloudAiNlLlmProtoServicePartVideoMetadata;
|
|
199
|
+
}
|
|
200
|
+
interface CloudAiNlLlmProtoServicePartBlob {
|
|
201
|
+
/** Inline data. */
|
|
202
|
+
data?: string;
|
|
203
|
+
/** The mime type corresponding to this input. */
|
|
204
|
+
mimeType?: string;
|
|
205
|
+
/** Original file data where the blob comes from. */
|
|
206
|
+
originalFileData?: CloudAiNlLlmProtoServicePartFileData;
|
|
207
|
+
}
|
|
208
|
+
interface CloudAiNlLlmProtoServicePartFileData {
|
|
209
|
+
/** Inline data. */
|
|
210
|
+
fileUri?: string;
|
|
211
|
+
/** The mime type corresponding to this input. */
|
|
212
|
+
mimeType?: string;
|
|
213
|
+
}
|
|
214
|
+
interface CloudAiNlLlmProtoServicePartVideoMetadata {
|
|
215
|
+
/** The end offset of the video. */
|
|
216
|
+
endOffset?: string;
|
|
217
|
+
/** The start offset of the video. */
|
|
218
|
+
startOffset?: string;
|
|
219
|
+
}
|
|
220
|
+
interface CloudAiNlLlmProtoServicePromptFeedback {
|
|
221
|
+
/** Blocked reason. */
|
|
222
|
+
blockReason?: string;
|
|
223
|
+
/** A readable block reason message. */
|
|
224
|
+
blockReasonMessage?: string;
|
|
225
|
+
/** Safety ratings. */
|
|
226
|
+
safetyRatings?: CloudAiNlLlmProtoServiceSafetyRating[];
|
|
227
|
+
}
|
|
228
|
+
interface CloudAiNlLlmProtoServiceSafetyRating {
|
|
229
|
+
/** Indicates whether the content was filtered out because of this rating. */
|
|
230
|
+
blocked?: boolean;
|
|
231
|
+
/** Harm category. */
|
|
232
|
+
category?: string;
|
|
233
|
+
/** Harm probability levels in the content. */
|
|
234
|
+
probability?: string;
|
|
235
|
+
}
|
|
236
|
+
interface CloudAiNlLlmProtoServiceUsageMetadata {
|
|
237
|
+
/** Number of tokens in the response(s). */
|
|
238
|
+
candidatesTokenCount?: number;
|
|
239
|
+
/** Number of tokens in the request. */
|
|
240
|
+
promptTokenCount?: number;
|
|
241
|
+
totalTokenCount?: number;
|
|
242
|
+
}
|
|
31
243
|
interface GoogleApiHttpBody {
|
|
32
244
|
/** The HTTP Content-Type header value specifying the content type of the body. */
|
|
33
245
|
contentType?: string;
|
|
@@ -324,9 +536,9 @@ declare namespace gapi.client {
|
|
|
324
536
|
instancesFormat?: string;
|
|
325
537
|
}
|
|
326
538
|
interface GoogleCloudAiplatformV1beta1BatchPredictionJobInstanceConfig {
|
|
327
|
-
/** Fields that will be excluded in the prediction instance that is sent to the Model. Excluded will be attached to the batch prediction output if key_field is not specified. When excluded_fields is populated, included_fields must be empty. The input must be JSONL with objects at each line,
|
|
539
|
+
/** Fields that will be excluded in the prediction instance that is sent to the Model. Excluded will be attached to the batch prediction output if key_field is not specified. When excluded_fields is populated, included_fields must be empty. The input must be JSONL with objects at each line, BigQuery or TfRecord. */
|
|
328
540
|
excludedFields?: string[];
|
|
329
|
-
/** Fields that will be included in the prediction instance that is sent to the Model. If instance_type is `array`, the order of field names in included_fields also determines the order of the values in the array. When included_fields is populated, excluded_fields must be empty. The input must be JSONL with objects at each line,
|
|
541
|
+
/** Fields that will be included in the prediction instance that is sent to the Model. If instance_type is `array`, the order of field names in included_fields also determines the order of the values in the array. When included_fields is populated, excluded_fields must be empty. The input must be JSONL with objects at each line, BigQuery or TfRecord. */
|
|
330
542
|
includedFields?: string[];
|
|
331
543
|
/** The format of the instance that the Model accepts. Vertex AI will convert compatible batch prediction input instance formats to the specified format. Supported values are: * `object`: Each input is converted to JSON object format. * For `bigquery`, each row is converted to an object. * For `jsonl`, each line of the JSONL input must be an object. * Does not apply to `csv`, `file-list`, `tf-record`, or `tf-record-gzip`. * `array`: Each input is converted to JSON array format. * For `bigquery`, each row is converted to an array. The order of columns is determined by the BigQuery column order, unless included_fields is populated. included_fields must be populated for specifying field orders. * For `jsonl`, if each line of the JSONL input is an object, included_fields must be populated for specifying field orders. * Does not apply to `csv`, `file-list`, `tf-record`, or `tf-record-gzip`. If not specified, Vertex AI converts the batch prediction input as follows: * For `bigquery` and `csv`, the behavior is the same as `array`. The order of columns is the same as defined in the file or table, unless included_fields is populated. * For `jsonl`, the prediction instance format is determined by each line of the input. * For `tf-record`/`tf-record-gzip`, each record will be converted to an object in the format of `{"b64": }`, where `` is the Base64-encoded string of the content of the record. * For `file-list`, each file in the list will be converted to an object in the format of `{"b64": }`, where `` is the Base64-encoded string of the content of the file. */
|
|
332
544
|
instanceType?: string;
|
|
@@ -393,9 +605,9 @@ declare namespace gapi.client {
|
|
|
393
605
|
inputUri?: string;
|
|
394
606
|
}
|
|
395
607
|
interface GoogleCloudAiplatformV1beta1Blob {
|
|
396
|
-
/** Required.
|
|
608
|
+
/** Required. Raw bytes for media formats. */
|
|
397
609
|
data?: string;
|
|
398
|
-
/** Required.
|
|
610
|
+
/** Required. The IANA standard MIME type of the source data. */
|
|
399
611
|
mimeType?: string;
|
|
400
612
|
}
|
|
401
613
|
interface GoogleCloudAiplatformV1beta1BlurBaselineConfig {
|
|
@@ -418,13 +630,13 @@ declare namespace gapi.client {
|
|
|
418
630
|
citationMetadata?: GoogleCloudAiplatformV1beta1CitationMetadata;
|
|
419
631
|
/** Output only. Content parts of the candidate. */
|
|
420
632
|
content?: GoogleCloudAiplatformV1beta1Content;
|
|
421
|
-
/** Output only.
|
|
633
|
+
/** Output only. Describes the reason the mode stopped generating tokens in more detail. This is only filled when `finish_reason` is set. */
|
|
422
634
|
finishMessage?: string;
|
|
423
|
-
/** Output only. The reason why the model stopped generating tokens. */
|
|
635
|
+
/** Output only. The reason why the model stopped generating tokens. If empty, the model has not stopped generating the tokens. */
|
|
424
636
|
finishReason?: string;
|
|
425
637
|
/** Output only. Index of the candidate. */
|
|
426
638
|
index?: number;
|
|
427
|
-
/** Output only.
|
|
639
|
+
/** Output only. List of ratings for the safety of a response candidate. There is at most one rating per category. */
|
|
428
640
|
safetyRatings?: GoogleCloudAiplatformV1beta1SafetyRating[];
|
|
429
641
|
}
|
|
430
642
|
interface GoogleCloudAiplatformV1beta1CheckTrialEarlyStoppingStateMetatdata {
|
|
@@ -499,9 +711,9 @@ declare namespace gapi.client {
|
|
|
499
711
|
imageUri?: string;
|
|
500
712
|
}
|
|
501
713
|
interface GoogleCloudAiplatformV1beta1Content {
|
|
502
|
-
/** Required. Ordered
|
|
714
|
+
/** Required. Ordered `Parts` that constitute a single message. Parts may have different IANA MIME types. */
|
|
503
715
|
parts?: GoogleCloudAiplatformV1beta1Part[];
|
|
504
|
-
/** Optional. The
|
|
716
|
+
/** Optional. The producer of the content. Must be either 'user' or 'model'. Useful to set for multi-turn conversations, otherwise can be left blank or unset. */
|
|
505
717
|
role?: string;
|
|
506
718
|
}
|
|
507
719
|
interface GoogleCloudAiplatformV1beta1Context {
|
|
@@ -737,6 +949,8 @@ declare namespace gapi.client {
|
|
|
737
949
|
experiment?: string;
|
|
738
950
|
/** Optional. The Experiment Run associated with this job. Format: `projects/{project}/locations/{location}/metadataStores/{metadataStores}/contexts/{experiment-name}-{experiment-run-name}` */
|
|
739
951
|
experimentRun?: string;
|
|
952
|
+
/** Optional. The name of the Model resources for which to generate a mapping to artifact URIs. Applicable only to some of the Google-provided custom jobs. Format: `projects/{project}/locations/{location}/models/{model}` In order to retrieve a specific version of the model, also provide the version ID or version alias. Example: `projects/{project}/locations/{location}/models/{model}@2` or `projects/{project}/locations/{location}/models/{model}@golden` If no version ID or alias is specified, the "default" version will be returned. The "default" version alias is created for the first version of the model, and can be moved to other versions later on. There will be exactly one default version. */
|
|
953
|
+
models?: string[];
|
|
740
954
|
/** Optional. The full name of the Compute Engine [network](/compute/docs/networks-and-firewalls#networks) to which the Job should be peered. For example, `projects/12345/global/networks/myVPC`. [Format](/compute/docs/reference/rest/v1/networks/insert) is of the form `projects/{project}/global/networks/{network}`. Where {project} is a project number, as in `12345`, and {network} is a network name. To specify this field, you must have already [configured VPC Network Peering for Vertex AI](https://cloud.google.com/vertex-ai/docs/general/vpc-peering). If this field is left unspecified, the job is not peered with any network. */
|
|
741
955
|
network?: string;
|
|
742
956
|
/** Optional. The ID of the PersistentResource in the same Project and Location which to run If this is specified, the job will be run on existing machines held by the PersistentResource instead of on-demand short-live machines. The network and CMEK configs on the job should be consistent with those on the PersistentResource, otherwise, the job will be rejected. */
|
|
@@ -1843,7 +2057,7 @@ declare namespace gapi.client {
|
|
|
1843
2057
|
interface GoogleCloudAiplatformV1beta1FileData {
|
|
1844
2058
|
/** Required. URI. */
|
|
1845
2059
|
fileUri?: string;
|
|
1846
|
-
/** Required.
|
|
2060
|
+
/** Required. The IANA standard MIME type of the source data. */
|
|
1847
2061
|
mimeType?: string;
|
|
1848
2062
|
}
|
|
1849
2063
|
interface GoogleCloudAiplatformV1beta1FilterSplit {
|
|
@@ -1909,7 +2123,7 @@ declare namespace gapi.client {
|
|
|
1909
2123
|
description?: string;
|
|
1910
2124
|
/** Required. The name of the function to call. Must start with a letter or an underscore. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64. */
|
|
1911
2125
|
name?: string;
|
|
1912
|
-
/** Optional. Describes the parameters to this function. Reflects the Open API 3.03 Parameter Object string Key: the name of the parameter. Parameter names are case sensitive. For function with no parameters, this can be left unset. */
|
|
2126
|
+
/** Optional. Describes the parameters to this function in JSON Schema Object format. Reflects the Open API 3.03 Parameter Object. string Key: the name of the parameter. Parameter names are case sensitive. Schema Value: the Schema defining the type used for the parameter. For function with no parameters, this can be left unset. Example with 1 required and 1 optional parameter: type: OBJECT properties: param1: type: STRING param2: type: INTEGER required: - param1 */
|
|
1913
2127
|
parameters?: GoogleCloudAiplatformV1beta1Schema;
|
|
1914
2128
|
}
|
|
1915
2129
|
interface GoogleCloudAiplatformV1beta1FunctionResponse {
|
|
@@ -1941,7 +2155,7 @@ declare namespace gapi.client {
|
|
|
1941
2155
|
tokenType?: string;
|
|
1942
2156
|
}
|
|
1943
2157
|
interface GoogleCloudAiplatformV1beta1GenerateContentRequest {
|
|
1944
|
-
/** Required.
|
|
2158
|
+
/** Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history + latest request. */
|
|
1945
2159
|
contents?: GoogleCloudAiplatformV1beta1Content[];
|
|
1946
2160
|
/** Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
|
|
1947
2161
|
endpoint?: string;
|
|
@@ -1949,7 +2163,7 @@ declare namespace gapi.client {
|
|
|
1949
2163
|
generationConfig?: GoogleCloudAiplatformV1beta1GenerationConfig;
|
|
1950
2164
|
/** Optional. Per request settings for blocking unsafe content. Enforced on GenerateContentResponse.candidates. */
|
|
1951
2165
|
safetySettings?: GoogleCloudAiplatformV1beta1SafetySetting[];
|
|
1952
|
-
/** Optional. Tools
|
|
2166
|
+
/** Optional. A list of `Tools` the model may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. The only supported tool is currently `Function` */
|
|
1953
2167
|
tools?: GoogleCloudAiplatformV1beta1Tool[];
|
|
1954
2168
|
}
|
|
1955
2169
|
interface GoogleCloudAiplatformV1beta1GenerateContentResponse {
|
|
@@ -1978,18 +2192,8 @@ declare namespace gapi.client {
|
|
|
1978
2192
|
interface GoogleCloudAiplatformV1beta1GenerationConfig {
|
|
1979
2193
|
/** Optional. Number of candidates to generate. */
|
|
1980
2194
|
candidateCount?: number;
|
|
1981
|
-
/** Optional. Echo. */
|
|
1982
|
-
echo?: boolean;
|
|
1983
|
-
/** Optional. Frequency penalties. */
|
|
1984
|
-
frequencyPenalty?: number;
|
|
1985
|
-
/** Optional. Logit bias. */
|
|
1986
|
-
logitBias?: {[P in string]: number};
|
|
1987
|
-
/** Optional. Logit probabilities. */
|
|
1988
|
-
logprobs?: number;
|
|
1989
2195
|
/** Optional. The maximum number of output tokens to generate per message. */
|
|
1990
2196
|
maxOutputTokens?: number;
|
|
1991
|
-
/** Optional. Positive penalties. */
|
|
1992
|
-
presencePenalty?: number;
|
|
1993
2197
|
/** Optional. Stop sequences. */
|
|
1994
2198
|
stopSequences?: string[];
|
|
1995
2199
|
/** Optional. Controls the randomness of predictions. */
|
|
@@ -3672,6 +3876,8 @@ declare namespace gapi.client {
|
|
|
3672
3876
|
supportedActions?: GoogleCloudAiplatformV1beta1PublisherModelCallToAction;
|
|
3673
3877
|
/** Output only. Immutable. The version ID of the PublisherModel. A new version is committed when a new model version is uploaded under an existing model id. It is an auto-incrementing decimal number in string representation. */
|
|
3674
3878
|
versionId?: string;
|
|
3879
|
+
/** Optional. Indicates the state of the model version. */
|
|
3880
|
+
versionState?: string;
|
|
3675
3881
|
}
|
|
3676
3882
|
interface GoogleCloudAiplatformV1beta1PublisherModelCallToAction {
|
|
3677
3883
|
/** Optional. Create application using the PublisherModel. */
|
|
@@ -3708,6 +3914,8 @@ declare namespace gapi.client {
|
|
|
3708
3914
|
largeModelReference?: GoogleCloudAiplatformV1beta1LargeModelReference;
|
|
3709
3915
|
/** Optional. Default model display name. */
|
|
3710
3916
|
modelDisplayName?: string;
|
|
3917
|
+
/** Optional. The signed URI for ephemeral Cloud Storage access to model artifact. */
|
|
3918
|
+
publicArtifactUri?: string;
|
|
3711
3919
|
/** The resource name of the shared DeploymentResourcePool to deploy on. Format: `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` */
|
|
3712
3920
|
sharedResources?: string;
|
|
3713
3921
|
/** Required. The title of the regional resource reference. */
|
|
@@ -3740,10 +3948,14 @@ declare namespace gapi.client {
|
|
|
3740
3948
|
reference?: GoogleCloudAiplatformV1beta1PublisherModelResourceReference;
|
|
3741
3949
|
}
|
|
3742
3950
|
interface GoogleCloudAiplatformV1beta1PublisherModelResourceReference {
|
|
3951
|
+
/** Description of the resource. */
|
|
3952
|
+
description?: string;
|
|
3743
3953
|
/** The resource name of the Google Cloud resource. */
|
|
3744
3954
|
resourceName?: string;
|
|
3745
3955
|
/** The URI of the resource. */
|
|
3746
3956
|
uri?: string;
|
|
3957
|
+
/** Use case (CUJ) of the resource. */
|
|
3958
|
+
useCase?: string;
|
|
3747
3959
|
}
|
|
3748
3960
|
interface GoogleCloudAiplatformV1beta1PurgeArtifactsMetadata {
|
|
3749
3961
|
/** Operation metadata for purging Artifacts. */
|
|
@@ -6261,6 +6473,30 @@ declare namespace gapi.client {
|
|
|
6261
6473
|
/** The whole units of the amount. For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. */
|
|
6262
6474
|
units?: string;
|
|
6263
6475
|
}
|
|
6476
|
+
interface IntelligenceCloudAutomlXpsMetricEntry {
|
|
6477
|
+
/** For billing metrics that are using legacy sku's, set the legacy billing metric id here. This will be sent to Chemist as the "cloudbilling.googleapis.com/argentum_metric_id" label. Otherwise leave empty. */
|
|
6478
|
+
argentumMetricId?: string;
|
|
6479
|
+
/** A double value. */
|
|
6480
|
+
doubleValue?: number;
|
|
6481
|
+
/** A signed 64-bit integer value. */
|
|
6482
|
+
int64Value?: string;
|
|
6483
|
+
/** The metric name defined in the service configuration. */
|
|
6484
|
+
metricName?: string;
|
|
6485
|
+
/** Billing system labels for this (metric, value) pair. */
|
|
6486
|
+
systemLabels?: IntelligenceCloudAutomlXpsMetricEntryLabel[];
|
|
6487
|
+
}
|
|
6488
|
+
interface IntelligenceCloudAutomlXpsMetricEntryLabel {
|
|
6489
|
+
/** The name of the label. */
|
|
6490
|
+
labelName?: string;
|
|
6491
|
+
/** The value of the label. */
|
|
6492
|
+
labelValue?: string;
|
|
6493
|
+
}
|
|
6494
|
+
interface IntelligenceCloudAutomlXpsReportingMetrics {
|
|
6495
|
+
/** The effective time training used. If set, this is used for quota management and billing. Deprecated. AutoML BE doesn't use this. Don't set. */
|
|
6496
|
+
effectiveTrainingDuration?: string;
|
|
6497
|
+
/** One entry per metric name. The values must be aggregated per metric name. */
|
|
6498
|
+
metricEntries?: IntelligenceCloudAutomlXpsMetricEntry[];
|
|
6499
|
+
}
|
|
6264
6500
|
interface BatchPredictionJobsResource {
|
|
6265
6501
|
/** Cancels a BatchPredictionJob. Starts asynchronous cancellation on the BatchPredictionJob. The server makes the best effort to cancel the job, but success is not guaranteed. Clients can use JobService.GetBatchPredictionJob or other methods to check whether the cancellation succeeded or whether the job completed despite cancellation. On a successful cancellation, the BatchPredictionJob is not deleted;instead its BatchPredictionJob.state is set to `CANCELLED`. Any files already outputted by the job are not deleted. */
|
|
6266
6502
|
cancel(request: {
|
|
@@ -21307,6 +21543,35 @@ declare namespace gapi.client {
|
|
|
21307
21543
|
},
|
|
21308
21544
|
body: GoogleCloudAiplatformV1beta1CountTokensRequest
|
|
21309
21545
|
): Request<GoogleCloudAiplatformV1beta1CountTokensResponse>;
|
|
21546
|
+
/** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
|
|
21547
|
+
getIamPolicy(request?: {
|
|
21548
|
+
/** V1 error format. */
|
|
21549
|
+
'$.xgafv'?: string;
|
|
21550
|
+
/** OAuth access token. */
|
|
21551
|
+
access_token?: string;
|
|
21552
|
+
/** Data format for response. */
|
|
21553
|
+
alt?: string;
|
|
21554
|
+
/** JSONP */
|
|
21555
|
+
callback?: string;
|
|
21556
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
21557
|
+
fields?: string;
|
|
21558
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
21559
|
+
key?: string;
|
|
21560
|
+
/** OAuth 2.0 token for the current user. */
|
|
21561
|
+
oauth_token?: string;
|
|
21562
|
+
/** Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). */
|
|
21563
|
+
'options.requestedPolicyVersion'?: number;
|
|
21564
|
+
/** Returns response with indentations and line breaks. */
|
|
21565
|
+
prettyPrint?: boolean;
|
|
21566
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
21567
|
+
quotaUser?: string;
|
|
21568
|
+
/** REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
|
|
21569
|
+
resource: string;
|
|
21570
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
21571
|
+
upload_protocol?: string;
|
|
21572
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
21573
|
+
uploadType?: string;
|
|
21574
|
+
}): Request<GoogleIamV1Policy>;
|
|
21310
21575
|
/** Perform an online prediction. */
|
|
21311
21576
|
predict(request: {
|
|
21312
21577
|
/** V1 error format. */
|