@maxim_mazurok/gapi.client.aiplatform-v1beta1 0.0.20240105 → 0.0.20240125
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 +92 -20
- 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: 20240125
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -132,6 +132,8 @@ declare namespace gapi.client {
|
|
|
132
132
|
finishMessage?: string;
|
|
133
133
|
/** The reason why the model stopped generating tokens. */
|
|
134
134
|
finishReason?: string;
|
|
135
|
+
/** Grounding metadata. Combine with the facts list from response to generate grounding citations for this choice. */
|
|
136
|
+
groundingMetadata?: LearningGenaiRootGroundingMetadata;
|
|
135
137
|
/** Index of the candidate. */
|
|
136
138
|
index?: number;
|
|
137
139
|
/** Safety ratings of the generated content. */
|
|
@@ -161,6 +163,16 @@ declare namespace gapi.client {
|
|
|
161
163
|
/** The role of the current conversation participant. */
|
|
162
164
|
role?: string;
|
|
163
165
|
}
|
|
166
|
+
interface CloudAiNlLlmProtoServiceFact {
|
|
167
|
+
/** Query that is used to retrieve this fact. */
|
|
168
|
+
query?: string;
|
|
169
|
+
/** If present, the summary/snippet of the fact. */
|
|
170
|
+
summary?: string;
|
|
171
|
+
/** If present, it refers to the title of this fact. */
|
|
172
|
+
title?: string;
|
|
173
|
+
/** If present, this URL links to the webpage of the fact. */
|
|
174
|
+
url?: string;
|
|
175
|
+
}
|
|
164
176
|
interface CloudAiNlLlmProtoServiceFunctionCall {
|
|
165
177
|
/** The function parameters and values in JSON format. */
|
|
166
178
|
args?: {[P in string]: any};
|
|
@@ -178,6 +190,8 @@ declare namespace gapi.client {
|
|
|
178
190
|
candidates?: CloudAiNlLlmProtoServiceCandidate[];
|
|
179
191
|
/** Debug information containing message metadata. Clients should not consume this field, and this is only populated for Flow Runner path. */
|
|
180
192
|
debugMetadata?: CloudAiNlLlmProtoServiceMessageMetadata;
|
|
193
|
+
/** External facts retrieved for factuality/grounding. */
|
|
194
|
+
facts?: CloudAiNlLlmProtoServiceFact[];
|
|
181
195
|
/** 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. */
|
|
182
196
|
promptFeedback?: CloudAiNlLlmProtoServicePromptFeedback;
|
|
183
197
|
/** Billable prediction metrics. */
|
|
@@ -224,9 +238,17 @@ declare namespace gapi.client {
|
|
|
224
238
|
interface CloudAiNlLlmProtoServicePartVideoMetadata {
|
|
225
239
|
/** The end offset of the video. */
|
|
226
240
|
endOffset?: string;
|
|
241
|
+
/** Internal only model level metadata. */
|
|
242
|
+
modelLevelMetaData?: CloudAiNlLlmProtoServicePartVideoMetadataModelLevelMetadata;
|
|
227
243
|
/** The start offset of the video. */
|
|
228
244
|
startOffset?: string;
|
|
229
245
|
}
|
|
246
|
+
interface CloudAiNlLlmProtoServicePartVideoMetadataModelLevelMetadata {
|
|
247
|
+
/** Frame rate to decode from this video. */
|
|
248
|
+
fps?: number;
|
|
249
|
+
/** Number of frames to decode from this video. */
|
|
250
|
+
numFrames?: number;
|
|
251
|
+
}
|
|
230
252
|
interface CloudAiNlLlmProtoServicePromptFeedback {
|
|
231
253
|
/** Blocked reason. */
|
|
232
254
|
blockReason?: string;
|
|
@@ -245,7 +267,7 @@ declare namespace gapi.client {
|
|
|
245
267
|
/** Whether the text should be filtered and not shown to the end user. This is determined based on a combination of `triggered_recitation`, `triggered_blocklist`, `language_filter_result`, and `triggered_safety_filter`. */
|
|
246
268
|
filtered?: boolean;
|
|
247
269
|
/** Language filter result from SAFT LangId. */
|
|
248
|
-
languageFilterResult?:
|
|
270
|
+
languageFilterResult?: LearningGenaiRootLanguageFilterResult;
|
|
249
271
|
/** The RAI signals for the text. */
|
|
250
272
|
raiSignals?: CloudAiNlLlmProtoServiceRaiSignal[];
|
|
251
273
|
/** Whether the text triggered the blocklist. */
|
|
@@ -852,10 +874,6 @@ declare namespace gapi.client {
|
|
|
852
874
|
/** The common part of the operation metadata. */
|
|
853
875
|
genericMetadata?: GoogleCloudAiplatformV1beta1GenericOperationMetadata;
|
|
854
876
|
}
|
|
855
|
-
interface GoogleCloudAiplatformV1beta1CreateExtensionDeploymentOperationMetadata {
|
|
856
|
-
/** The common part of the operation metadata. */
|
|
857
|
-
genericMetadata?: GoogleCloudAiplatformV1beta1GenericOperationMetadata;
|
|
858
|
-
}
|
|
859
877
|
interface GoogleCloudAiplatformV1beta1CreateFeatureGroupOperationMetadata {
|
|
860
878
|
/** Operation metadata for FeatureGroup. */
|
|
861
879
|
genericMetadata?: GoogleCloudAiplatformV1beta1GenericOperationMetadata;
|
|
@@ -905,6 +923,8 @@ declare namespace gapi.client {
|
|
|
905
923
|
interface GoogleCloudAiplatformV1beta1CreatePersistentResourceOperationMetadata {
|
|
906
924
|
/** Operation metadata for PersistentResource. */
|
|
907
925
|
genericMetadata?: GoogleCloudAiplatformV1beta1GenericOperationMetadata;
|
|
926
|
+
/** Progress Message for Create LRO */
|
|
927
|
+
progressMessage?: string;
|
|
908
928
|
}
|
|
909
929
|
interface GoogleCloudAiplatformV1beta1CreatePipelineJobRequest {
|
|
910
930
|
/** Required. The resource name of the Location to create the PipelineJob in. Format: `projects/{project}/locations/{location}` */
|
|
@@ -913,6 +933,8 @@ declare namespace gapi.client {
|
|
|
913
933
|
pipelineJob?: GoogleCloudAiplatformV1beta1PipelineJob;
|
|
914
934
|
/** The ID to use for the PipelineJob, which will become the final component of the PipelineJob name. If not provided, an ID will be automatically generated. This value should be less than 128 characters, and valid characters are `/a-z-/`. */
|
|
915
935
|
pipelineJobId?: string;
|
|
936
|
+
/** Optional. Whether to do component level validations before job creation. Currently we only support Google First Party Component/Pipelines. */
|
|
937
|
+
preflightValidations?: boolean;
|
|
916
938
|
}
|
|
917
939
|
interface GoogleCloudAiplatformV1beta1CreateRegistryFeatureOperationMetadata {
|
|
918
940
|
/** Operation metadata for Feature. */
|
|
@@ -1535,7 +1557,7 @@ declare namespace gapi.client {
|
|
|
1535
1557
|
explanations?: GoogleCloudAiplatformV1beta1Explanation[];
|
|
1536
1558
|
}
|
|
1537
1559
|
interface GoogleCloudAiplatformV1beta1Explanation {
|
|
1538
|
-
/** Output only. Feature attributions grouped by predicted outputs. For Models that predict only one output, such as regression Models that predict only one score, there is only one attibution that explains the predicted output. For Models that predict multiple outputs, such as multiclass Models that predict multiple classes, each element explains one specific item. Attribution.output_index can be used to identify which output this attribution is explaining. If users set ExplanationParameters.top_k, the attributions are sorted by instance_output_value in descending order. If ExplanationParameters.output_indices is specified, the attributions are stored by Attribution.output_index in the same order as they appear in the output_indices. */
|
|
1560
|
+
/** Output only. Feature attributions grouped by predicted outputs. For Models that predict only one output, such as regression Models that predict only one score, there is only one attibution that explains the predicted output. For Models that predict multiple outputs, such as multiclass Models that predict multiple classes, each element explains one specific item. Attribution.output_index can be used to identify which output this attribution is explaining. By default, we provide Shapley values for the predicted class. However, you can configure the explanation request to generate Shapley values for any other classes too. For example, if a model predicts a probability of `0.4` for approving a loan application, the model's decision is to reject the application since `p(reject) = 0.6 > p(approve) = 0.4`, and the default Shapley values would be computed for rejection decision and not approval, even though the latter might be the positive class. If users set ExplanationParameters.top_k, the attributions are sorted by instance_output_value in descending order. If ExplanationParameters.output_indices is specified, the attributions are stored by Attribution.output_index in the same order as they appear in the output_indices. */
|
|
1539
1561
|
attributions?: GoogleCloudAiplatformV1beta1Attribution[];
|
|
1540
1562
|
/** Output only. List of the nearest neighbors for example-based explanations. For models deployed with the examples explanations feature enabled, the attributions field is empty and instead the neighbors field is populated. */
|
|
1541
1563
|
neighbors?: GoogleCloudAiplatformV1beta1Neighbor[];
|
|
@@ -2464,6 +2486,8 @@ declare namespace gapi.client {
|
|
|
2464
2486
|
interface GoogleCloudAiplatformV1beta1IndexPrivateEndpoints {
|
|
2465
2487
|
/** Output only. The ip address used to send match gRPC requests. */
|
|
2466
2488
|
matchGrpcAddress?: string;
|
|
2489
|
+
/** Output only. PscAutomatedEndpoints is populated if private service connect is enabled if PscAutomatedConfig is set. */
|
|
2490
|
+
pscAutomatedEndpoints?: GoogleCloudAiplatformV1beta1PscAutomatedEndpoints[];
|
|
2467
2491
|
/** Output only. The name of the service attachment resource. Populated if private service connect is enabled. */
|
|
2468
2492
|
serviceAttachment?: string;
|
|
2469
2493
|
}
|
|
@@ -3000,7 +3024,7 @@ declare namespace gapi.client {
|
|
|
3000
3024
|
metadataArtifact?: string;
|
|
3001
3025
|
/** Immutable. Points to a YAML file stored on Google Cloud Storage describing additional information about the Model, that is specific to it. Unset if the Model does not have any additional information. The schema is defined as an OpenAPI 3.0.2 [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). AutoML Models always have this field populated by Vertex AI, if no additional metadata is needed, this field is set to an empty string. Note: The URI given on output will be immutable and probably different, including the URI scheme, than the one given on input. The output URI will point to a location where the user only has a read access. */
|
|
3002
3026
|
metadataSchemaUri?: string;
|
|
3003
|
-
/** Output only. Source of a model. It can either be automl training pipeline, custom training pipeline, BigQuery ML, or
|
|
3027
|
+
/** Output only. Source of a model. It can either be automl training pipeline, custom training pipeline, BigQuery ML, or saved and tuned from Genie or Model Garden. */
|
|
3004
3028
|
modelSourceInfo?: GoogleCloudAiplatformV1beta1ModelSourceInfo;
|
|
3005
3029
|
/** The resource name of the Model. */
|
|
3006
3030
|
name?: string;
|
|
@@ -3758,6 +3782,8 @@ declare namespace gapi.client {
|
|
|
3758
3782
|
taskDetails?: GoogleCloudAiplatformV1beta1PipelineTaskDetail[];
|
|
3759
3783
|
}
|
|
3760
3784
|
interface GoogleCloudAiplatformV1beta1PipelineJobRuntimeConfig {
|
|
3785
|
+
/** Optional. The default runtime for the PipelineJob. If not provided, Vertex Custom Job is used as the runtime. For Vertex Custom Job, please refer to https://cloud.google.com/vertex-ai/docs/training/overview */
|
|
3786
|
+
defaultRuntime?: GoogleCloudAiplatformV1beta1PipelineJobRuntimeConfigDefaultRuntime;
|
|
3761
3787
|
/** Represents the failure policy of a pipeline. Currently, the default of a pipeline is that the pipeline will continue to run until no more tasks can be executed, also known as PIPELINE_FAILURE_POLICY_FAIL_SLOW. However, if a pipeline is set to PIPELINE_FAILURE_POLICY_FAIL_FAST, it will stop scheduling any new tasks when a task has failed. Any scheduled tasks will continue to completion. */
|
|
3762
3788
|
failurePolicy?: string;
|
|
3763
3789
|
/** Required. A path in a Cloud Storage bucket, which will be treated as the root output directory of the pipeline. It is used by the system to generate the paths of output artifacts. The artifact paths are generated with a sub-path pattern `{job_id}/{task_id}/{output_key}` under the specified output directory. The service account specified in this pipeline must have the `storage.objects.get` and `storage.objects.create` permissions for this bucket. */
|
|
@@ -3771,10 +3797,18 @@ declare namespace gapi.client {
|
|
|
3771
3797
|
/** The runtime parameters of the PipelineJob. The parameters will be passed into PipelineJob.pipeline_spec to replace the placeholders at runtime. This field is used by pipelines built using `PipelineJob.pipeline_spec.schema_version` 2.1.0, such as pipelines built using Kubeflow Pipelines SDK 1.9 or higher and the v2 DSL. */
|
|
3772
3798
|
parameterValues?: {[P in string]: any};
|
|
3773
3799
|
}
|
|
3800
|
+
interface GoogleCloudAiplatformV1beta1PipelineJobRuntimeConfigDefaultRuntime {
|
|
3801
|
+
/** Persistent resource based runtime detail. */
|
|
3802
|
+
persistentResourceRuntimeDetail?: GoogleCloudAiplatformV1beta1PipelineJobRuntimeConfigPersistentResourceRuntimeDetail;
|
|
3803
|
+
}
|
|
3774
3804
|
interface GoogleCloudAiplatformV1beta1PipelineJobRuntimeConfigInputArtifact {
|
|
3775
3805
|
/** Artifact resource id from MLMD. Which is the last portion of an artifact resource name: `projects/{project}/locations/{location}/metadataStores/default/artifacts/{artifact_id}`. The artifact must stay within the same project, location and default metadatastore as the pipeline. */
|
|
3776
3806
|
artifactId?: string;
|
|
3777
3807
|
}
|
|
3808
|
+
interface GoogleCloudAiplatformV1beta1PipelineJobRuntimeConfigPersistentResourceRuntimeDetail {
|
|
3809
|
+
/** Persistent resource name. Format: `projects/{project}/locations/{location}/persistentResources/{persistent_resource}` */
|
|
3810
|
+
persistentResourceName?: string;
|
|
3811
|
+
}
|
|
3778
3812
|
interface GoogleCloudAiplatformV1beta1PipelineTaskDetail {
|
|
3779
3813
|
/** Output only. Task create time. */
|
|
3780
3814
|
createTime?: string;
|
|
@@ -3923,6 +3957,14 @@ declare namespace gapi.client {
|
|
|
3923
3957
|
/** Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. */
|
|
3924
3958
|
command?: string[];
|
|
3925
3959
|
}
|
|
3960
|
+
interface GoogleCloudAiplatformV1beta1PscAutomatedEndpoints {
|
|
3961
|
+
/** Ip Address created by the automated forwarding rule. */
|
|
3962
|
+
matchAddress?: string;
|
|
3963
|
+
/** Corresponding network in pscAutomationConfigs. */
|
|
3964
|
+
network?: string;
|
|
3965
|
+
/** Corresponding project_id in pscAutomationConfigs */
|
|
3966
|
+
projectId?: string;
|
|
3967
|
+
}
|
|
3926
3968
|
interface GoogleCloudAiplatformV1beta1PublisherModel {
|
|
3927
3969
|
/** Optional. Additional information about the model's Frameworks. */
|
|
3928
3970
|
frameworks?: string[];
|
|
@@ -6330,6 +6372,8 @@ declare namespace gapi.client {
|
|
|
6330
6372
|
interface GoogleCloudAiplatformV1beta1UpdatePersistentResourceOperationMetadata {
|
|
6331
6373
|
/** Operation metadata for PersistentResource. */
|
|
6332
6374
|
genericMetadata?: GoogleCloudAiplatformV1beta1GenericOperationMetadata;
|
|
6375
|
+
/** Progress Message for Update LRO */
|
|
6376
|
+
progressMessage?: string;
|
|
6333
6377
|
}
|
|
6334
6378
|
interface GoogleCloudAiplatformV1beta1UpdateSpecialistPoolOperationMetadata {
|
|
6335
6379
|
/** The operation generic information. */
|
|
@@ -6463,7 +6507,7 @@ declare namespace gapi.client {
|
|
|
6463
6507
|
condition?: GoogleTypeExpr;
|
|
6464
6508
|
/** Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workforce identity pool. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`: All workforce identities in a group. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All workforce identities with a specific attribute value. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`: All identities in a workforce identity pool. * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workload identity pool. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity pool group. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All identities in a workload identity pool with a certain attribute. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`: All identities in a workload identity pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: Deleted single identity in a workforce identity pool. For example, `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`. */
|
|
6465
6509
|
members?: string[];
|
|
6466
|
-
/** Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. */
|
|
6510
|
+
/** Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles). */
|
|
6467
6511
|
role?: string;
|
|
6468
6512
|
}
|
|
6469
6513
|
interface GoogleIamV1GetIamPolicyRequest {
|
|
@@ -6592,6 +6636,8 @@ declare namespace gapi.client {
|
|
|
6592
6636
|
arxivId?: string;
|
|
6593
6637
|
author?: string;
|
|
6594
6638
|
bibkey?: string;
|
|
6639
|
+
/** ID of the paper in bioarxiv like ddoi.org/{biorxiv_id} eg: https://doi.org/10.1101/343517 */
|
|
6640
|
+
biorxivId?: string;
|
|
6595
6641
|
bookTitle?: string;
|
|
6596
6642
|
/** The Oceanographers full-view books dataset uses a 'volume id' as the unique ID of a book. There is a deterministic function from a volume id to a URL under the books.google.com domain. Marked as 'optional' since a volume ID of zero is potentially possible and we want to distinguish that from the volume ID not being set. */
|
|
6597
6643
|
bookVolumeId?: string;
|
|
@@ -6624,6 +6670,8 @@ declare namespace gapi.client {
|
|
|
6624
6670
|
volumeId?: string;
|
|
6625
6671
|
/** Wikipedia article title. The Wikipedia TFDS dataset includes article titles but not URLs. While a URL is to the best of our knowledge a deterministic function of the title, we store the original title to reflect the information in the original dataset. */
|
|
6626
6672
|
wikipediaArticleTitle?: string;
|
|
6673
|
+
/** The unique video id from Youtube. Example: AkoGsW52Ir0 */
|
|
6674
|
+
youtubeVideoId?: string;
|
|
6627
6675
|
}
|
|
6628
6676
|
interface LanguageLabsAidaTrustRecitationProtoRecitationResult {
|
|
6629
6677
|
dynamicSegmentResults?: LanguageLabsAidaTrustRecitationProtoSegmentResult[];
|
|
@@ -6662,6 +6710,8 @@ declare namespace gapi.client {
|
|
|
6662
6710
|
arxivId?: string;
|
|
6663
6711
|
author?: string;
|
|
6664
6712
|
bibkey?: string;
|
|
6713
|
+
/** ID of the paper in bioarxiv like ddoi.org/{biorxiv_id} eg: https://doi.org/10.1101/343517 */
|
|
6714
|
+
biorxivId?: string;
|
|
6665
6715
|
bookTitle?: string;
|
|
6666
6716
|
/** The Oceanographers full-view books dataset uses a 'volume id' as the unique ID of a book. There is a deterministic function from a volume id to a URL under the books.google.com domain. Marked as 'optional' since a volume ID of zero is potentially possible and we want to distinguish that from the volume ID not being set. */
|
|
6667
6717
|
bookVolumeId?: string;
|
|
@@ -6694,6 +6744,7 @@ declare namespace gapi.client {
|
|
|
6694
6744
|
volumeId?: string;
|
|
6695
6745
|
/** Wikipedia article title. The Wikipedia TFDS dataset includes article titles but not URLs. While a URL is to the best of our knowledge a deterministic function of the title, we store the original title to reflect the information in the original dataset. */
|
|
6696
6746
|
wikipediaArticleTitle?: string;
|
|
6747
|
+
youtubeVideoId?: string;
|
|
6697
6748
|
}
|
|
6698
6749
|
interface LearningGenaiRecitationRecitationResult {
|
|
6699
6750
|
dynamicSegmentResults?: LearningGenaiRecitationSegmentResult[];
|
|
@@ -6764,7 +6815,7 @@ declare namespace gapi.client {
|
|
|
6764
6815
|
interface LearningGenaiRootFilterMetadataFilterDebugInfo {
|
|
6765
6816
|
classifierOutput?: LearningGenaiRootClassifierOutput;
|
|
6766
6817
|
defaultMetadata?: string;
|
|
6767
|
-
languageFilterResult?:
|
|
6818
|
+
languageFilterResult?: LearningGenaiRootLanguageFilterResult;
|
|
6768
6819
|
/** Safety filter output information for LLM Root RAI harm check. */
|
|
6769
6820
|
raiOutput?: LearningGenaiRootRAIOutput;
|
|
6770
6821
|
raiResult?: CloudAiNlLlmProtoServiceRaiResult;
|
|
@@ -6773,6 +6824,22 @@ declare namespace gapi.client {
|
|
|
6773
6824
|
takedownResult?: LearningGenaiRootTakedownResult;
|
|
6774
6825
|
toxicityResult?: LearningGenaiRootToxicityResult;
|
|
6775
6826
|
}
|
|
6827
|
+
interface LearningGenaiRootGroundingMetadata {
|
|
6828
|
+
citations?: LearningGenaiRootGroundingMetadataCitation[];
|
|
6829
|
+
/** True if grounding is cancelled, for example, no facts being retrieved. */
|
|
6830
|
+
groundingCancelled?: boolean;
|
|
6831
|
+
searchQueries?: string[];
|
|
6832
|
+
}
|
|
6833
|
+
interface LearningGenaiRootGroundingMetadataCitation {
|
|
6834
|
+
/** Index in the prediction output where the citation ends (exclusive). Must be > start_index and < len(output). */
|
|
6835
|
+
endIndex?: number;
|
|
6836
|
+
/** Index of the fact supporting this claim. Should be within the range of the `world_facts` in the GenerateResponse. */
|
|
6837
|
+
factIndex?: number;
|
|
6838
|
+
/** Confidence score of this entailment. Value is [0,1] with 1 is the most confidence. */
|
|
6839
|
+
score?: number;
|
|
6840
|
+
/** Index in the prediction output where the citation starts (inclusive). Must be >= 0 and < end_index. */
|
|
6841
|
+
startIndex?: number;
|
|
6842
|
+
}
|
|
6776
6843
|
interface LearningGenaiRootHarm {
|
|
6777
6844
|
/** Please do not use, this is still under development. */
|
|
6778
6845
|
contextualDangerous?: boolean;
|
|
@@ -6812,6 +6879,14 @@ declare namespace gapi.client {
|
|
|
6812
6879
|
interface LearningGenaiRootInternalMetadata {
|
|
6813
6880
|
scoredTokens?: LearningGenaiRootScoredToken[];
|
|
6814
6881
|
}
|
|
6882
|
+
interface LearningGenaiRootLanguageFilterResult {
|
|
6883
|
+
/** False when query or response should be filtered out due to unsupported language. */
|
|
6884
|
+
allowed?: boolean;
|
|
6885
|
+
/** Language of the query or response. */
|
|
6886
|
+
detectedLanguage?: string;
|
|
6887
|
+
/** Probability of the language predicted as returned by LangID. */
|
|
6888
|
+
detectedLanguageProbability?: number;
|
|
6889
|
+
}
|
|
6815
6890
|
interface LearningGenaiRootMetricOutput {
|
|
6816
6891
|
debug?: string;
|
|
6817
6892
|
/** Name of the metric. */
|
|
@@ -6946,14 +7021,6 @@ declare namespace gapi.client {
|
|
|
6946
7021
|
label?: string;
|
|
6947
7022
|
score?: number;
|
|
6948
7023
|
}
|
|
6949
|
-
interface LearningServingLlmLanguageFilterResult {
|
|
6950
|
-
/** False when query or response should be filtered out due to unsupported language. */
|
|
6951
|
-
allowed?: boolean;
|
|
6952
|
-
/** Language of the query or response. */
|
|
6953
|
-
detectedLanguage?: string;
|
|
6954
|
-
/** Probability of the language predicted as returned by LangID. */
|
|
6955
|
-
detectedLanguageProbability?: number;
|
|
6956
|
-
}
|
|
6957
7024
|
interface LearningServingLlmMessageMetadata {
|
|
6958
7025
|
/** Summary of classifier output. We attach this to all messages regardless of whether classification rules triggered or not. */
|
|
6959
7026
|
classifierSummary?: LearningGenaiRootClassifierOutputSummary;
|
|
@@ -6966,6 +7033,7 @@ declare namespace gapi.client {
|
|
|
6966
7033
|
finalMessageScore?: LearningGenaiRootScore;
|
|
6967
7034
|
/** NOT YET IMPLEMENTED. */
|
|
6968
7035
|
finishReason?: string;
|
|
7036
|
+
groundingMetadata?: LearningGenaiRootGroundingMetadata;
|
|
6969
7037
|
/** Applies to Response message only. Indicates whether the message is a fallback and the response would have otherwise been empty. */
|
|
6970
7038
|
isFallback?: boolean;
|
|
6971
7039
|
/** Result from nlp_saft DetectLanguage method. Currently the predicted language code and language probability is used. */
|
|
@@ -13027,7 +13095,7 @@ declare namespace gapi.client {
|
|
|
13027
13095
|
key?: string;
|
|
13028
13096
|
/** OAuth 2.0 token for the current user. */
|
|
13029
13097
|
oauth_token?: string;
|
|
13030
|
-
/** Required. The resource name of the Location to create FeatureOnlineStores. Format: `projects/{project}/locations/{location}
|
|
13098
|
+
/** Required. The resource name of the Location to create FeatureOnlineStores. Format: `projects/{project}/locations/{location}` */
|
|
13031
13099
|
parent: string;
|
|
13032
13100
|
/** Returns response with indentations and line breaks. */
|
|
13033
13101
|
prettyPrint?: boolean;
|
|
@@ -13058,7 +13126,7 @@ declare namespace gapi.client {
|
|
|
13058
13126
|
key?: string;
|
|
13059
13127
|
/** OAuth 2.0 token for the current user. */
|
|
13060
13128
|
oauth_token?: string;
|
|
13061
|
-
/** Required. The resource name of the Location to create FeatureOnlineStores. Format: `projects/{project}/locations/{location}
|
|
13129
|
+
/** Required. The resource name of the Location to create FeatureOnlineStores. Format: `projects/{project}/locations/{location}` */
|
|
13062
13130
|
parent: string;
|
|
13063
13131
|
/** Returns response with indentations and line breaks. */
|
|
13064
13132
|
prettyPrint?: boolean;
|
|
@@ -22419,6 +22487,8 @@ declare namespace gapi.client {
|
|
|
22419
22487
|
parent: string;
|
|
22420
22488
|
/** The ID to use for the PipelineJob, which will become the final component of the PipelineJob name. If not provided, an ID will be automatically generated. This value should be less than 128 characters, and valid characters are `/a-z-/`. */
|
|
22421
22489
|
pipelineJobId?: string;
|
|
22490
|
+
/** Optional. Whether to do component level validations before job creation. Currently we only support Google First Party Component/Pipelines. */
|
|
22491
|
+
preflightValidations?: boolean;
|
|
22422
22492
|
/** Returns response with indentations and line breaks. */
|
|
22423
22493
|
prettyPrint?: boolean;
|
|
22424
22494
|
/** 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. */
|
|
@@ -22450,6 +22520,8 @@ declare namespace gapi.client {
|
|
|
22450
22520
|
parent: string;
|
|
22451
22521
|
/** The ID to use for the PipelineJob, which will become the final component of the PipelineJob name. If not provided, an ID will be automatically generated. This value should be less than 128 characters, and valid characters are `/a-z-/`. */
|
|
22452
22522
|
pipelineJobId?: string;
|
|
22523
|
+
/** Optional. Whether to do component level validations before job creation. Currently we only support Google First Party Component/Pipelines. */
|
|
22524
|
+
preflightValidations?: boolean;
|
|
22453
22525
|
/** Returns response with indentations and line breaks. */
|
|
22454
22526
|
prettyPrint?: boolean;
|
|
22455
22527
|
/** 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. */
|