@maxim_mazurok/gapi.client.aiplatform-v1beta1 0.4.20251117 → 0.4.20251204
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 +762 -11
- package/package.json +1 -1
- package/readme.md +15 -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: 20251204
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -577,7 +577,7 @@ declare namespace gapi.client {
|
|
|
577
577
|
labels?: {[P in string]: string};
|
|
578
578
|
/** Immutable. Parameters configuring the batch behavior. Currently only applicable when dedicated_resources are used (in other cases Vertex AI does the tuning itself). */
|
|
579
579
|
manualBatchTuningParameters?: GoogleCloudAiplatformV1beta1ManualBatchTuningParameters;
|
|
580
|
-
/** The name of the Model resource that produces the predictions via this job, must share the same ancestor Location. Starting this job has no impact on any existing deployments of the Model and their resources. Exactly one of model
|
|
580
|
+
/** The name of the Model resource that produces the predictions via this job, must share the same ancestor Location. Starting this job has no impact on any existing deployments of the Model and their resources. Exactly one of model, unmanaged_container_model, or endpoint must be set. The model 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. The model resource could also be a publisher model. Example: `publishers/{publisher}/models/{model}` or `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` */
|
|
581
581
|
model?: string;
|
|
582
582
|
/** Model monitoring config will be used for analysis model behaviors, based on the input and output to the batch prediction job, as well as the provided training dataset. */
|
|
583
583
|
modelMonitoringConfig?: GoogleCloudAiplatformV1beta1ModelMonitoringConfig;
|
|
@@ -609,7 +609,7 @@ declare namespace gapi.client {
|
|
|
609
609
|
startTime?: string;
|
|
610
610
|
/** Output only. The detailed state of the job. */
|
|
611
611
|
state?: string;
|
|
612
|
-
/** Contains model information necessary to perform batch prediction without requiring uploading to model registry. Exactly one of model
|
|
612
|
+
/** Contains model information necessary to perform batch prediction without requiring uploading to model registry. Exactly one of model, unmanaged_container_model, or endpoint must be set. */
|
|
613
613
|
unmanagedContainerModel?: GoogleCloudAiplatformV1beta1UnmanagedContainerModel;
|
|
614
614
|
/** Output only. Time when the BatchPredictionJob was most recently updated. */
|
|
615
615
|
updateTime?: string;
|
|
@@ -3275,6 +3275,8 @@ declare namespace gapi.client {
|
|
|
3275
3275
|
bigtableMetadata?: GoogleCloudAiplatformV1beta1FeatureOnlineStoreBigtableBigtableMetadata;
|
|
3276
3276
|
/** Optional. It true, enable direct access to the Bigtable instance. */
|
|
3277
3277
|
enableDirectBigtableAccess?: boolean;
|
|
3278
|
+
/** Optional. The zone where the underlying Bigtable cluster for the primary Bigtable instance will be provisioned. Only the zone must be provided. For example, only "us-central1-a" should be provided. */
|
|
3279
|
+
zone?: string;
|
|
3278
3280
|
}
|
|
3279
3281
|
interface GoogleCloudAiplatformV1beta1FeatureOnlineStoreBigtableAutoScaling {
|
|
3280
3282
|
/** Optional. A percentage of the cluster's CPU capacity. Can be from 10% to 80%. When a cluster's CPU utilization exceeds the target that you have set, Bigtable immediately adds nodes to the cluster. When CPU utilization is substantially lower than the target, Bigtable removes nodes. If not set will default to 50%. */
|
|
@@ -5231,7 +5233,7 @@ declare namespace gapi.client {
|
|
|
5231
5233
|
volumeHandle?: string;
|
|
5232
5234
|
}
|
|
5233
5235
|
interface GoogleCloudAiplatformV1beta1MachineSpec {
|
|
5234
|
-
/** The number of accelerators to attach to the machine. */
|
|
5236
|
+
/** The number of accelerators to attach to the machine. For accelerator optimized machine types (https://cloud.google.com/compute/docs/accelerator-optimized-machines), One may set the accelerator_count from 1 to N for machine with N GPUs. If accelerator_count is less than or equal to N / 2, Vertex will co-schedule the replicas of the model into the same VM to save cost. For example, if the machine type is a3-highgpu-8g, which has 8 H100 GPUs, one can set accelerator_count to 1 to 8. If accelerator_count is 1, 2, 3, or 4, Vertex will co-schedule 8, 4, 2, or 2 replicas of the model into the same VM to save cost. When co-scheduling, CPU, memory and storage on the VM will be distributed to replicas on the VM. For example, one can expect a co-scheduled replica requesting 2 GPUs out of a 8-GPU VM will receive 25% of the CPU, memory and storage of the VM. Note that the feature is not compatible with multihost_gpu_node_count. When multihost_gpu_node_count is set, the co-scheduling will not be enabled. */
|
|
5235
5237
|
acceleratorCount?: number;
|
|
5236
5238
|
/** Immutable. The type of accelerator(s) that may be attached to the machine as per accelerator_count. */
|
|
5237
5239
|
acceleratorType?: string;
|
|
@@ -6714,7 +6716,7 @@ declare namespace gapi.client {
|
|
|
6714
6716
|
interface GoogleCloudAiplatformV1beta1OptimizePromptRequest {
|
|
6715
6717
|
/** Required. The content to optimize. */
|
|
6716
6718
|
content?: GoogleCloudAiplatformV1beta1Content;
|
|
6717
|
-
/** Optional. The
|
|
6719
|
+
/** Optional. The optimization strategy for prompt optimization. */
|
|
6718
6720
|
optimizationTarget?: string;
|
|
6719
6721
|
}
|
|
6720
6722
|
interface GoogleCloudAiplatformV1beta1OptimizePromptResponse {
|
|
@@ -8038,6 +8040,8 @@ declare namespace gapi.client {
|
|
|
8038
8040
|
ragEmbeddingModelConfig?: GoogleCloudAiplatformV1beta1RagEmbeddingModelConfig;
|
|
8039
8041
|
/** The config for the RAG-managed Vector DB. */
|
|
8040
8042
|
ragManagedDb?: GoogleCloudAiplatformV1beta1RagVectorDbConfigRagManagedDb;
|
|
8043
|
+
/** The config for the RAG-managed Vertex Vector Search 2.0. */
|
|
8044
|
+
ragManagedVertexVectorSearch?: GoogleCloudAiplatformV1beta1RagVectorDbConfigRagManagedVertexVectorSearch;
|
|
8041
8045
|
/** The config for the Vertex Feature Store. */
|
|
8042
8046
|
vertexFeatureStore?: GoogleCloudAiplatformV1beta1RagVectorDbConfigVertexFeatureStore;
|
|
8043
8047
|
/** The config for the Vertex Vector Search. */
|
|
@@ -8062,6 +8066,10 @@ declare namespace gapi.client {
|
|
|
8062
8066
|
treeDepth?: number;
|
|
8063
8067
|
}
|
|
8064
8068
|
interface GoogleCloudAiplatformV1beta1RagVectorDbConfigRagManagedDbKNN {}
|
|
8069
|
+
interface GoogleCloudAiplatformV1beta1RagVectorDbConfigRagManagedVertexVectorSearch {
|
|
8070
|
+
/** Output only. The resource name of the Vector Search 2.0 Collection that RAG Created for the corpus. Only populated after the corpus is successfully created. Format: `projects/{project}/locations/{location}/collections/{collection_id}` */
|
|
8071
|
+
collectionName?: string;
|
|
8072
|
+
}
|
|
8065
8073
|
interface GoogleCloudAiplatformV1beta1RagVectorDbConfigVertexFeatureStore {
|
|
8066
8074
|
/** The resource name of the FeatureView. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` */
|
|
8067
8075
|
featureViewResourceName?: string;
|
|
@@ -8291,13 +8299,27 @@ declare namespace gapi.client {
|
|
|
8291
8299
|
requirementsGcsUri?: string;
|
|
8292
8300
|
}
|
|
8293
8301
|
interface GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpec {
|
|
8302
|
+
/** Source code is in a Git repository managed by Developer Connect. */
|
|
8303
|
+
developerConnectSource?: GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpecDeveloperConnectSource;
|
|
8294
8304
|
/** Source code is provided directly in the request. */
|
|
8295
8305
|
inlineSource?: GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpecInlineSource;
|
|
8296
8306
|
/** Configuration for a Python application. */
|
|
8297
8307
|
pythonSpec?: GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpecPythonSpec;
|
|
8298
8308
|
}
|
|
8309
|
+
interface GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpecDeveloperConnectConfig {
|
|
8310
|
+
/** Required. Directory, relative to the source root, in which to run the build. */
|
|
8311
|
+
dir?: string;
|
|
8312
|
+
/** Required. The Developer Connect Git repository link, formatted as `projects/*/locations/*/connections/*/gitRepositoryLink/*`. */
|
|
8313
|
+
gitRepositoryLink?: string;
|
|
8314
|
+
/** Required. The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref. */
|
|
8315
|
+
revision?: string;
|
|
8316
|
+
}
|
|
8317
|
+
interface GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpecDeveloperConnectSource {
|
|
8318
|
+
/** Required. The Developer Connect configuration that defines the specific repository, revision, and directory to use as the source code root. */
|
|
8319
|
+
config?: GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpecDeveloperConnectConfig;
|
|
8320
|
+
}
|
|
8299
8321
|
interface GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpecInlineSource {
|
|
8300
|
-
/** Required. Input only. The application source code archive
|
|
8322
|
+
/** Required. Input only. The application source code archive. It must be a compressed tarball (.tar.gz) file. */
|
|
8301
8323
|
sourceArchive?: string;
|
|
8302
8324
|
}
|
|
8303
8325
|
interface GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpecPythonSpec {
|
|
@@ -8378,7 +8400,7 @@ declare namespace gapi.client {
|
|
|
8378
8400
|
exampleIds?: string[];
|
|
8379
8401
|
}
|
|
8380
8402
|
interface GoogleCloudAiplatformV1beta1ReplicatedVoiceConfig {
|
|
8381
|
-
/** Optional. The mimetype of the voice sample.
|
|
8403
|
+
/** Optional. The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set. */
|
|
8382
8404
|
mimeType?: string;
|
|
8383
8405
|
/** Optional. The sample of the custom voice. */
|
|
8384
8406
|
voiceSampleAudio?: string;
|
|
@@ -10556,7 +10578,7 @@ declare namespace gapi.client {
|
|
|
10556
10578
|
createTime?: string;
|
|
10557
10579
|
/** Optional. The display name of the session. */
|
|
10558
10580
|
displayName?: string;
|
|
10559
|
-
/** Optional. Timestamp of when this session is considered expired. This is *always* provided on output, regardless of what was sent on input. */
|
|
10581
|
+
/** Optional. Timestamp of when this session is considered expired. This is *always* provided on output, regardless of what was sent on input. The minimum value is 24 hours from the time of creation. */
|
|
10560
10582
|
expireTime?: string;
|
|
10561
10583
|
/** The labels with user-defined metadata to organize your Sessions. 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. */
|
|
10562
10584
|
labels?: {[P in string]: string};
|
|
@@ -10564,7 +10586,7 @@ declare namespace gapi.client {
|
|
|
10564
10586
|
name?: string;
|
|
10565
10587
|
/** Optional. Session specific memory which stores key conversation points. */
|
|
10566
10588
|
sessionState?: {[P in string]: any};
|
|
10567
|
-
/** Optional. Input only. The TTL for this session. */
|
|
10589
|
+
/** Optional. Input only. The TTL for this session. The minimum value is 24 hours. */
|
|
10568
10590
|
ttl?: string;
|
|
10569
10591
|
/** Output only. Timestamp when the session was updated. */
|
|
10570
10592
|
updateTime?: string;
|
|
@@ -12237,6 +12259,521 @@ declare namespace gapi.client {
|
|
|
12237
12259
|
/** A subset of `TestPermissionsRequest.permissions` that the caller is allowed. */
|
|
12238
12260
|
permissions?: string[];
|
|
12239
12261
|
}
|
|
12262
|
+
interface GoogleLearningVertexApiInteractionsV1beta1AgentInteraction {
|
|
12263
|
+
/** The name of the `Agent` used for generating the completion. */
|
|
12264
|
+
agent?: string;
|
|
12265
|
+
deep_research_config?: GoogleLearningVertexApiInteractionsV1beta1DeepResearchAgentConfig;
|
|
12266
|
+
dynamic_config?: GoogleLearningVertexApiInteractionsV1beta1DynamicAgentConfig;
|
|
12267
|
+
}
|
|
12268
|
+
interface GoogleLearningVertexApiInteractionsV1beta1AllowedTools {
|
|
12269
|
+
/** The mode of the tool choice. */
|
|
12270
|
+
mode?: string;
|
|
12271
|
+
/** The names of the allowed tools. */
|
|
12272
|
+
tools?: string[];
|
|
12273
|
+
}
|
|
12274
|
+
interface GoogleLearningVertexApiInteractionsV1beta1AudioContent {
|
|
12275
|
+
data?: string;
|
|
12276
|
+
mime_type?: string;
|
|
12277
|
+
/** Used as the OpenAPI type discriminator for the content oneof. */
|
|
12278
|
+
type?: string;
|
|
12279
|
+
uri?: string;
|
|
12280
|
+
}
|
|
12281
|
+
interface GoogleLearningVertexApiInteractionsV1beta1CodeExecution {
|
|
12282
|
+
/** Used as the OpenAPI type discriminator for the content oneof. */
|
|
12283
|
+
type?: string;
|
|
12284
|
+
}
|
|
12285
|
+
interface GoogleLearningVertexApiInteractionsV1beta1CodeExecutionCallContent {
|
|
12286
|
+
/** The arguments to pass to the code execution. */
|
|
12287
|
+
arguments?: GoogleLearningVertexApiInteractionsV1beta1CodeExecutionCallContentCodeExecutionCallArguments;
|
|
12288
|
+
/** Used as the OpenAPI type discriminator for the content oneof. */
|
|
12289
|
+
type?: string;
|
|
12290
|
+
}
|
|
12291
|
+
interface GoogleLearningVertexApiInteractionsV1beta1CodeExecutionCallContentCodeExecutionCallArguments {
|
|
12292
|
+
/** The code to be executed. */
|
|
12293
|
+
code?: string;
|
|
12294
|
+
/** Programming language of the `code`. */
|
|
12295
|
+
language?: string;
|
|
12296
|
+
}
|
|
12297
|
+
interface GoogleLearningVertexApiInteractionsV1beta1CodeExecutionResultContent {
|
|
12298
|
+
/** Whether the code execution resulted in an error. */
|
|
12299
|
+
is_error?: boolean;
|
|
12300
|
+
/** The output of the code execution. */
|
|
12301
|
+
result?: string;
|
|
12302
|
+
/** A signature hash for backend validation. */
|
|
12303
|
+
signature?: string;
|
|
12304
|
+
/** Used as the OpenAPI type discriminator for the content oneof. */
|
|
12305
|
+
type?: string;
|
|
12306
|
+
}
|
|
12307
|
+
interface GoogleLearningVertexApiInteractionsV1beta1ComputerUse {
|
|
12308
|
+
/** The environment being operated. */
|
|
12309
|
+
environment?: string;
|
|
12310
|
+
/** The list of predefined functions that are excluded from the model call. */
|
|
12311
|
+
excludedPredefinedFunctions?: string[];
|
|
12312
|
+
/** Used as the OpenAPI type discriminator for the content oneof. */
|
|
12313
|
+
type?: string;
|
|
12314
|
+
}
|
|
12315
|
+
interface GoogleLearningVertexApiInteractionsV1beta1Content {
|
|
12316
|
+
audio?: GoogleLearningVertexApiInteractionsV1beta1AudioContent;
|
|
12317
|
+
document?: GoogleLearningVertexApiInteractionsV1beta1DocumentContent;
|
|
12318
|
+
function?: GoogleLearningVertexApiInteractionsV1beta1FunctionContent;
|
|
12319
|
+
functionResponse?: GoogleLearningVertexApiInteractionsV1beta1FunctionResponseContent;
|
|
12320
|
+
image?: GoogleLearningVertexApiInteractionsV1beta1ImageContent;
|
|
12321
|
+
text?: GoogleLearningVertexApiInteractionsV1beta1TextContent;
|
|
12322
|
+
thought?: GoogleLearningVertexApiInteractionsV1beta1ThoughtContent;
|
|
12323
|
+
video?: GoogleLearningVertexApiInteractionsV1beta1VideoContent;
|
|
12324
|
+
}
|
|
12325
|
+
interface GoogleLearningVertexApiInteractionsV1beta1ContentDelta {
|
|
12326
|
+
delta?: GoogleLearningVertexApiInteractionsV1beta1Content;
|
|
12327
|
+
event_type?: string;
|
|
12328
|
+
index?: number;
|
|
12329
|
+
}
|
|
12330
|
+
interface GoogleLearningVertexApiInteractionsV1beta1ContentList {
|
|
12331
|
+
/** The contents of the list. */
|
|
12332
|
+
contents?: GoogleLearningVertexApiInteractionsV1beta1Content[];
|
|
12333
|
+
}
|
|
12334
|
+
interface GoogleLearningVertexApiInteractionsV1beta1ContentStart {
|
|
12335
|
+
content?: GoogleLearningVertexApiInteractionsV1beta1Content;
|
|
12336
|
+
event_type?: string;
|
|
12337
|
+
index?: number;
|
|
12338
|
+
}
|
|
12339
|
+
interface GoogleLearningVertexApiInteractionsV1beta1ContentStop {
|
|
12340
|
+
event_type?: string;
|
|
12341
|
+
index?: number;
|
|
12342
|
+
}
|
|
12343
|
+
interface GoogleLearningVertexApiInteractionsV1beta1CreateInteractionParams {
|
|
12344
|
+
/** The interaction to create. */
|
|
12345
|
+
interaction?: GoogleLearningVertexApiInteractionsV1beta1Interaction;
|
|
12346
|
+
/** Input only. Whether to store the response and request for later retrieval. */
|
|
12347
|
+
store?: boolean;
|
|
12348
|
+
/** Input only. Whether the interaction will be streamed. */
|
|
12349
|
+
stream?: boolean;
|
|
12350
|
+
}
|
|
12351
|
+
interface GoogleLearningVertexApiInteractionsV1beta1DeepResearchAgentConfig {
|
|
12352
|
+
/** If true, pauses for user confirmation of the research plan before executing it. */
|
|
12353
|
+
explicit_planning?: boolean;
|
|
12354
|
+
/** Used as the OpenAPI type discriminator for the content oneof. */
|
|
12355
|
+
type?: string;
|
|
12356
|
+
}
|
|
12357
|
+
interface GoogleLearningVertexApiInteractionsV1beta1DocumentContent {
|
|
12358
|
+
data?: string;
|
|
12359
|
+
mime_type?: string;
|
|
12360
|
+
/** Used as the OpenAPI type discriminator for the content oneof. */
|
|
12361
|
+
type?: string;
|
|
12362
|
+
uri?: string;
|
|
12363
|
+
}
|
|
12364
|
+
interface GoogleLearningVertexApiInteractionsV1beta1DynamicAgentConfig {
|
|
12365
|
+
/** For agents that are not supported statically in the API definition. */
|
|
12366
|
+
config?: {[P in string]: any};
|
|
12367
|
+
/** Used as the OpenAPI type discriminator for the content oneof. */
|
|
12368
|
+
type?: string;
|
|
12369
|
+
}
|
|
12370
|
+
interface GoogleLearningVertexApiInteractionsV1beta1Error {
|
|
12371
|
+
/** A URI that identifies the error type. */
|
|
12372
|
+
code?: string;
|
|
12373
|
+
/** A human-readable error message. */
|
|
12374
|
+
message?: string;
|
|
12375
|
+
}
|
|
12376
|
+
interface GoogleLearningVertexApiInteractionsV1beta1ErrorEvent {
|
|
12377
|
+
error?: GoogleLearningVertexApiInteractionsV1beta1Error;
|
|
12378
|
+
event_type?: string;
|
|
12379
|
+
}
|
|
12380
|
+
interface GoogleLearningVertexApiInteractionsV1beta1FileSearchPreview {
|
|
12381
|
+
/** The file search store names to search. */
|
|
12382
|
+
file_search_store_names?: string[];
|
|
12383
|
+
/** Used as the OpenAPI type discriminator for the content oneof. */
|
|
12384
|
+
type?: string;
|
|
12385
|
+
}
|
|
12386
|
+
interface GoogleLearningVertexApiInteractionsV1beta1FileSearchResultContent {
|
|
12387
|
+
/** The results of the File Search. */
|
|
12388
|
+
result?: GoogleLearningVertexApiInteractionsV1beta1FileSearchResultContentFileSearchResult[];
|
|
12389
|
+
/** Used as the OpenAPI type discriminator for the content oneof. */
|
|
12390
|
+
type?: string;
|
|
12391
|
+
}
|
|
12392
|
+
interface GoogleLearningVertexApiInteractionsV1beta1FileSearchResultContentFileSearchResult {
|
|
12393
|
+
/** The name of the file search store. */
|
|
12394
|
+
file_search_store?: string;
|
|
12395
|
+
/** The text of the search result. */
|
|
12396
|
+
text?: string;
|
|
12397
|
+
}
|
|
12398
|
+
interface GoogleLearningVertexApiInteractionsV1beta1Function {
|
|
12399
|
+
/** A description of the function. */
|
|
12400
|
+
description?: string;
|
|
12401
|
+
/** The name of the function. */
|
|
12402
|
+
name?: string;
|
|
12403
|
+
/** The JSON Schema for the function's parameters. */
|
|
12404
|
+
parameters?: any;
|
|
12405
|
+
/** Used as the OpenAPI type discriminator for the content oneof. */
|
|
12406
|
+
type?: string;
|
|
12407
|
+
}
|
|
12408
|
+
interface GoogleLearningVertexApiInteractionsV1beta1FunctionCallContent {
|
|
12409
|
+
/** The arguments to pass to the function. */
|
|
12410
|
+
arguments?: {[P in string]: any};
|
|
12411
|
+
/** The name of the tool to call. */
|
|
12412
|
+
name?: string;
|
|
12413
|
+
/** Used as the OpenAPI type discriminator for the content oneof. */
|
|
12414
|
+
type?: string;
|
|
12415
|
+
}
|
|
12416
|
+
interface GoogleLearningVertexApiInteractionsV1beta1FunctionContent {
|
|
12417
|
+
codeExecutionCall?: GoogleLearningVertexApiInteractionsV1beta1CodeExecutionCallContent;
|
|
12418
|
+
functionCall?: GoogleLearningVertexApiInteractionsV1beta1FunctionCallContent;
|
|
12419
|
+
googleSearchCall?: GoogleLearningVertexApiInteractionsV1beta1GoogleSearchCallContent;
|
|
12420
|
+
/** A unique ID for this specific tool call. */
|
|
12421
|
+
id?: string;
|
|
12422
|
+
mcpServerToolCall?: GoogleLearningVertexApiInteractionsV1beta1McpServerToolCallContent;
|
|
12423
|
+
urlContextCall?: GoogleLearningVertexApiInteractionsV1beta1UrlContextCallContent;
|
|
12424
|
+
}
|
|
12425
|
+
interface GoogleLearningVertexApiInteractionsV1beta1FunctionResponseContent {
|
|
12426
|
+
codeExecutionResult?: GoogleLearningVertexApiInteractionsV1beta1CodeExecutionResultContent;
|
|
12427
|
+
fileSearchResult?: GoogleLearningVertexApiInteractionsV1beta1FileSearchResultContent;
|
|
12428
|
+
functionResult?: GoogleLearningVertexApiInteractionsV1beta1FunctionResultContent;
|
|
12429
|
+
googleSearchResult?: GoogleLearningVertexApiInteractionsV1beta1GoogleSearchResultContent;
|
|
12430
|
+
mcpServerToolResult?: GoogleLearningVertexApiInteractionsV1beta1McpServerToolResultContent;
|
|
12431
|
+
/** ID to match the ID from the function call block. */
|
|
12432
|
+
toolUseId?: string;
|
|
12433
|
+
urlContextResult?: GoogleLearningVertexApiInteractionsV1beta1UrlContextResultContent;
|
|
12434
|
+
}
|
|
12435
|
+
interface GoogleLearningVertexApiInteractionsV1beta1FunctionResultContent {
|
|
12436
|
+
contentList?: GoogleLearningVertexApiInteractionsV1beta1TextOrImageContentList;
|
|
12437
|
+
/** Whether the tool call resulted in an error. */
|
|
12438
|
+
is_error?: boolean;
|
|
12439
|
+
/** The name of the tool that was called. */
|
|
12440
|
+
name?: string;
|
|
12441
|
+
stringResult?: string;
|
|
12442
|
+
/** Used as the OpenAPI type discriminator for the content oneof. */
|
|
12443
|
+
type?: string;
|
|
12444
|
+
}
|
|
12445
|
+
interface GoogleLearningVertexApiInteractionsV1beta1GenerationConfig {
|
|
12446
|
+
/** The maximum number of tokens to include in the response. */
|
|
12447
|
+
max_output_tokens?: number;
|
|
12448
|
+
/** Seed used in decoding for reproducibility. */
|
|
12449
|
+
seed?: number;
|
|
12450
|
+
/** A list of character sequences that will stop output interaction. */
|
|
12451
|
+
stop_sequences?: string[];
|
|
12452
|
+
/** Controls the randomness of the output. */
|
|
12453
|
+
temperature?: number;
|
|
12454
|
+
/** The level of thought tokens that the model should generate. */
|
|
12455
|
+
thinking_level?: string;
|
|
12456
|
+
/** Whether to include thought summaries in the response. */
|
|
12457
|
+
thinking_summaries?: string;
|
|
12458
|
+
/** The tool choice for the interaction. */
|
|
12459
|
+
tool_choice?: GoogleLearningVertexApiInteractionsV1beta1ToolChoice;
|
|
12460
|
+
/** The maximum cumulative probability of tokens to consider when sampling. */
|
|
12461
|
+
top_p?: number;
|
|
12462
|
+
}
|
|
12463
|
+
interface GoogleLearningVertexApiInteractionsV1beta1GoogleSearch {
|
|
12464
|
+
/** Used as the OpenAPI type discriminator for the content oneof. */
|
|
12465
|
+
type?: string;
|
|
12466
|
+
}
|
|
12467
|
+
interface GoogleLearningVertexApiInteractionsV1beta1GoogleSearchCallContent {
|
|
12468
|
+
/** The arguments to pass to Google Search. */
|
|
12469
|
+
arguments?: GoogleLearningVertexApiInteractionsV1beta1GoogleSearchCallContentGoogleSearchCallArguments;
|
|
12470
|
+
/** Used as the OpenAPI type discriminator for the content oneof. */
|
|
12471
|
+
type?: string;
|
|
12472
|
+
}
|
|
12473
|
+
interface GoogleLearningVertexApiInteractionsV1beta1GoogleSearchCallContentGoogleSearchCallArguments {
|
|
12474
|
+
/** Web search queries for the following-up web search. */
|
|
12475
|
+
queries?: string[];
|
|
12476
|
+
}
|
|
12477
|
+
interface GoogleLearningVertexApiInteractionsV1beta1GoogleSearchResultContent {
|
|
12478
|
+
/** Whether the Google Search resulted in an error. */
|
|
12479
|
+
is_error?: boolean;
|
|
12480
|
+
/** The results of the Google Search. */
|
|
12481
|
+
result?: GoogleLearningVertexApiInteractionsV1beta1GoogleSearchResultContentGoogleSearchResult[];
|
|
12482
|
+
/** The signature of the Google Search result. */
|
|
12483
|
+
signature?: string;
|
|
12484
|
+
/** Used as the OpenAPI type discriminator for the content oneof. */
|
|
12485
|
+
type?: string;
|
|
12486
|
+
}
|
|
12487
|
+
interface GoogleLearningVertexApiInteractionsV1beta1GoogleSearchResultContentGoogleSearchResult {
|
|
12488
|
+
/** Web content snippet that can be embedded in a web page or an app webview. */
|
|
12489
|
+
rendered_content?: string;
|
|
12490
|
+
/** Title of the search result. */
|
|
12491
|
+
title?: string;
|
|
12492
|
+
/** URI reference of the search result. */
|
|
12493
|
+
url?: string;
|
|
12494
|
+
}
|
|
12495
|
+
interface GoogleLearningVertexApiInteractionsV1beta1ImageContent {
|
|
12496
|
+
data?: string;
|
|
12497
|
+
mime_type?: string;
|
|
12498
|
+
/** The resolution of the media. */
|
|
12499
|
+
resolution?: string;
|
|
12500
|
+
/** Used as the OpenAPI type discriminator for the content oneof. */
|
|
12501
|
+
type?: string;
|
|
12502
|
+
uri?: string;
|
|
12503
|
+
}
|
|
12504
|
+
interface GoogleLearningVertexApiInteractionsV1beta1Interaction {
|
|
12505
|
+
/** Interaction for generating the completion using agents. */
|
|
12506
|
+
agentInteraction?: GoogleLearningVertexApiInteractionsV1beta1AgentInteraction;
|
|
12507
|
+
/** Whether to run the model interaction in the background. */
|
|
12508
|
+
background?: boolean;
|
|
12509
|
+
/** The content for the interaction. */
|
|
12510
|
+
content?: GoogleLearningVertexApiInteractionsV1beta1Content;
|
|
12511
|
+
/** The inputs for the interaction. */
|
|
12512
|
+
contentList?: GoogleLearningVertexApiInteractionsV1beta1ContentList;
|
|
12513
|
+
/** Output only. The time at which the response was created in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ). */
|
|
12514
|
+
created?: string;
|
|
12515
|
+
/** Output only. The error message for the interaction, if any. */
|
|
12516
|
+
error?: GoogleLearningVertexApiInteractionsV1beta1Error;
|
|
12517
|
+
/** Output only. A unique identifier for the interaction completion. */
|
|
12518
|
+
id?: string;
|
|
12519
|
+
/** Interaction for generating the completion using models. */
|
|
12520
|
+
modelInteraction?: GoogleLearningVertexApiInteractionsV1beta1ModelInteraction;
|
|
12521
|
+
/** Output only. The object type of the interaction. Always set to `interaction`. */
|
|
12522
|
+
object?: string;
|
|
12523
|
+
/** Output only. Responses from the model. */
|
|
12524
|
+
outputs?: GoogleLearningVertexApiInteractionsV1beta1Content[];
|
|
12525
|
+
/** The ID of the previous interaction, if any. */
|
|
12526
|
+
previous_interaction_id?: string;
|
|
12527
|
+
/** Enforces that the generated response is a JSON object that complies with the JSON schema specified in this field. */
|
|
12528
|
+
response_format?: any;
|
|
12529
|
+
/** The mime type of the response. This is required if response_format is set. */
|
|
12530
|
+
response_mime_type?: string;
|
|
12531
|
+
/** The requested modalities of the response (TEXT, IMAGE, AUDIO). */
|
|
12532
|
+
response_modalities?: string[];
|
|
12533
|
+
/** Output only. The role of the interaction. */
|
|
12534
|
+
role?: string;
|
|
12535
|
+
/** Configuration for speech interaction. */
|
|
12536
|
+
speech_config?: GoogleLearningVertexApiInteractionsV1beta1SpeechConfig[];
|
|
12537
|
+
/** Output only. The status of the interaction. */
|
|
12538
|
+
status?: string;
|
|
12539
|
+
/** A string input for the interaction, it will be processed as a single text input. */
|
|
12540
|
+
stringContent?: string;
|
|
12541
|
+
/** System instruction for the interaction. */
|
|
12542
|
+
system_instruction?: string;
|
|
12543
|
+
/** A list of tool declarations the model may call during interaction. */
|
|
12544
|
+
tools?: GoogleLearningVertexApiInteractionsV1beta1Tool[];
|
|
12545
|
+
/** The turns for the interaction. */
|
|
12546
|
+
turnList?: GoogleLearningVertexApiInteractionsV1beta1TurnList;
|
|
12547
|
+
/** Output only. The time at which the response was last updated in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ). */
|
|
12548
|
+
updated?: string;
|
|
12549
|
+
/** Output only. Statistics on the interaction request's token usage. */
|
|
12550
|
+
usage?: GoogleLearningVertexApiInteractionsV1beta1InteractionUsage;
|
|
12551
|
+
}
|
|
12552
|
+
interface GoogleLearningVertexApiInteractionsV1beta1InteractionEvent {
|
|
12553
|
+
event_type?: string;
|
|
12554
|
+
interaction?: GoogleLearningVertexApiInteractionsV1beta1Interaction;
|
|
12555
|
+
}
|
|
12556
|
+
interface GoogleLearningVertexApiInteractionsV1beta1InteractionMetadata {
|
|
12557
|
+
/** Output only. The time at which the response was created in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ). */
|
|
12558
|
+
created?: string;
|
|
12559
|
+
/** Output only. A unique identifier for the interaction completion. */
|
|
12560
|
+
id?: string;
|
|
12561
|
+
/** Output only. The status of the interaction. */
|
|
12562
|
+
status?: string;
|
|
12563
|
+
/** Output only. The time at which the response was last updated in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ). */
|
|
12564
|
+
updated?: string;
|
|
12565
|
+
}
|
|
12566
|
+
interface GoogleLearningVertexApiInteractionsV1beta1InteractionStatusUpdate {
|
|
12567
|
+
event_type?: string;
|
|
12568
|
+
interaction_id?: string;
|
|
12569
|
+
status?: string;
|
|
12570
|
+
}
|
|
12571
|
+
interface GoogleLearningVertexApiInteractionsV1beta1InteractionStreamingEvent {
|
|
12572
|
+
/** The content block delta data, used for content.delta events. */
|
|
12573
|
+
contentDelta?: GoogleLearningVertexApiInteractionsV1beta1ContentDelta;
|
|
12574
|
+
/** The content block start data, used for content.start events. */
|
|
12575
|
+
contentStart?: GoogleLearningVertexApiInteractionsV1beta1ContentStart;
|
|
12576
|
+
/** The content block stop data, used for content.stop events. */
|
|
12577
|
+
contentStop?: GoogleLearningVertexApiInteractionsV1beta1ContentStop;
|
|
12578
|
+
/** The error event data, used for error events. */
|
|
12579
|
+
errorEvent?: GoogleLearningVertexApiInteractionsV1beta1ErrorEvent;
|
|
12580
|
+
/** The interaction data, used for interaction.start and interaction.complete events. */
|
|
12581
|
+
interactionEvent?: GoogleLearningVertexApiInteractionsV1beta1InteractionEvent;
|
|
12582
|
+
/** The interaction status data, used for interaction.status_update events. */
|
|
12583
|
+
interactionStatusUpdate?: GoogleLearningVertexApiInteractionsV1beta1InteractionStatusUpdate;
|
|
12584
|
+
/** The raw data, used for raw events. */
|
|
12585
|
+
rawData?: string;
|
|
12586
|
+
}
|
|
12587
|
+
interface GoogleLearningVertexApiInteractionsV1beta1InteractionUsage {
|
|
12588
|
+
/** A breakdown of cached token usage by modality. */
|
|
12589
|
+
cached_tokens_by_modality?: GoogleLearningVertexApiInteractionsV1beta1InteractionUsageModalityTokens[];
|
|
12590
|
+
/** A breakdown of input token usage by modality. */
|
|
12591
|
+
input_tokens_by_modality?: GoogleLearningVertexApiInteractionsV1beta1InteractionUsageModalityTokens[];
|
|
12592
|
+
/** A breakdown of output token usage by modality. */
|
|
12593
|
+
output_tokens_by_modality?: GoogleLearningVertexApiInteractionsV1beta1InteractionUsageModalityTokens[];
|
|
12594
|
+
/** A breakdown of tool-use token usage by modality. */
|
|
12595
|
+
tool_use_tokens_by_modality?: GoogleLearningVertexApiInteractionsV1beta1InteractionUsageModalityTokens[];
|
|
12596
|
+
/** Number of tokens in the cached part of the prompt (the cached content). */
|
|
12597
|
+
total_cached_tokens?: number;
|
|
12598
|
+
/** Number of tokens in the prompt (context). */
|
|
12599
|
+
total_input_tokens?: number;
|
|
12600
|
+
/** Total number of tokens across all the generated responses. */
|
|
12601
|
+
total_output_tokens?: number;
|
|
12602
|
+
/** Number of tokens of thoughts for thinking models. */
|
|
12603
|
+
total_reasoning_tokens?: number;
|
|
12604
|
+
/** Total token count for the interaction request (prompt + responses + other internal tokens). */
|
|
12605
|
+
total_tokens?: number;
|
|
12606
|
+
/** Number of tokens present in tool-use prompt(s). */
|
|
12607
|
+
total_tool_use_tokens?: number;
|
|
12608
|
+
}
|
|
12609
|
+
interface GoogleLearningVertexApiInteractionsV1beta1InteractionUsageModalityTokens {
|
|
12610
|
+
/** The modality associated with the token count. */
|
|
12611
|
+
modality?: string;
|
|
12612
|
+
/** Number of tokens for the modality. */
|
|
12613
|
+
tokens?: number;
|
|
12614
|
+
}
|
|
12615
|
+
interface GoogleLearningVertexApiInteractionsV1beta1ListInteractionsResponse {
|
|
12616
|
+
/** The `InteractionMetadata` from the specified collection. */
|
|
12617
|
+
interactionMetadatas?: GoogleLearningVertexApiInteractionsV1beta1InteractionMetadata[];
|
|
12618
|
+
/** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
|
|
12619
|
+
next_page_token?: string;
|
|
12620
|
+
}
|
|
12621
|
+
interface GoogleLearningVertexApiInteractionsV1beta1McpServer {
|
|
12622
|
+
/** The allowed tools. */
|
|
12623
|
+
allowed_tools?: GoogleLearningVertexApiInteractionsV1beta1AllowedTools[];
|
|
12624
|
+
/** Optional: Fields for authentication headers, timeouts, etc., if needed. */
|
|
12625
|
+
headers?: {[P in string]: string};
|
|
12626
|
+
/** The name of the MCPServer. */
|
|
12627
|
+
name?: string;
|
|
12628
|
+
/** Used as the OpenAPI type discriminator for the content oneof. */
|
|
12629
|
+
type?: string;
|
|
12630
|
+
/** The full URL for the MCPServer endpoint. Example: "https://api.example.com/mcp" */
|
|
12631
|
+
url?: string;
|
|
12632
|
+
}
|
|
12633
|
+
interface GoogleLearningVertexApiInteractionsV1beta1McpServerToolCallContent {
|
|
12634
|
+
/** The JSON object of arguments for the function. */
|
|
12635
|
+
arguments?: {[P in string]: any};
|
|
12636
|
+
/** The name of the tool which was called. */
|
|
12637
|
+
name?: string;
|
|
12638
|
+
/** The name of the used MCP server. */
|
|
12639
|
+
server_name?: string;
|
|
12640
|
+
/** Used as the OpenAPI type discriminator for the content oneof. */
|
|
12641
|
+
type?: string;
|
|
12642
|
+
}
|
|
12643
|
+
interface GoogleLearningVertexApiInteractionsV1beta1McpServerToolResultContent {
|
|
12644
|
+
contentList?: GoogleLearningVertexApiInteractionsV1beta1TextOrImageContentList;
|
|
12645
|
+
/** Name of the tool which is called for this specific tool call. */
|
|
12646
|
+
name?: string;
|
|
12647
|
+
/** The name of the used MCP server. */
|
|
12648
|
+
server_name?: string;
|
|
12649
|
+
stringResult?: string;
|
|
12650
|
+
/** Used as the OpenAPI type discriminator for the content oneof. */
|
|
12651
|
+
type?: string;
|
|
12652
|
+
}
|
|
12653
|
+
interface GoogleLearningVertexApiInteractionsV1beta1ModelInteraction {
|
|
12654
|
+
/** Input only. Configuration parameters for the model interaction. */
|
|
12655
|
+
generation_config?: GoogleLearningVertexApiInteractionsV1beta1GenerationConfig;
|
|
12656
|
+
/** The name of the `Model` used for generating the completion. */
|
|
12657
|
+
model?: string;
|
|
12658
|
+
}
|
|
12659
|
+
interface GoogleLearningVertexApiInteractionsV1beta1SpeechConfig {
|
|
12660
|
+
/** The language of the speech. */
|
|
12661
|
+
language?: string;
|
|
12662
|
+
/** The speaker's name, it should match the speaker name given in the prompt. */
|
|
12663
|
+
speaker?: string;
|
|
12664
|
+
/** The voice of the speaker. */
|
|
12665
|
+
voice?: string;
|
|
12666
|
+
}
|
|
12667
|
+
interface GoogleLearningVertexApiInteractionsV1beta1TextContent {
|
|
12668
|
+
/** Citation information for model-generated content. */
|
|
12669
|
+
annotations?: GoogleLearningVertexApiInteractionsV1beta1TextContentAnnotation[];
|
|
12670
|
+
/** The text content. */
|
|
12671
|
+
text?: string;
|
|
12672
|
+
/** Used as the OpenAPI type discriminator for the content oneof. */
|
|
12673
|
+
type?: string;
|
|
12674
|
+
}
|
|
12675
|
+
interface GoogleLearningVertexApiInteractionsV1beta1TextContentAnnotation {
|
|
12676
|
+
/** End of the attributed segment, exclusive. */
|
|
12677
|
+
end_index?: number;
|
|
12678
|
+
/** Source attributed for a portion of the text. Could be a URL, title, or other identifier. */
|
|
12679
|
+
source?: string;
|
|
12680
|
+
/** Start of segment of the response that is attributed to this source. Index indicates the start of the segment, measured in bytes. */
|
|
12681
|
+
start_index?: number;
|
|
12682
|
+
}
|
|
12683
|
+
interface GoogleLearningVertexApiInteractionsV1beta1TextOrImageContent {
|
|
12684
|
+
image?: GoogleLearningVertexApiInteractionsV1beta1ImageContent;
|
|
12685
|
+
text?: string;
|
|
12686
|
+
}
|
|
12687
|
+
interface GoogleLearningVertexApiInteractionsV1beta1TextOrImageContentList {
|
|
12688
|
+
contents?: GoogleLearningVertexApiInteractionsV1beta1TextOrImageContent[];
|
|
12689
|
+
}
|
|
12690
|
+
interface GoogleLearningVertexApiInteractionsV1beta1ThoughtContent {
|
|
12691
|
+
/** Signature to match the backend source to be part of the generation. */
|
|
12692
|
+
signature?: string;
|
|
12693
|
+
/** A summary of the thought. */
|
|
12694
|
+
summary?: GoogleLearningVertexApiInteractionsV1beta1ThoughtSummary;
|
|
12695
|
+
/** Used as the OpenAPI type discriminator for the content oneof. */
|
|
12696
|
+
type?: string;
|
|
12697
|
+
}
|
|
12698
|
+
interface GoogleLearningVertexApiInteractionsV1beta1ThoughtSummary {
|
|
12699
|
+
items?: GoogleLearningVertexApiInteractionsV1beta1ThoughtSummaryContent[];
|
|
12700
|
+
}
|
|
12701
|
+
interface GoogleLearningVertexApiInteractionsV1beta1ThoughtSummaryContent {
|
|
12702
|
+
image?: GoogleLearningVertexApiInteractionsV1beta1ImageContent;
|
|
12703
|
+
text?: GoogleLearningVertexApiInteractionsV1beta1TextContent;
|
|
12704
|
+
}
|
|
12705
|
+
interface GoogleLearningVertexApiInteractionsV1beta1Tool {
|
|
12706
|
+
/** A tool that can be used by the model to execute code. */
|
|
12707
|
+
codeExecution?: GoogleLearningVertexApiInteractionsV1beta1CodeExecution;
|
|
12708
|
+
/** Tool to support the model interacting directly with the computer. */
|
|
12709
|
+
computerUse?: GoogleLearningVertexApiInteractionsV1beta1ComputerUse;
|
|
12710
|
+
/** A tool that can be used by the model to search files. */
|
|
12711
|
+
fileSearch?: GoogleLearningVertexApiInteractionsV1beta1FileSearchPreview;
|
|
12712
|
+
/** A function that can be used by the model. */
|
|
12713
|
+
function?: GoogleLearningVertexApiInteractionsV1beta1Function;
|
|
12714
|
+
/** A tool that can be used by the model to search Google. */
|
|
12715
|
+
googleSearch?: GoogleLearningVertexApiInteractionsV1beta1GoogleSearch;
|
|
12716
|
+
/** A MCPServer is a server that can be called by the model to perform actions. */
|
|
12717
|
+
mcpServer?: GoogleLearningVertexApiInteractionsV1beta1McpServer;
|
|
12718
|
+
/** A tool that can be used by the model to fetch URL context. */
|
|
12719
|
+
urlContext?: GoogleLearningVertexApiInteractionsV1beta1UrlContext;
|
|
12720
|
+
}
|
|
12721
|
+
interface GoogleLearningVertexApiInteractionsV1beta1ToolChoice {
|
|
12722
|
+
/** The allowed tools. */
|
|
12723
|
+
allowed_tools?: GoogleLearningVertexApiInteractionsV1beta1AllowedTools;
|
|
12724
|
+
/** The mode of the tool choice. */
|
|
12725
|
+
mode?: string;
|
|
12726
|
+
}
|
|
12727
|
+
interface GoogleLearningVertexApiInteractionsV1beta1Turn {
|
|
12728
|
+
/** The content of the turn. An array of Content objects. */
|
|
12729
|
+
contentList?: GoogleLearningVertexApiInteractionsV1beta1ContentList;
|
|
12730
|
+
/** The content of the turn. A single string. */
|
|
12731
|
+
contentString?: string;
|
|
12732
|
+
/** The originator of this turn. Must be user for input or model for model output. */
|
|
12733
|
+
role?: string;
|
|
12734
|
+
}
|
|
12735
|
+
interface GoogleLearningVertexApiInteractionsV1beta1TurnList {
|
|
12736
|
+
turns?: GoogleLearningVertexApiInteractionsV1beta1Turn[];
|
|
12737
|
+
}
|
|
12738
|
+
interface GoogleLearningVertexApiInteractionsV1beta1UrlContext {
|
|
12739
|
+
/** Used as the OpenAPI type discriminator for the content oneof. */
|
|
12740
|
+
type?: string;
|
|
12741
|
+
}
|
|
12742
|
+
interface GoogleLearningVertexApiInteractionsV1beta1UrlContextCallContent {
|
|
12743
|
+
/** The arguments to pass to the URL context. */
|
|
12744
|
+
arguments?: GoogleLearningVertexApiInteractionsV1beta1UrlContextCallContentUrlContextCallArguments;
|
|
12745
|
+
/** Used as the OpenAPI type discriminator for the content oneof. */
|
|
12746
|
+
type?: string;
|
|
12747
|
+
}
|
|
12748
|
+
interface GoogleLearningVertexApiInteractionsV1beta1UrlContextCallContentUrlContextCallArguments {
|
|
12749
|
+
/** The URLs to fetch. */
|
|
12750
|
+
urls?: string[];
|
|
12751
|
+
}
|
|
12752
|
+
interface GoogleLearningVertexApiInteractionsV1beta1UrlContextResultContent {
|
|
12753
|
+
/** Whether the URL context resulted in an error. */
|
|
12754
|
+
is_error?: boolean;
|
|
12755
|
+
/** The results of the URL context. */
|
|
12756
|
+
result?: GoogleLearningVertexApiInteractionsV1beta1UrlContextResultContentUrlContextResult[];
|
|
12757
|
+
/** The signature of the URL context result. */
|
|
12758
|
+
signature?: string;
|
|
12759
|
+
/** Used as the OpenAPI type discriminator for the content oneof. */
|
|
12760
|
+
type?: string;
|
|
12761
|
+
}
|
|
12762
|
+
interface GoogleLearningVertexApiInteractionsV1beta1UrlContextResultContentUrlContextResult {
|
|
12763
|
+
/** The status of the URL retrieval. */
|
|
12764
|
+
status?: string;
|
|
12765
|
+
/** The URL that was fetched. */
|
|
12766
|
+
url?: string;
|
|
12767
|
+
}
|
|
12768
|
+
interface GoogleLearningVertexApiInteractionsV1beta1VideoContent {
|
|
12769
|
+
data?: string;
|
|
12770
|
+
mime_type?: string;
|
|
12771
|
+
/** The resolution of the media. */
|
|
12772
|
+
resolution?: string;
|
|
12773
|
+
/** Used as the OpenAPI type discriminator for the content oneof. */
|
|
12774
|
+
type?: string;
|
|
12775
|
+
uri?: string;
|
|
12776
|
+
}
|
|
12240
12777
|
interface GoogleLongrunningListOperationsResponse {
|
|
12241
12778
|
/** The standard List next-page token. */
|
|
12242
12779
|
nextPageToken?: string;
|
|
@@ -17624,6 +18161,97 @@ declare namespace gapi.client {
|
|
|
17624
18161
|
interface IndexesResource {
|
|
17625
18162
|
operations: OperationsResource;
|
|
17626
18163
|
}
|
|
18164
|
+
interface InteractionsResource {
|
|
18165
|
+
/** Fully typed proto, unary version of GetInteraction that returns Interaction proto. */
|
|
18166
|
+
getPoll(request?: {
|
|
18167
|
+
/** V1 error format. */
|
|
18168
|
+
'$.xgafv'?: string;
|
|
18169
|
+
/** OAuth access token. */
|
|
18170
|
+
access_token?: string;
|
|
18171
|
+
/** Data format for response. */
|
|
18172
|
+
alt?: string;
|
|
18173
|
+
/** JSONP */
|
|
18174
|
+
callback?: string;
|
|
18175
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
18176
|
+
fields?: string;
|
|
18177
|
+
/** 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. */
|
|
18178
|
+
key?: string;
|
|
18179
|
+
/** Required. The name of the interaction to retrieve. Format: interactions/{interaction} */
|
|
18180
|
+
name: string;
|
|
18181
|
+
/** OAuth 2.0 token for the current user. */
|
|
18182
|
+
oauth_token?: string;
|
|
18183
|
+
/** Returns response with indentations and line breaks. */
|
|
18184
|
+
prettyPrint?: boolean;
|
|
18185
|
+
/** 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. */
|
|
18186
|
+
quotaUser?: string;
|
|
18187
|
+
/** Optional. If true, streams the interaction events as Server-Sent Events. */
|
|
18188
|
+
stream?: boolean;
|
|
18189
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
18190
|
+
upload_protocol?: string;
|
|
18191
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
18192
|
+
uploadType?: string;
|
|
18193
|
+
}): Request<GoogleLearningVertexApiInteractionsV1beta1Interaction>;
|
|
18194
|
+
/** Fully typed proto, streaming version of GetInteraction that returns Interaction proto. */
|
|
18195
|
+
getStream(request?: {
|
|
18196
|
+
/** V1 error format. */
|
|
18197
|
+
'$.xgafv'?: string;
|
|
18198
|
+
/** OAuth access token. */
|
|
18199
|
+
access_token?: string;
|
|
18200
|
+
/** Data format for response. */
|
|
18201
|
+
alt?: string;
|
|
18202
|
+
/** JSONP */
|
|
18203
|
+
callback?: string;
|
|
18204
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
18205
|
+
fields?: string;
|
|
18206
|
+
/** 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. */
|
|
18207
|
+
key?: string;
|
|
18208
|
+
/** Required. The name of the interaction to retrieve. Format: interactions/{interaction} */
|
|
18209
|
+
name: string;
|
|
18210
|
+
/** OAuth 2.0 token for the current user. */
|
|
18211
|
+
oauth_token?: string;
|
|
18212
|
+
/** Returns response with indentations and line breaks. */
|
|
18213
|
+
prettyPrint?: boolean;
|
|
18214
|
+
/** 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. */
|
|
18215
|
+
quotaUser?: string;
|
|
18216
|
+
/** Optional. If true, streams the interaction events as Server-Sent Events. */
|
|
18217
|
+
stream?: boolean;
|
|
18218
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
18219
|
+
upload_protocol?: string;
|
|
18220
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
18221
|
+
uploadType?: string;
|
|
18222
|
+
}): Request<GoogleLearningVertexApiInteractionsV1beta1InteractionStreamingEvent>;
|
|
18223
|
+
}
|
|
18224
|
+
interface InteractionsInternalResource {
|
|
18225
|
+
/** Internal version of ListInteractions that returns a list of Interactions. */
|
|
18226
|
+
list(request?: {
|
|
18227
|
+
/** V1 error format. */
|
|
18228
|
+
'$.xgafv'?: string;
|
|
18229
|
+
/** OAuth access token. */
|
|
18230
|
+
access_token?: string;
|
|
18231
|
+
/** Data format for response. */
|
|
18232
|
+
alt?: string;
|
|
18233
|
+
/** JSONP */
|
|
18234
|
+
callback?: string;
|
|
18235
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
18236
|
+
fields?: string;
|
|
18237
|
+
/** 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. */
|
|
18238
|
+
key?: string;
|
|
18239
|
+
/** OAuth 2.0 token for the current user. */
|
|
18240
|
+
oauth_token?: string;
|
|
18241
|
+
/** Optional. The maximum number of `Interactions` to return (per page). The service may return fewer `Interactions`. If unspecified, at most 10 `Interactions` will be returned. The maximum size limit is 20 `Interactions` per page. */
|
|
18242
|
+
page_size?: number;
|
|
18243
|
+
/** Optional. A page token, received from a previous `ListInteractions` call. Provide the `next_page_token` returned in the response as an argument to the next request to retrieve the next page. When paginating, all other parameters provided to `ListInteractions` must match the call that provided the page token. */
|
|
18244
|
+
page_token?: string;
|
|
18245
|
+
/** Returns response with indentations and line breaks. */
|
|
18246
|
+
prettyPrint?: boolean;
|
|
18247
|
+
/** 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. */
|
|
18248
|
+
quotaUser?: string;
|
|
18249
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
18250
|
+
upload_protocol?: string;
|
|
18251
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
18252
|
+
uploadType?: string;
|
|
18253
|
+
}): Request<GoogleLearningVertexApiInteractionsV1beta1ListInteractionsResponse>;
|
|
18254
|
+
}
|
|
17627
18255
|
interface MediaResource {
|
|
17628
18256
|
/** Upload a file into a RagCorpus. */
|
|
17629
18257
|
upload(request: {
|
|
@@ -33552,6 +34180,124 @@ declare namespace gapi.client {
|
|
|
33552
34180
|
): Request<{}>;
|
|
33553
34181
|
operations: OperationsResource;
|
|
33554
34182
|
}
|
|
34183
|
+
interface InteractionsResource {
|
|
34184
|
+
/** Creates an interaction. */
|
|
34185
|
+
create(request: {
|
|
34186
|
+
/** V1 error format. */
|
|
34187
|
+
'$.xgafv'?: string;
|
|
34188
|
+
/** OAuth access token. */
|
|
34189
|
+
access_token?: string;
|
|
34190
|
+
/** Data format for response. */
|
|
34191
|
+
alt?: string;
|
|
34192
|
+
/** JSONP */
|
|
34193
|
+
callback?: string;
|
|
34194
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
34195
|
+
fields?: string;
|
|
34196
|
+
/** 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. */
|
|
34197
|
+
key?: string;
|
|
34198
|
+
locationsId: string;
|
|
34199
|
+
/** OAuth 2.0 token for the current user. */
|
|
34200
|
+
oauth_token?: string;
|
|
34201
|
+
/** Returns response with indentations and line breaks. */
|
|
34202
|
+
prettyPrint?: boolean;
|
|
34203
|
+
projectsId: string;
|
|
34204
|
+
/** 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. */
|
|
34205
|
+
quotaUser?: string;
|
|
34206
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
34207
|
+
upload_protocol?: string;
|
|
34208
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
34209
|
+
uploadType?: string;
|
|
34210
|
+
/** Request body */
|
|
34211
|
+
resource: GoogleLearningVertexApiInteractionsV1beta1CreateInteractionParams;
|
|
34212
|
+
}): Request<GoogleLearningVertexApiInteractionsV1beta1Interaction>;
|
|
34213
|
+
create(
|
|
34214
|
+
request: {
|
|
34215
|
+
/** V1 error format. */
|
|
34216
|
+
'$.xgafv'?: string;
|
|
34217
|
+
/** OAuth access token. */
|
|
34218
|
+
access_token?: string;
|
|
34219
|
+
/** Data format for response. */
|
|
34220
|
+
alt?: string;
|
|
34221
|
+
/** JSONP */
|
|
34222
|
+
callback?: string;
|
|
34223
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
34224
|
+
fields?: string;
|
|
34225
|
+
/** 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. */
|
|
34226
|
+
key?: string;
|
|
34227
|
+
locationsId: string;
|
|
34228
|
+
/** OAuth 2.0 token for the current user. */
|
|
34229
|
+
oauth_token?: string;
|
|
34230
|
+
/** Returns response with indentations and line breaks. */
|
|
34231
|
+
prettyPrint?: boolean;
|
|
34232
|
+
projectsId: string;
|
|
34233
|
+
/** 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. */
|
|
34234
|
+
quotaUser?: string;
|
|
34235
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
34236
|
+
upload_protocol?: string;
|
|
34237
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
34238
|
+
uploadType?: string;
|
|
34239
|
+
},
|
|
34240
|
+
body: GoogleLearningVertexApiInteractionsV1beta1CreateInteractionParams,
|
|
34241
|
+
): Request<GoogleLearningVertexApiInteractionsV1beta1Interaction>;
|
|
34242
|
+
/** Creates an interaction and streams the response. */
|
|
34243
|
+
createStream(request: {
|
|
34244
|
+
/** V1 error format. */
|
|
34245
|
+
'$.xgafv'?: string;
|
|
34246
|
+
/** OAuth access token. */
|
|
34247
|
+
access_token?: string;
|
|
34248
|
+
/** Data format for response. */
|
|
34249
|
+
alt?: string;
|
|
34250
|
+
/** JSONP */
|
|
34251
|
+
callback?: string;
|
|
34252
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
34253
|
+
fields?: string;
|
|
34254
|
+
/** 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. */
|
|
34255
|
+
key?: string;
|
|
34256
|
+
locationsId: string;
|
|
34257
|
+
/** OAuth 2.0 token for the current user. */
|
|
34258
|
+
oauth_token?: string;
|
|
34259
|
+
/** Returns response with indentations and line breaks. */
|
|
34260
|
+
prettyPrint?: boolean;
|
|
34261
|
+
projectsId: string;
|
|
34262
|
+
/** 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. */
|
|
34263
|
+
quotaUser?: string;
|
|
34264
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
34265
|
+
upload_protocol?: string;
|
|
34266
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
34267
|
+
uploadType?: string;
|
|
34268
|
+
/** Request body */
|
|
34269
|
+
resource: GoogleLearningVertexApiInteractionsV1beta1CreateInteractionParams;
|
|
34270
|
+
}): Request<GoogleLearningVertexApiInteractionsV1beta1InteractionStreamingEvent>;
|
|
34271
|
+
createStream(
|
|
34272
|
+
request: {
|
|
34273
|
+
/** V1 error format. */
|
|
34274
|
+
'$.xgafv'?: string;
|
|
34275
|
+
/** OAuth access token. */
|
|
34276
|
+
access_token?: string;
|
|
34277
|
+
/** Data format for response. */
|
|
34278
|
+
alt?: string;
|
|
34279
|
+
/** JSONP */
|
|
34280
|
+
callback?: string;
|
|
34281
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
34282
|
+
fields?: string;
|
|
34283
|
+
/** 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. */
|
|
34284
|
+
key?: string;
|
|
34285
|
+
locationsId: string;
|
|
34286
|
+
/** OAuth 2.0 token for the current user. */
|
|
34287
|
+
oauth_token?: string;
|
|
34288
|
+
/** Returns response with indentations and line breaks. */
|
|
34289
|
+
prettyPrint?: boolean;
|
|
34290
|
+
projectsId: string;
|
|
34291
|
+
/** 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. */
|
|
34292
|
+
quotaUser?: string;
|
|
34293
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
34294
|
+
upload_protocol?: string;
|
|
34295
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
34296
|
+
uploadType?: string;
|
|
34297
|
+
},
|
|
34298
|
+
body: GoogleLearningVertexApiInteractionsV1beta1CreateInteractionParams,
|
|
34299
|
+
): Request<GoogleLearningVertexApiInteractionsV1beta1InteractionStreamingEvent>;
|
|
34300
|
+
}
|
|
33555
34301
|
interface OperationsResource {
|
|
33556
34302
|
/** Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`. */
|
|
33557
34303
|
cancel(request?: {
|
|
@@ -39809,7 +40555,7 @@ declare namespace gapi.client {
|
|
|
39809
40555
|
prettyPrint?: boolean;
|
|
39810
40556
|
/** 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. */
|
|
39811
40557
|
quotaUser?: string;
|
|
39812
|
-
/** Required. The update mask applies to the resource. For the `FieldMask` definition, see google.protobuf.FieldMask. Input format: `{paths: "${
|
|
40558
|
+
/** Required. The update mask applies to the resource. For the `FieldMask` definition, see google.protobuf.FieldMask. Input format: `{paths: "${updated_field}"}` Updatable fields: * `encryption_spec.kms_key_name` * `display_name` * `software_config.post_startup_script_config.post_startup_script` * `software_config.post_startup_script_config.post_startup_script_url` * `software_config.post_startup_script_config.post_startup_script_behavior` * `software_config.env` * `software_config.colab_image.release_name` */
|
|
39813
40559
|
updateMask?: string;
|
|
39814
40560
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
39815
40561
|
upload_protocol?: string;
|
|
@@ -39840,7 +40586,7 @@ declare namespace gapi.client {
|
|
|
39840
40586
|
prettyPrint?: boolean;
|
|
39841
40587
|
/** 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. */
|
|
39842
40588
|
quotaUser?: string;
|
|
39843
|
-
/** Required. The update mask applies to the resource. For the `FieldMask` definition, see google.protobuf.FieldMask. Input format: `{paths: "${
|
|
40589
|
+
/** Required. The update mask applies to the resource. For the `FieldMask` definition, see google.protobuf.FieldMask. Input format: `{paths: "${updated_field}"}` Updatable fields: * `encryption_spec.kms_key_name` * `display_name` * `software_config.post_startup_script_config.post_startup_script` * `software_config.post_startup_script_config.post_startup_script_url` * `software_config.post_startup_script_config.post_startup_script_behavior` * `software_config.env` * `software_config.colab_image.release_name` */
|
|
39844
40590
|
updateMask?: string;
|
|
39845
40591
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
39846
40592
|
upload_protocol?: string;
|
|
@@ -50149,6 +50895,7 @@ declare namespace gapi.client {
|
|
|
50149
50895
|
hyperparameterTuningJobs: HyperparameterTuningJobsResource;
|
|
50150
50896
|
indexEndpoints: IndexEndpointsResource;
|
|
50151
50897
|
indexes: IndexesResource;
|
|
50898
|
+
interactions: InteractionsResource;
|
|
50152
50899
|
metadataStores: MetadataStoresResource;
|
|
50153
50900
|
migratableResources: MigratableResourcesResource;
|
|
50154
50901
|
modelDeploymentMonitoringJobs: ModelDeploymentMonitoringJobsResource;
|
|
@@ -55335,6 +56082,10 @@ declare namespace gapi.client {
|
|
|
55335
56082
|
|
|
55336
56083
|
const indexes: IndexesResource;
|
|
55337
56084
|
|
|
56085
|
+
const interactions: InteractionsResource;
|
|
56086
|
+
|
|
56087
|
+
const interactionsInternal: InteractionsInternalResource;
|
|
56088
|
+
|
|
55338
56089
|
const media: MediaResource;
|
|
55339
56090
|
|
|
55340
56091
|
const metadataStores: MetadataStoresResource;
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -151,6 +151,21 @@ Generate content with multimodal inputs with streaming support.
|
|
|
151
151
|
*/
|
|
152
152
|
await gapi.client.aiplatform.endpoints.streamGenerateContent({model: 'model'});
|
|
153
153
|
|
|
154
|
+
/*
|
|
155
|
+
Fully typed proto, unary version of GetInteraction that returns Interaction proto.
|
|
156
|
+
*/
|
|
157
|
+
await gapi.client.aiplatform.interactions.getPoll({name: 'name'});
|
|
158
|
+
|
|
159
|
+
/*
|
|
160
|
+
Fully typed proto, streaming version of GetInteraction that returns Interaction proto.
|
|
161
|
+
*/
|
|
162
|
+
await gapi.client.aiplatform.interactions.getStream({name: 'name'});
|
|
163
|
+
|
|
164
|
+
/*
|
|
165
|
+
Internal version of ListInteractions that returns a list of Interactions.
|
|
166
|
+
*/
|
|
167
|
+
await gapi.client.aiplatform.interactionsInternal.list({});
|
|
168
|
+
|
|
154
169
|
/*
|
|
155
170
|
Upload a file into a RagCorpus.
|
|
156
171
|
*/
|