@maxim_mazurok/gapi.client.aiplatform-v1beta1 0.0.20240828 → 0.0.20240830
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 +177 -1
- 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: 20240830
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -262,6 +262,26 @@ declare namespace gapi.client {
|
|
|
262
262
|
/** Output only. Name of the explain output. Specified as the key in ExplanationMetadata.outputs. */
|
|
263
263
|
outputName?: string;
|
|
264
264
|
}
|
|
265
|
+
interface GoogleCloudAiplatformV1beta1AugmentPromptRequest {
|
|
266
|
+
/** Optional. Input content to augment, only text format is supported for now. */
|
|
267
|
+
contents?: GoogleCloudAiplatformV1beta1Content[];
|
|
268
|
+
/** Optional. Metadata of the backend deployed model. */
|
|
269
|
+
model?: GoogleCloudAiplatformV1beta1AugmentPromptRequestModel;
|
|
270
|
+
/** Optional. Retrieves contexts from the Vertex RagStore. */
|
|
271
|
+
vertexRagStore?: GoogleCloudAiplatformV1beta1VertexRagStore;
|
|
272
|
+
}
|
|
273
|
+
interface GoogleCloudAiplatformV1beta1AugmentPromptRequestModel {
|
|
274
|
+
/** Optional. The model that the user will send the augmented prompt for content generation. */
|
|
275
|
+
model?: string;
|
|
276
|
+
/** Optional. The model version of the backend deployed model. */
|
|
277
|
+
modelVersion?: string;
|
|
278
|
+
}
|
|
279
|
+
interface GoogleCloudAiplatformV1beta1AugmentPromptResponse {
|
|
280
|
+
/** Augmented prompt, only text format is supported for now. */
|
|
281
|
+
augmentedPrompt?: GoogleCloudAiplatformV1beta1Content[];
|
|
282
|
+
/** Retrieved facts from RAG data sources. */
|
|
283
|
+
facts?: GoogleCloudAiplatformV1beta1Fact[];
|
|
284
|
+
}
|
|
265
285
|
interface GoogleCloudAiplatformV1beta1AuthConfig {
|
|
266
286
|
/** Config for API key auth. */
|
|
267
287
|
apiKeyConfig?: GoogleCloudAiplatformV1beta1AuthConfigApiKeyConfig;
|
|
@@ -694,6 +714,16 @@ declare namespace gapi.client {
|
|
|
694
714
|
/** Output only. List of citations. */
|
|
695
715
|
citations?: GoogleCloudAiplatformV1beta1Citation[];
|
|
696
716
|
}
|
|
717
|
+
interface GoogleCloudAiplatformV1beta1Claim {
|
|
718
|
+
/** Index in the input text where the claim ends (exclusive). */
|
|
719
|
+
endIndex?: number;
|
|
720
|
+
/** Indexes of the facts supporting this claim. */
|
|
721
|
+
factIndexes?: number[];
|
|
722
|
+
/** Confidence score of this corroboration. */
|
|
723
|
+
score?: number;
|
|
724
|
+
/** Index in the input text where the claim starts (inclusive). */
|
|
725
|
+
startIndex?: number;
|
|
726
|
+
}
|
|
697
727
|
interface GoogleCloudAiplatformV1beta1CoherenceInput {
|
|
698
728
|
/** Required. Coherence instance. */
|
|
699
729
|
instance?: GoogleCloudAiplatformV1beta1CoherenceInstance;
|
|
@@ -816,6 +846,24 @@ declare namespace gapi.client {
|
|
|
816
846
|
/** Output only. RagCorpus life state. */
|
|
817
847
|
state?: string;
|
|
818
848
|
}
|
|
849
|
+
interface GoogleCloudAiplatformV1beta1CorroborateContentRequest {
|
|
850
|
+
/** Optional. Input content to corroborate, only text format is supported for now. */
|
|
851
|
+
content?: GoogleCloudAiplatformV1beta1Content;
|
|
852
|
+
/** Optional. Facts used to generate the text can also be used to corroborate the text. */
|
|
853
|
+
facts?: GoogleCloudAiplatformV1beta1Fact[];
|
|
854
|
+
/** Optional. Parameters that can be set to override default settings per request. */
|
|
855
|
+
parameters?: GoogleCloudAiplatformV1beta1CorroborateContentRequestParameters;
|
|
856
|
+
}
|
|
857
|
+
interface GoogleCloudAiplatformV1beta1CorroborateContentRequestParameters {
|
|
858
|
+
/** Optional. Only return claims with citation score larger than the threshold. */
|
|
859
|
+
citationThreshold?: number;
|
|
860
|
+
}
|
|
861
|
+
interface GoogleCloudAiplatformV1beta1CorroborateContentResponse {
|
|
862
|
+
/** Claims that are extracted from the input content and facts that support the claims. */
|
|
863
|
+
claims?: GoogleCloudAiplatformV1beta1Claim[];
|
|
864
|
+
/** Confidence score of corroborating content. Value is [0,1] with 1 is the most confidence. */
|
|
865
|
+
corroborationScore?: number;
|
|
866
|
+
}
|
|
819
867
|
interface GoogleCloudAiplatformV1beta1CountTokensRequest {
|
|
820
868
|
/** Optional. Input content. */
|
|
821
869
|
contents?: GoogleCloudAiplatformV1beta1Content[];
|
|
@@ -2088,6 +2136,18 @@ declare namespace gapi.client {
|
|
|
2088
2136
|
/** Required. The Service Directory resource name in which the service endpoints associated to the extension are registered. Format: `projects/{project_id}/locations/{location_id}/namespaces/{namespace_id}/services/{service_id}` - The Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) should be granted `servicedirectory.viewer` and `servicedirectory.pscAuthorizedService` roles on the resource. */
|
|
2089
2137
|
serviceDirectory?: string;
|
|
2090
2138
|
}
|
|
2139
|
+
interface GoogleCloudAiplatformV1beta1Fact {
|
|
2140
|
+
/** Query that is used to retrieve this fact. */
|
|
2141
|
+
query?: string;
|
|
2142
|
+
/** If present, the summary/snippet of the fact. */
|
|
2143
|
+
summary?: string;
|
|
2144
|
+
/** If present, it refers to the title of this fact. */
|
|
2145
|
+
title?: string;
|
|
2146
|
+
/** If present, this uri links to the source of the fact. */
|
|
2147
|
+
uri?: string;
|
|
2148
|
+
/** If present, the distance between the query vector and this fact vector. */
|
|
2149
|
+
vectorDistance?: number;
|
|
2150
|
+
}
|
|
2091
2151
|
interface GoogleCloudAiplatformV1beta1Feature {
|
|
2092
2152
|
/** Output only. Only applicable for Vertex AI Feature Store (Legacy). Timestamp when this EntityType was created. */
|
|
2093
2153
|
createTime?: string;
|
|
@@ -33490,6 +33550,122 @@ declare namespace gapi.client {
|
|
|
33490
33550
|
}): Request<GoogleCloudAiplatformV1beta1ListTuningJobsResponse>;
|
|
33491
33551
|
}
|
|
33492
33552
|
interface LocationsResource {
|
|
33553
|
+
/** Given an input prompt, it returns augmented prompt from vertex rag store to guide LLM towards generating grounded responses. */
|
|
33554
|
+
augmentPrompt(request: {
|
|
33555
|
+
/** V1 error format. */
|
|
33556
|
+
'$.xgafv'?: string;
|
|
33557
|
+
/** OAuth access token. */
|
|
33558
|
+
access_token?: string;
|
|
33559
|
+
/** Data format for response. */
|
|
33560
|
+
alt?: string;
|
|
33561
|
+
/** JSONP */
|
|
33562
|
+
callback?: string;
|
|
33563
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
33564
|
+
fields?: string;
|
|
33565
|
+
/** 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. */
|
|
33566
|
+
key?: string;
|
|
33567
|
+
/** OAuth 2.0 token for the current user. */
|
|
33568
|
+
oauth_token?: string;
|
|
33569
|
+
/** Required. The resource name of the Location from which to augment prompt. The users must have permission to make a call in the project. Format: `projects/{project}/locations/{location}`. */
|
|
33570
|
+
parent: string;
|
|
33571
|
+
/** Returns response with indentations and line breaks. */
|
|
33572
|
+
prettyPrint?: boolean;
|
|
33573
|
+
/** 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. */
|
|
33574
|
+
quotaUser?: string;
|
|
33575
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
33576
|
+
upload_protocol?: string;
|
|
33577
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
33578
|
+
uploadType?: string;
|
|
33579
|
+
/** Request body */
|
|
33580
|
+
resource: GoogleCloudAiplatformV1beta1AugmentPromptRequest;
|
|
33581
|
+
}): Request<GoogleCloudAiplatformV1beta1AugmentPromptResponse>;
|
|
33582
|
+
augmentPrompt(
|
|
33583
|
+
request: {
|
|
33584
|
+
/** V1 error format. */
|
|
33585
|
+
'$.xgafv'?: string;
|
|
33586
|
+
/** OAuth access token. */
|
|
33587
|
+
access_token?: string;
|
|
33588
|
+
/** Data format for response. */
|
|
33589
|
+
alt?: string;
|
|
33590
|
+
/** JSONP */
|
|
33591
|
+
callback?: string;
|
|
33592
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
33593
|
+
fields?: string;
|
|
33594
|
+
/** 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. */
|
|
33595
|
+
key?: string;
|
|
33596
|
+
/** OAuth 2.0 token for the current user. */
|
|
33597
|
+
oauth_token?: string;
|
|
33598
|
+
/** Required. The resource name of the Location from which to augment prompt. The users must have permission to make a call in the project. Format: `projects/{project}/locations/{location}`. */
|
|
33599
|
+
parent: string;
|
|
33600
|
+
/** Returns response with indentations and line breaks. */
|
|
33601
|
+
prettyPrint?: boolean;
|
|
33602
|
+
/** 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. */
|
|
33603
|
+
quotaUser?: string;
|
|
33604
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
33605
|
+
upload_protocol?: string;
|
|
33606
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
33607
|
+
uploadType?: string;
|
|
33608
|
+
},
|
|
33609
|
+
body: GoogleCloudAiplatformV1beta1AugmentPromptRequest
|
|
33610
|
+
): Request<GoogleCloudAiplatformV1beta1AugmentPromptResponse>;
|
|
33611
|
+
/** Given an input text, it returns a score that evaluates the factuality of the text. It also extracts and returns claims from the text and provides supporting facts. */
|
|
33612
|
+
corroborateContent(request: {
|
|
33613
|
+
/** V1 error format. */
|
|
33614
|
+
'$.xgafv'?: string;
|
|
33615
|
+
/** OAuth access token. */
|
|
33616
|
+
access_token?: string;
|
|
33617
|
+
/** Data format for response. */
|
|
33618
|
+
alt?: string;
|
|
33619
|
+
/** JSONP */
|
|
33620
|
+
callback?: string;
|
|
33621
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
33622
|
+
fields?: string;
|
|
33623
|
+
/** 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. */
|
|
33624
|
+
key?: string;
|
|
33625
|
+
/** OAuth 2.0 token for the current user. */
|
|
33626
|
+
oauth_token?: string;
|
|
33627
|
+
/** Required. The resource name of the Location from which to corroborate text. The users must have permission to make a call in the project. Format: `projects/{project}/locations/{location}`. */
|
|
33628
|
+
parent: string;
|
|
33629
|
+
/** Returns response with indentations and line breaks. */
|
|
33630
|
+
prettyPrint?: boolean;
|
|
33631
|
+
/** 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. */
|
|
33632
|
+
quotaUser?: string;
|
|
33633
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
33634
|
+
upload_protocol?: string;
|
|
33635
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
33636
|
+
uploadType?: string;
|
|
33637
|
+
/** Request body */
|
|
33638
|
+
resource: GoogleCloudAiplatformV1beta1CorroborateContentRequest;
|
|
33639
|
+
}): Request<GoogleCloudAiplatformV1beta1CorroborateContentResponse>;
|
|
33640
|
+
corroborateContent(
|
|
33641
|
+
request: {
|
|
33642
|
+
/** V1 error format. */
|
|
33643
|
+
'$.xgafv'?: string;
|
|
33644
|
+
/** OAuth access token. */
|
|
33645
|
+
access_token?: string;
|
|
33646
|
+
/** Data format for response. */
|
|
33647
|
+
alt?: string;
|
|
33648
|
+
/** JSONP */
|
|
33649
|
+
callback?: string;
|
|
33650
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
33651
|
+
fields?: string;
|
|
33652
|
+
/** 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. */
|
|
33653
|
+
key?: string;
|
|
33654
|
+
/** OAuth 2.0 token for the current user. */
|
|
33655
|
+
oauth_token?: string;
|
|
33656
|
+
/** Required. The resource name of the Location from which to corroborate text. The users must have permission to make a call in the project. Format: `projects/{project}/locations/{location}`. */
|
|
33657
|
+
parent: string;
|
|
33658
|
+
/** Returns response with indentations and line breaks. */
|
|
33659
|
+
prettyPrint?: boolean;
|
|
33660
|
+
/** 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. */
|
|
33661
|
+
quotaUser?: string;
|
|
33662
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
33663
|
+
upload_protocol?: string;
|
|
33664
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
33665
|
+
uploadType?: string;
|
|
33666
|
+
},
|
|
33667
|
+
body: GoogleCloudAiplatformV1beta1CorroborateContentRequest
|
|
33668
|
+
): Request<GoogleCloudAiplatformV1beta1CorroborateContentResponse>;
|
|
33493
33669
|
/** Evaluates instances based on a given metric. */
|
|
33494
33670
|
evaluateInstances(request: {
|
|
33495
33671
|
/** V1 error format. */
|