|
1 | | -// Copyright 2025 Google LLC |
| 1 | +// Copyright 2026 Google LLC |
2 | 2 | // |
3 | 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
4 | 4 | // you may not use this file except in compliance with the License. |
@@ -21,6 +21,8 @@ import "google/api/client.proto"; |
21 | 21 | import "google/api/field_behavior.proto"; |
22 | 22 | import "google/api/httpbody.proto"; |
23 | 23 | import "google/api/resource.proto"; |
| 24 | +import "google/cloud/aiplatform/v1/operation.proto"; |
| 25 | +import "google/longrunning/operations.proto"; |
24 | 26 | import "google/protobuf/struct.proto"; |
25 | 27 |
|
26 | 28 | option csharp_namespace = "Google.Cloud.AIPlatform.V1"; |
@@ -54,6 +56,23 @@ service ReasoningEngineExecutionService { |
54 | 56 | body: "*" |
55 | 57 | }; |
56 | 58 | } |
| 59 | + |
| 60 | + // Async query using a reasoning engine. |
| 61 | + rpc AsyncQueryReasoningEngine(AsyncQueryReasoningEngineRequest) |
| 62 | + returns (google.longrunning.Operation) { |
| 63 | + option (google.api.http) = { |
| 64 | + post: "/v1/{name=projects/*/locations/*/reasoningEngines/*}:asyncQuery" |
| 65 | + body: "*" |
| 66 | + additional_bindings { |
| 67 | + post: "/v1/{name=reasoningEngines/*}:asyncQuery" |
| 68 | + body: "*" |
| 69 | + } |
| 70 | + }; |
| 71 | + option (google.longrunning.operation_info) = { |
| 72 | + response_type: "AsyncQueryReasoningEngineResponse" |
| 73 | + metadata_type: "AsyncQueryReasoningEngineOperationMetadata" |
| 74 | + }; |
| 75 | + } |
57 | 76 | } |
58 | 77 |
|
59 | 78 | // Request message for [ReasoningEngineExecutionService.Query][]. |
@@ -103,3 +122,37 @@ message StreamQueryReasoningEngineRequest { |
103 | 122 | // It is optional and defaults to "stream_query" if unspecified. |
104 | 123 | string class_method = 3 [(google.api.field_behavior) = OPTIONAL]; |
105 | 124 | } |
| 125 | + |
| 126 | +// Request message for |
| 127 | +// [ReasoningEngineExecutionService.AsyncQueryReasoningEngine][google.cloud.aiplatform.v1.ReasoningEngineExecutionService.AsyncQueryReasoningEngine]. |
| 128 | +message AsyncQueryReasoningEngineRequest { |
| 129 | + // Required. The name of the ReasoningEngine resource to use. |
| 130 | + // Format: |
| 131 | + // `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` |
| 132 | + string name = 1 [ |
| 133 | + (google.api.field_behavior) = REQUIRED, |
| 134 | + (google.api.resource_reference) = { |
| 135 | + type: "aiplatform.googleapis.com/ReasoningEngine" |
| 136 | + } |
| 137 | + ]; |
| 138 | + |
| 139 | + // Optional. Input Cloud Storage URI for the Async query. |
| 140 | + string input_gcs_uri = 2 [(google.api.field_behavior) = OPTIONAL]; |
| 141 | + |
| 142 | + // Optional. Output Cloud Storage URI for the Async query. |
| 143 | + string output_gcs_uri = 3 [(google.api.field_behavior) = OPTIONAL]; |
| 144 | +} |
| 145 | + |
| 146 | +// Operation metadata message for |
| 147 | +// [ReasoningEngineExecutionService.AsyncQueryReasoningEngine][google.cloud.aiplatform.v1.ReasoningEngineExecutionService.AsyncQueryReasoningEngine]. |
| 148 | +message AsyncQueryReasoningEngineOperationMetadata { |
| 149 | + // The common part of the operation metadata. |
| 150 | + GenericOperationMetadata generic_metadata = 1; |
| 151 | +} |
| 152 | + |
| 153 | +// Response message for |
| 154 | +// [ReasoningEngineExecutionService.AsyncQueryReasoningEngine][google.cloud.aiplatform.v1.ReasoningEngineExecutionService.AsyncQueryReasoningEngine]. |
| 155 | +message AsyncQueryReasoningEngineResponse { |
| 156 | + // Output Cloud Storage URI for the Async query. |
| 157 | + string output_gcs_uri = 1; |
| 158 | +} |