Skip to content

Commit 870b703

Browse files
Google APIscopybara-github
authored andcommitted
feat: add retrieval_config to ToolConfig v1
PiperOrigin-RevId: 715245748
1 parent ee799bd commit 870b703

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

google/cloud/aiplatform/v1/BUILD.bazel

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ proto_library(
154154
"//google/rpc:status_proto",
155155
"//google/type:date_proto",
156156
"//google/type:interval_proto",
157+
"//google/type:latlng_proto",
157158
"//google/type:money_proto",
158159
"@com_google_protobuf//:duration_proto",
159160
"@com_google_protobuf//:empty_proto",
@@ -301,6 +302,7 @@ go_proto_library(
301302
"//google/rpc:status_go_proto",
302303
"//google/type:date_go_proto",
303304
"//google/type:interval_go_proto",
305+
"//google/type:latlng_go_proto",
304306
"//google/type:money_go_proto",
305307
],
306308
)

google/cloud/aiplatform/v1/tool.proto

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import "google/api/field_behavior.proto";
2020
import "google/api/resource.proto";
2121
import "google/cloud/aiplatform/v1/openapi.proto";
2222
import "google/protobuf/struct.proto";
23+
import "google/type/latlng.proto";
2324

2425
option csharp_namespace = "Google.Cloud.AIPlatform.V1";
2526
option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb";
@@ -223,6 +224,9 @@ message ToolConfig {
223224
// Optional. Function calling config.
224225
FunctionCallingConfig function_calling_config = 1
225226
[(google.api.field_behavior) = OPTIONAL];
227+
228+
// Optional. Retrieval config.
229+
RetrievalConfig retrieval_config = 2 [(google.api.field_behavior) = OPTIONAL];
226230
}
227231

228232
// Function calling config.
@@ -257,6 +261,15 @@ message FunctionCallingConfig {
257261
[(google.api.field_behavior) = OPTIONAL];
258262
}
259263

264+
// Retrieval config.
265+
message RetrievalConfig {
266+
// The location of the user.
267+
optional google.type.LatLng lat_lng = 1;
268+
269+
// The language code of the user.
270+
optional string language_code = 2;
271+
}
272+
260273
// Specifies the context retrieval config.
261274
message RagRetrievalConfig {
262275
// Config for filters.

0 commit comments

Comments
 (0)