@maxim_mazurok/gapi.client.aiplatform-v1beta1 0.0.20250711 → 0.0.20250728
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 +188 -5
- package/package.json +1 -1
- package/readme.md +10 -0
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: 20250728
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -1079,6 +1079,8 @@ declare namespace gapi.client {
|
|
|
1079
1079
|
deploymentResourcePoolId?: string;
|
|
1080
1080
|
}
|
|
1081
1081
|
interface GoogleCloudAiplatformV1beta1CreateEndpointOperationMetadata {
|
|
1082
|
+
/** Output only. The deployment stage of the model. Only populated if this CreateEndpoint request deploys a model at the same time. */
|
|
1083
|
+
deploymentStage?: string;
|
|
1082
1084
|
/** The operation generic information. */
|
|
1083
1085
|
genericMetadata?: GoogleCloudAiplatformV1beta1GenericOperationMetadata;
|
|
1084
1086
|
}
|
|
@@ -1585,6 +1587,8 @@ declare namespace gapi.client {
|
|
|
1585
1587
|
explanationSpec?: GoogleCloudAiplatformV1beta1ExplanationSpec;
|
|
1586
1588
|
/** Configuration for faster model deployment. */
|
|
1587
1589
|
fasterDeploymentConfig?: GoogleCloudAiplatformV1beta1FasterDeploymentConfig;
|
|
1590
|
+
/** GDC pretrained / Gemini model name. The model name is a plain model name, e.g. gemini-1.5-flash-002. */
|
|
1591
|
+
gdcConnectedModel?: string;
|
|
1588
1592
|
/** Immutable. The ID of the DeployedModel. If not provided upon deployment, Vertex AI will generate a value for this ID. This value should be 1-10 characters, and valid characters are `/[0-9]/`. */
|
|
1589
1593
|
id?: string;
|
|
1590
1594
|
/** The resource name of the Model that this is the deployment of. Note that the Model may be in a different location than the DeployedModel's Endpoint. The resource name may contain version id or version alias to specify the version. Example: `projects/{project}/locations/{location}/models/{model}@2` or `projects/{project}/locations/{location}/models/{model}@golden` if no version is specified, the default version will be deployed. */
|
|
@@ -1655,6 +1659,8 @@ declare namespace gapi.client {
|
|
|
1655
1659
|
serviceAccount?: string;
|
|
1656
1660
|
}
|
|
1657
1661
|
interface GoogleCloudAiplatformV1beta1DeployModelOperationMetadata {
|
|
1662
|
+
/** Output only. The deployment stage of the model. */
|
|
1663
|
+
deploymentStage?: string;
|
|
1658
1664
|
/** The operation generic information. */
|
|
1659
1665
|
genericMetadata?: GoogleCloudAiplatformV1beta1GenericOperationMetadata;
|
|
1660
1666
|
}
|
|
@@ -1683,6 +1689,8 @@ declare namespace gapi.client {
|
|
|
1683
1689
|
modelDisplayName?: string;
|
|
1684
1690
|
}
|
|
1685
1691
|
interface GoogleCloudAiplatformV1beta1DeployRequest {
|
|
1692
|
+
/** The custom model to deploy from a Google Cloud Storage URI. */
|
|
1693
|
+
customModel?: GoogleCloudAiplatformV1beta1DeployRequestCustomModel;
|
|
1686
1694
|
/** Optional. The deploy config to use for the deployment. If not specified, the default deploy config will be used. */
|
|
1687
1695
|
deployConfig?: GoogleCloudAiplatformV1beta1DeployRequestDeployConfig;
|
|
1688
1696
|
/** Optional. The endpoint config to use for the deployment. If not specified, the default endpoint config will be used. */
|
|
@@ -1694,6 +1702,12 @@ declare namespace gapi.client {
|
|
|
1694
1702
|
/** The Model Garden model to deploy. Format: `publishers/{publisher}/models/{publisher_model}@{version_id}`, or `publishers/hf-{hugging-face-author}/models/{hugging-face-model-name}@001`. */
|
|
1695
1703
|
publisherModelName?: string;
|
|
1696
1704
|
}
|
|
1705
|
+
interface GoogleCloudAiplatformV1beta1DeployRequestCustomModel {
|
|
1706
|
+
/** Immutable. The Google Cloud Storage URI of the custom model, storing weights and config files (which can be used to infer the base model). */
|
|
1707
|
+
gcsUri?: string;
|
|
1708
|
+
/** Optional. Deprecated. Use ModelConfig.model_user_id instead. */
|
|
1709
|
+
modelId?: string;
|
|
1710
|
+
}
|
|
1697
1711
|
interface GoogleCloudAiplatformV1beta1DeployRequestDeployConfig {
|
|
1698
1712
|
/** Optional. The dedicated resources to use for the endpoint. If not set, the default resources will be used. */
|
|
1699
1713
|
dedicatedResources?: GoogleCloudAiplatformV1beta1DedicatedResources;
|
|
@@ -1719,6 +1733,8 @@ declare namespace gapi.client {
|
|
|
1719
1733
|
huggingFaceCacheEnabled?: boolean;
|
|
1720
1734
|
/** Optional. The user-specified display name of the uploaded model. If not set, a default name will be used. */
|
|
1721
1735
|
modelDisplayName?: string;
|
|
1736
|
+
/** Optional. The ID to use for the uploaded Model, which will become the final component of the model resource name. When not provided, Vertex AI will generate a value for this ID. When Model Registry model is provided, this field will be ignored. This value may be up to 63 characters, and valid characters are `[a-z0-9_-]`. The first character cannot be a number or hyphen. */
|
|
1737
|
+
modelUserId?: string;
|
|
1722
1738
|
}
|
|
1723
1739
|
interface GoogleCloudAiplatformV1beta1DeploySolverOperationMetadata {
|
|
1724
1740
|
/** The generic operation information. */
|
|
@@ -1830,6 +1846,8 @@ declare namespace gapi.client {
|
|
|
1830
1846
|
encryptionSpec?: GoogleCloudAiplatformV1beta1EncryptionSpec;
|
|
1831
1847
|
/** Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. */
|
|
1832
1848
|
etag?: string;
|
|
1849
|
+
/** Configures the Google Distributed Cloud (GDC) environment for online prediction. Only set this field when the Endpoint is to be deployed in a GDC environment. */
|
|
1850
|
+
gdcConfig?: GoogleCloudAiplatformV1beta1GdcConfig;
|
|
1833
1851
|
/** Optional. Configuration for GenAiAdvancedFeatures. If the endpoint is serving GenAI models, advanced features like native RAG integration can be configured. Currently, only Model Garden models are supported. */
|
|
1834
1852
|
genAiAdvancedFeaturesConfig?: GoogleCloudAiplatformV1beta1GenAiAdvancedFeaturesConfig;
|
|
1835
1853
|
/** The labels with user-defined metadata to organize your Endpoints. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels. */
|
|
@@ -3012,6 +3030,8 @@ declare namespace gapi.client {
|
|
|
3012
3030
|
interface GoogleCloudAiplatformV1beta1FeatureViewDirectWriteRequestDataKeyAndFeatureValuesFeature {
|
|
3013
3031
|
/** Feature short name. */
|
|
3014
3032
|
name?: string;
|
|
3033
|
+
/** Feature value. A user provided timestamp may be set in the `FeatureValue.metadata.generate_time` field. */
|
|
3034
|
+
value?: GoogleCloudAiplatformV1beta1FeatureValue;
|
|
3015
3035
|
/** Feature value and timestamp. */
|
|
3016
3036
|
valueAndTimestamp?: GoogleCloudAiplatformV1beta1FeatureViewDirectWriteRequestDataKeyAndFeatureValuesFeatureFeatureValueAndTimestamp;
|
|
3017
3037
|
}
|
|
@@ -3343,6 +3363,10 @@ declare namespace gapi.client {
|
|
|
3343
3363
|
/** Required. Google Cloud Storage URI(-s) to the input file(s). May contain wildcards. For more information on wildcards, see https://cloud.google.com/storage/docs/wildcards. */
|
|
3344
3364
|
uris?: string[];
|
|
3345
3365
|
}
|
|
3366
|
+
interface GoogleCloudAiplatformV1beta1GdcConfig {
|
|
3367
|
+
/** GDC zone. A cluster will be designated for the Vertex AI workload in this zone. */
|
|
3368
|
+
zone?: string;
|
|
3369
|
+
}
|
|
3346
3370
|
interface GoogleCloudAiplatformV1beta1GeminiExample {
|
|
3347
3371
|
/** Optional. The name of the cached content used as context to serve the prediction. Note: only used in explicit caching, where users can have control over caching (e.g. what content to cache) and enjoy guaranteed cost savings. Format: `projects/{project}/locations/{location}/cachedContents/{cachedContent}` */
|
|
3348
3372
|
cachedContent?: string;
|
|
@@ -3597,6 +3621,12 @@ declare namespace gapi.client {
|
|
|
3597
3621
|
/** Required. The type of the Google Drive resource. */
|
|
3598
3622
|
resourceType?: string;
|
|
3599
3623
|
}
|
|
3624
|
+
interface GoogleCloudAiplatformV1beta1GoogleMaps {
|
|
3625
|
+
/** The authentication config to access the API. Deprecated. Please use auth_config instead. */
|
|
3626
|
+
apiAuth?: GoogleCloudAiplatformV1beta1ApiAuth;
|
|
3627
|
+
/** The authentication config to access the API. Only API key is supported. */
|
|
3628
|
+
authConfig?: GoogleCloudAiplatformV1beta1AuthConfig;
|
|
3629
|
+
}
|
|
3600
3630
|
interface GoogleCloudAiplatformV1beta1GoogleSearchRetrieval {
|
|
3601
3631
|
/** Specifies the dynamic retrieval configuration for the given source. */
|
|
3602
3632
|
dynamicRetrievalConfig?: GoogleCloudAiplatformV1beta1DynamicRetrievalConfig;
|
|
@@ -3626,11 +3656,51 @@ declare namespace gapi.client {
|
|
|
3626
3656
|
version?: number;
|
|
3627
3657
|
}
|
|
3628
3658
|
interface GoogleCloudAiplatformV1beta1GroundingChunk {
|
|
3659
|
+
/** Grounding chunk from Google Maps. */
|
|
3660
|
+
maps?: GoogleCloudAiplatformV1beta1GroundingChunkMaps;
|
|
3629
3661
|
/** Grounding chunk from context retrieved by the retrieval tools. */
|
|
3630
3662
|
retrievedContext?: GoogleCloudAiplatformV1beta1GroundingChunkRetrievedContext;
|
|
3631
3663
|
/** Grounding chunk from the web. */
|
|
3632
3664
|
web?: GoogleCloudAiplatformV1beta1GroundingChunkWeb;
|
|
3633
3665
|
}
|
|
3666
|
+
interface GoogleCloudAiplatformV1beta1GroundingChunkMaps {
|
|
3667
|
+
/** Sources used to generate the place answer. This includes review snippets and photos that were used to generate the answer, as well as uris to flag content. */
|
|
3668
|
+
placeAnswerSources?: GoogleCloudAiplatformV1beta1GroundingChunkMapsPlaceAnswerSources;
|
|
3669
|
+
/** This Place's resource name, in `places/{place_id}` format. Can be used to look up the Place. */
|
|
3670
|
+
placeId?: string;
|
|
3671
|
+
/** Text of the chunk. */
|
|
3672
|
+
text?: string;
|
|
3673
|
+
/** Title of the chunk. */
|
|
3674
|
+
title?: string;
|
|
3675
|
+
/** URI reference of the chunk. */
|
|
3676
|
+
uri?: string;
|
|
3677
|
+
}
|
|
3678
|
+
interface GoogleCloudAiplatformV1beta1GroundingChunkMapsPlaceAnswerSources {
|
|
3679
|
+
/** A link where users can flag a problem with the generated answer. */
|
|
3680
|
+
flagContentUri?: string;
|
|
3681
|
+
/** Snippets of reviews that are used to generate the answer. */
|
|
3682
|
+
reviewSnippets?: GoogleCloudAiplatformV1beta1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet[];
|
|
3683
|
+
}
|
|
3684
|
+
interface GoogleCloudAiplatformV1beta1GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution {
|
|
3685
|
+
/** Name of the author of the Photo or Review. */
|
|
3686
|
+
displayName?: string;
|
|
3687
|
+
/** Profile photo URI of the author of the Photo or Review. */
|
|
3688
|
+
photoUri?: string;
|
|
3689
|
+
/** URI of the author of the Photo or Review. */
|
|
3690
|
+
uri?: string;
|
|
3691
|
+
}
|
|
3692
|
+
interface GoogleCloudAiplatformV1beta1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet {
|
|
3693
|
+
/** This review's author. */
|
|
3694
|
+
authorAttribution?: GoogleCloudAiplatformV1beta1GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution;
|
|
3695
|
+
/** A link where users can flag a problem with the review. */
|
|
3696
|
+
flagContentUri?: string;
|
|
3697
|
+
/** A link to show the review on Google Maps. */
|
|
3698
|
+
googleMapsUri?: string;
|
|
3699
|
+
/** A string of formatted recent time, expressing the review time relative to the current time in a form appropriate for the language and country. */
|
|
3700
|
+
relativePublishTimeDescription?: string;
|
|
3701
|
+
/** A reference representing this place review which may be used to look up this place review again. */
|
|
3702
|
+
review?: string;
|
|
3703
|
+
}
|
|
3634
3704
|
interface GoogleCloudAiplatformV1beta1GroundingChunkRetrievedContext {
|
|
3635
3705
|
/** Additional context for the RAG retrieval result. This is only populated when using the RAG retrieval tool. */
|
|
3636
3706
|
ragChunk?: GoogleCloudAiplatformV1beta1RagChunk;
|
|
@@ -3650,6 +3720,8 @@ declare namespace gapi.client {
|
|
|
3650
3720
|
uri?: string;
|
|
3651
3721
|
}
|
|
3652
3722
|
interface GoogleCloudAiplatformV1beta1GroundingMetadata {
|
|
3723
|
+
/** Optional. Output only. Resource name of the Google Maps widget context token to be used with the PlacesContextElement widget to render contextual data. This is populated only for Google Maps grounding. */
|
|
3724
|
+
googleMapsWidgetContextToken?: string;
|
|
3653
3725
|
/** List of supporting references retrieved from specified grounding source. */
|
|
3654
3726
|
groundingChunks?: GoogleCloudAiplatformV1beta1GroundingChunk[];
|
|
3655
3727
|
/** Optional. List of grounding support. */
|
|
@@ -3910,6 +3982,8 @@ declare namespace gapi.client {
|
|
|
3910
3982
|
crowdingTag?: GoogleCloudAiplatformV1beta1IndexDatapointCrowdingTag;
|
|
3911
3983
|
/** Required. Unique identifier of the datapoint. */
|
|
3912
3984
|
datapointId?: string;
|
|
3985
|
+
/** Optional. The key-value map of additional metadata for the datapoint. */
|
|
3986
|
+
embeddingMetadata?: {[P in string]: any};
|
|
3913
3987
|
/** Required. Feature embedding vector for dense index. An array of numbers with the length of [NearestNeighborSearchConfig.dimensions]. */
|
|
3914
3988
|
featureVector?: number[];
|
|
3915
3989
|
/** 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. */
|
|
@@ -5412,7 +5486,7 @@ declare namespace gapi.client {
|
|
|
5412
5486
|
genericMetadata?: GoogleCloudAiplatformV1beta1GenericOperationMetadata;
|
|
5413
5487
|
}
|
|
5414
5488
|
interface GoogleCloudAiplatformV1beta1MutateDeployedModelRequest {
|
|
5415
|
-
/** Required. The DeployedModel to be mutated within the Endpoint. Only the following fields can be mutated: * `min_replica_count` in either DedicatedResources or AutomaticResources * `max_replica_count` in either DedicatedResources or AutomaticResources * autoscaling_metric_specs * `disable_container_logging` (v1 only) * `enable_container_logging` (v1beta1 only) */
|
|
5489
|
+
/** Required. The DeployedModel to be mutated within the Endpoint. Only the following fields can be mutated: * `min_replica_count` in either DedicatedResources or AutomaticResources * `max_replica_count` in either DedicatedResources or AutomaticResources * `required_replica_count` in DedicatedResources * autoscaling_metric_specs * `disable_container_logging` (v1 only) * `enable_container_logging` (v1beta1 only) */
|
|
5416
5490
|
deployedModel?: GoogleCloudAiplatformV1beta1DeployedModel;
|
|
5417
5491
|
/** Required. The update mask applies to the resource. See google.protobuf.FieldMask. */
|
|
5418
5492
|
updateMask?: string;
|
|
@@ -6508,6 +6582,8 @@ declare namespace gapi.client {
|
|
|
6508
6582
|
notebooks?: GoogleCloudAiplatformV1beta1PublisherModelCallToActionRegionalResourceReferences[];
|
|
6509
6583
|
}
|
|
6510
6584
|
interface GoogleCloudAiplatformV1beta1PublisherModelCallToActionRegionalResourceReferences {
|
|
6585
|
+
/** Optional. For notebook resource. When set to true, the Colab Enterprise link will be disabled in the "open notebook" dialog in UI. */
|
|
6586
|
+
colabNotebookDisabled?: boolean;
|
|
6511
6587
|
/** Required. */
|
|
6512
6588
|
references?: {
|
|
6513
6589
|
[P in string]: GoogleCloudAiplatformV1beta1PublisherModelResourceReference;
|
|
@@ -7204,6 +7280,8 @@ declare namespace gapi.client {
|
|
|
7204
7280
|
description?: string;
|
|
7205
7281
|
/** Required. The display name of the ReasoningEngine. */
|
|
7206
7282
|
displayName?: string;
|
|
7283
|
+
/** Customer-managed encryption key spec for a ReasoningEngine. If set, this ReasoningEngine and all sub-resources of this ReasoningEngine will be secured by this key. */
|
|
7284
|
+
encryptionSpec?: GoogleCloudAiplatformV1beta1EncryptionSpec;
|
|
7207
7285
|
/** Optional. Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. */
|
|
7208
7286
|
etag?: string;
|
|
7209
7287
|
/** Identifier. The resource name of the ReasoningEngine. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` */
|
|
@@ -7240,6 +7318,8 @@ declare namespace gapi.client {
|
|
|
7240
7318
|
deploymentSpec?: GoogleCloudAiplatformV1beta1ReasoningEngineSpecDeploymentSpec;
|
|
7241
7319
|
/** Optional. User provided package spec of the ReasoningEngine. Ignored when users directly specify a deployment image through `deployment_spec.first_party_image_override`, but keeping the field_behavior to avoid introducing breaking changes. */
|
|
7242
7320
|
packageSpec?: GoogleCloudAiplatformV1beta1ReasoningEngineSpecPackageSpec;
|
|
7321
|
+
/** Optional. The service account that the Reasoning Engine artifact runs as. It should have "roles/storage.objectViewer" for reading the user project's Cloud Storage and "roles/aiplatform.user" for using Vertex extensions. If not specified, the Vertex AI Reasoning Engine Service Agent in the project will be used. */
|
|
7322
|
+
serviceAccount?: string;
|
|
7243
7323
|
}
|
|
7244
7324
|
interface GoogleCloudAiplatformV1beta1ReasoningEngineSpecDeploymentSpec {
|
|
7245
7325
|
/** Optional. Environment variables to be set with the Reasoning Engine deployment. The environment variables can be updated through the UpdateReasoningEngine API. */
|
|
@@ -9360,10 +9440,14 @@ declare namespace gapi.client {
|
|
|
9360
9440
|
createTime?: string;
|
|
9361
9441
|
/** Optional. The display name of the session. */
|
|
9362
9442
|
displayName?: string;
|
|
9443
|
+
/** Optional. Timestamp of when this session is considered expired. This is *always* provided on output, regardless of what was sent on input. */
|
|
9444
|
+
expireTime?: string;
|
|
9363
9445
|
/** Identifier. The resource name of the session. Format: 'projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/sessions/{session}'. */
|
|
9364
9446
|
name?: string;
|
|
9365
9447
|
/** Optional. Session specific memory which stores key conversation points. */
|
|
9366
9448
|
sessionState?: {[P in string]: any};
|
|
9449
|
+
/** Optional. Input only. The TTL for this session. */
|
|
9450
|
+
ttl?: string;
|
|
9367
9451
|
/** Output only. Timestamp when the session was updated. */
|
|
9368
9452
|
updateTime?: string;
|
|
9369
9453
|
/** Required. Immutable. String id provided by the user */
|
|
@@ -9885,9 +9969,13 @@ declare namespace gapi.client {
|
|
|
9885
9969
|
interface GoogleCloudAiplatformV1beta1SupervisedHyperParameters {
|
|
9886
9970
|
/** Optional. Adapter size for tuning. */
|
|
9887
9971
|
adapterSize?: string;
|
|
9972
|
+
/** Optional. Batch size for tuning. This feature is only available for open source models. */
|
|
9973
|
+
batchSize?: string;
|
|
9888
9974
|
/** Optional. Number of complete passes the model makes over the entire training dataset during training. */
|
|
9889
9975
|
epochCount?: string;
|
|
9890
|
-
/** Optional.
|
|
9976
|
+
/** Optional. Learning rate for tuning. Mutually exclusive with `learning_rate_multiplier`. This feature is only available for open source models. */
|
|
9977
|
+
learningRate?: number;
|
|
9978
|
+
/** Optional. Multiplier for adjusting the default learning rate. Mutually exclusive with `learning_rate`. This feature is only available for 1P models. */
|
|
9891
9979
|
learningRateMultiplier?: number;
|
|
9892
9980
|
}
|
|
9893
9981
|
interface GoogleCloudAiplatformV1beta1SupervisedTuningDatasetDistribution {
|
|
@@ -9951,6 +10039,8 @@ declare namespace gapi.client {
|
|
|
9951
10039
|
hyperParameters?: GoogleCloudAiplatformV1beta1SupervisedHyperParameters;
|
|
9952
10040
|
/** Required. Training dataset used for tuning. The dataset can be specified as either a Cloud Storage path to a JSONL file or as the resource name of a Vertex Multimodal Dataset. */
|
|
9953
10041
|
trainingDatasetUri?: string;
|
|
10042
|
+
/** Tuning mode. */
|
|
10043
|
+
tuningMode?: string;
|
|
9954
10044
|
/** Optional. Validation dataset used for tuning. The dataset can be specified as either a Cloud Storage path to a JSONL file or as the resource name of a Vertex Multimodal Dataset. */
|
|
9955
10045
|
validationDatasetUri?: string;
|
|
9956
10046
|
}
|
|
@@ -10150,8 +10240,10 @@ declare namespace gapi.client {
|
|
|
10150
10240
|
computerUse?: GoogleCloudAiplatformV1beta1ToolComputerUse;
|
|
10151
10241
|
/** Optional. Tool to support searching public web data, powered by Vertex AI Search and Sec4 compliance. */
|
|
10152
10242
|
enterpriseWebSearch?: any;
|
|
10153
|
-
/** Optional. Function tool type. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating FunctionCall in the response. User should provide a FunctionResponse for each function call in the next turn. Based on the function responses, Model will generate the final response back to the user. Maximum
|
|
10243
|
+
/** Optional. Function tool type. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating FunctionCall in the response. User should provide a FunctionResponse for each function call in the next turn. Based on the function responses, Model will generate the final response back to the user. Maximum 512 function declarations can be provided. */
|
|
10154
10244
|
functionDeclarations?: GoogleCloudAiplatformV1beta1FunctionDeclaration[];
|
|
10245
|
+
/** Optional. GoogleMaps tool type. Tool to support Google Maps in Model. */
|
|
10246
|
+
googleMaps?: GoogleCloudAiplatformV1beta1GoogleMaps;
|
|
10155
10247
|
/** Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. */
|
|
10156
10248
|
googleSearch?: any;
|
|
10157
10249
|
/** Optional. GoogleSearchRetrieval tool type. Specialized retrieval tool that is powered by Google search. */
|
|
@@ -10534,6 +10626,8 @@ declare namespace gapi.client {
|
|
|
10534
10626
|
baseModel?: string;
|
|
10535
10627
|
/** Output only. Time when the TuningJob was created. */
|
|
10536
10628
|
createTime?: string;
|
|
10629
|
+
/** Optional. The user-provided path to custom model weights. Set this field to tune a custom model. The path must be a Cloud Storage directory that contains the model weights in .safetensors format along with associated model metadata files. If this field is set, the base_model field must still be set to indicate which base model the custom model is derived from. This feature is only available for open source models. */
|
|
10630
|
+
customBaseModel?: string;
|
|
10537
10631
|
/** Optional. The description of the TuningJob. */
|
|
10538
10632
|
description?: string;
|
|
10539
10633
|
/** Tuning Spec for Distillation. */
|
|
@@ -10550,6 +10644,8 @@ declare namespace gapi.client {
|
|
|
10550
10644
|
labels?: {[P in string]: string};
|
|
10551
10645
|
/** Output only. Identifier. Resource name of a TuningJob. Format: `projects/{project}/locations/{location}/tuningJobs/{tuning_job}` */
|
|
10552
10646
|
name?: string;
|
|
10647
|
+
/** Optional. Cloud Storage path to the directory where tuning job outputs are written to. This field is only available and required for open source models. */
|
|
10648
|
+
outputUri?: string;
|
|
10553
10649
|
/** Tuning Spec for open sourced and third party Partner models. */
|
|
10554
10650
|
partnerModelTuningSpec?: GoogleCloudAiplatformV1beta1PartnerModelTuningSpec;
|
|
10555
10651
|
/** Output only. The resource name of the PipelineJob associated with the TuningJob. Format: `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`. */
|
|
@@ -16538,6 +16634,8 @@ declare namespace gapi.client {
|
|
|
16538
16634
|
fields?: string;
|
|
16539
16635
|
/** Optional. An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `endpoint` supports `=` and `!=`. `endpoint` represents the Endpoint ID, i.e. the last segment of the Endpoint's resource name. * `display_name` supports `=` and `!=`. * `labels` supports general map functions that is: * `labels.key=value` - key:value equality * `labels.key:*` or `labels:key` - key existence * A key including a space must be quoted. `labels."a key"`. * `base_model_name` only supports `=`. Some examples: * `endpoint=1` * `displayName="myDisplayName"` * `labels.myKey="myValue"` * `baseModelName="text-bison"` */
|
|
16540
16636
|
filter?: string;
|
|
16637
|
+
/** Optional. Configures the Google Distributed Cloud (GDC) environment for online prediction. Only set this field when the Endpoint is to be deployed in a GDC environment. */
|
|
16638
|
+
gdcZone?: string;
|
|
16541
16639
|
/** 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. */
|
|
16542
16640
|
key?: string;
|
|
16543
16641
|
/** OAuth 2.0 token for the current user. */
|
|
@@ -16559,7 +16657,7 @@ declare namespace gapi.client {
|
|
|
16559
16657
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
16560
16658
|
uploadType?: string;
|
|
16561
16659
|
}): Request<GoogleCloudAiplatformV1beta1ListEndpointsResponse>;
|
|
16562
|
-
/** Updates an existing deployed model. Updatable fields include `min_replica_count`, `max_replica_count`, `autoscaling_metric_specs`, `disable_container_logging` (v1 only), and `enable_container_logging` (v1beta1 only). */
|
|
16660
|
+
/** Updates an existing deployed model. Updatable fields include `min_replica_count`, `max_replica_count`, `required_replica_count`, `autoscaling_metric_specs`, `disable_container_logging` (v1 only), and `enable_container_logging` (v1beta1 only). */
|
|
16563
16661
|
mutateDeployedModel(request: {
|
|
16564
16662
|
/** V1 error format. */
|
|
16565
16663
|
'$.xgafv'?: string;
|
|
@@ -40397,6 +40495,33 @@ declare namespace gapi.client {
|
|
|
40397
40495
|
): Request<GoogleCloudAiplatformV1beta1PublisherModelEulaAcceptance>;
|
|
40398
40496
|
}
|
|
40399
40497
|
interface ProjectsResource {
|
|
40498
|
+
/** Fetches the configs of publisher models. */
|
|
40499
|
+
fetchPublisherModelConfig(request?: {
|
|
40500
|
+
/** V1 error format. */
|
|
40501
|
+
'$.xgafv'?: string;
|
|
40502
|
+
/** OAuth access token. */
|
|
40503
|
+
access_token?: string;
|
|
40504
|
+
/** Data format for response. */
|
|
40505
|
+
alt?: string;
|
|
40506
|
+
/** JSONP */
|
|
40507
|
+
callback?: string;
|
|
40508
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
40509
|
+
fields?: string;
|
|
40510
|
+
/** 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. */
|
|
40511
|
+
key?: string;
|
|
40512
|
+
/** Required. The name of the publisher model, in the format of `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`. */
|
|
40513
|
+
name: string;
|
|
40514
|
+
/** OAuth 2.0 token for the current user. */
|
|
40515
|
+
oauth_token?: string;
|
|
40516
|
+
/** Returns response with indentations and line breaks. */
|
|
40517
|
+
prettyPrint?: boolean;
|
|
40518
|
+
/** 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. */
|
|
40519
|
+
quotaUser?: string;
|
|
40520
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
40521
|
+
upload_protocol?: string;
|
|
40522
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
40523
|
+
uploadType?: string;
|
|
40524
|
+
}): Request<GoogleCloudAiplatformV1beta1PublisherModelConfig>;
|
|
40400
40525
|
/** Gets a GenAI cache config. */
|
|
40401
40526
|
getCacheConfig(request?: {
|
|
40402
40527
|
/** V1 error format. */
|
|
@@ -40424,6 +40549,64 @@ declare namespace gapi.client {
|
|
|
40424
40549
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
40425
40550
|
uploadType?: string;
|
|
40426
40551
|
}): Request<GoogleCloudAiplatformV1beta1CacheConfig>;
|
|
40552
|
+
/** Sets (creates or updates) configs of publisher models. For example, sets the request/response logging config. */
|
|
40553
|
+
setPublisherModelConfig(request: {
|
|
40554
|
+
/** V1 error format. */
|
|
40555
|
+
'$.xgafv'?: string;
|
|
40556
|
+
/** OAuth access token. */
|
|
40557
|
+
access_token?: string;
|
|
40558
|
+
/** Data format for response. */
|
|
40559
|
+
alt?: string;
|
|
40560
|
+
/** JSONP */
|
|
40561
|
+
callback?: string;
|
|
40562
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
40563
|
+
fields?: string;
|
|
40564
|
+
/** 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. */
|
|
40565
|
+
key?: string;
|
|
40566
|
+
/** Required. The name of the publisher model, in the format of `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`. */
|
|
40567
|
+
name: string;
|
|
40568
|
+
/** OAuth 2.0 token for the current user. */
|
|
40569
|
+
oauth_token?: string;
|
|
40570
|
+
/** Returns response with indentations and line breaks. */
|
|
40571
|
+
prettyPrint?: boolean;
|
|
40572
|
+
/** 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. */
|
|
40573
|
+
quotaUser?: string;
|
|
40574
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
40575
|
+
upload_protocol?: string;
|
|
40576
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
40577
|
+
uploadType?: string;
|
|
40578
|
+
/** Request body */
|
|
40579
|
+
resource: GoogleCloudAiplatformV1beta1SetPublisherModelConfigRequest;
|
|
40580
|
+
}): Request<GoogleLongrunningOperation>;
|
|
40581
|
+
setPublisherModelConfig(
|
|
40582
|
+
request: {
|
|
40583
|
+
/** V1 error format. */
|
|
40584
|
+
'$.xgafv'?: string;
|
|
40585
|
+
/** OAuth access token. */
|
|
40586
|
+
access_token?: string;
|
|
40587
|
+
/** Data format for response. */
|
|
40588
|
+
alt?: string;
|
|
40589
|
+
/** JSONP */
|
|
40590
|
+
callback?: string;
|
|
40591
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
40592
|
+
fields?: string;
|
|
40593
|
+
/** 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. */
|
|
40594
|
+
key?: string;
|
|
40595
|
+
/** Required. The name of the publisher model, in the format of `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`. */
|
|
40596
|
+
name: string;
|
|
40597
|
+
/** OAuth 2.0 token for the current user. */
|
|
40598
|
+
oauth_token?: string;
|
|
40599
|
+
/** Returns response with indentations and line breaks. */
|
|
40600
|
+
prettyPrint?: boolean;
|
|
40601
|
+
/** 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. */
|
|
40602
|
+
quotaUser?: string;
|
|
40603
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
40604
|
+
upload_protocol?: string;
|
|
40605
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
40606
|
+
uploadType?: string;
|
|
40607
|
+
},
|
|
40608
|
+
body: GoogleCloudAiplatformV1beta1SetPublisherModelConfigRequest,
|
|
40609
|
+
): Request<GoogleLongrunningOperation>;
|
|
40427
40610
|
/** Updates a cache config. */
|
|
40428
40611
|
updateCacheConfig(request: {
|
|
40429
40612
|
/** V1 error format. */
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -156,11 +156,21 @@ Upload a file into a RagCorpus.
|
|
|
156
156
|
*/
|
|
157
157
|
await gapi.client.aiplatform.media.upload({parent: 'parent'});
|
|
158
158
|
|
|
159
|
+
/*
|
|
160
|
+
Fetches the configs of publisher models.
|
|
161
|
+
*/
|
|
162
|
+
await gapi.client.aiplatform.projects.fetchPublisherModelConfig({name: 'name'});
|
|
163
|
+
|
|
159
164
|
/*
|
|
160
165
|
Gets a GenAI cache config.
|
|
161
166
|
*/
|
|
162
167
|
await gapi.client.aiplatform.projects.getCacheConfig({name: 'name'});
|
|
163
168
|
|
|
169
|
+
/*
|
|
170
|
+
Sets (creates or updates) configs of publisher models. For example, sets the request/response logging config.
|
|
171
|
+
*/
|
|
172
|
+
await gapi.client.aiplatform.projects.setPublisherModelConfig({name: 'name'});
|
|
173
|
+
|
|
164
174
|
/*
|
|
165
175
|
Updates a cache config.
|
|
166
176
|
*/
|