Skip to content

Commit 2862c1e

Browse files
Google APIscopybara-github
authored andcommitted
feat: add EnterpriseWebSearch tool option
PiperOrigin-RevId: 731486257
1 parent 0a0115d commit 2862c1e

File tree

2 files changed

+38
-13
lines changed

2 files changed

+38
-13
lines changed

google/cloud/aiplatform/v1/tool.proto

Lines changed: 29 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ option ruby_package = "Google::Cloud::AIPlatform::V1";
3838
// one type of Tool (e.g FunctionDeclaration, Retrieval or
3939
// GoogleSearchRetrieval).
4040
message Tool {
41+
// GoogleSearch tool type.
42+
// Tool to support Google Search in Model. Powered by Google.
43+
message GoogleSearch {}
44+
4145
// Tool that executes code generated by the model, and automatically returns
4246
// the result to the model.
4347
//
@@ -48,11 +52,12 @@ message Tool {
4852
// Optional. Function tool type.
4953
// One or more function declarations to be passed to the model along with the
5054
// current user query. Model may decide to call a subset of these functions
51-
// by populating [FunctionCall][content.part.function_call] in the response.
52-
// User should provide a [FunctionResponse][content.part.function_response]
53-
// for each function call in the next turn. Based on the function responses,
54-
// Model will generate the final response back to the user.
55-
// Maximum 128 function declarations can be provided.
55+
// by populating [FunctionCall][google.cloud.aiplatform.v1.Part.function_call]
56+
// in the response. User should provide a
57+
// [FunctionResponse][google.cloud.aiplatform.v1.Part.function_response] for
58+
// each function call in the next turn. Based on the function responses, Model
59+
// will generate the final response back to the user. Maximum 128 function
60+
// declarations can be provided.
5661
repeated FunctionDeclaration function_declarations = 1
5762
[(google.api.field_behavior) = OPTIONAL];
5863

@@ -62,14 +67,22 @@ message Tool {
6267
// model for generation.
6368
Retrieval retrieval = 2 [(google.api.field_behavior) = OPTIONAL];
6469

70+
// Optional. GoogleSearch tool type.
71+
// Tool to support Google Search in Model. Powered by Google.
72+
GoogleSearch google_search = 7 [(google.api.field_behavior) = OPTIONAL];
73+
6574
// Optional. GoogleSearchRetrieval tool type.
6675
// Specialized retrieval tool that is powered by Google search.
6776
GoogleSearchRetrieval google_search_retrieval = 3
6877
[(google.api.field_behavior) = OPTIONAL];
6978

79+
// Optional. Tool to support searching public web data, powered by Vertex AI
80+
// Search and Sec4 compliance.
81+
EnterpriseWebSearch enterprise_web_search = 6
82+
[(google.api.field_behavior) = OPTIONAL];
83+
7084
// Optional. CodeExecution tool type.
7185
// Enables the model to execute code as part of generation.
72-
// This field is only used by the Gemini Developer API services.
7386
CodeExecution code_execution = 4 [(google.api.field_behavior) = OPTIONAL];
7487
}
7588

@@ -263,6 +276,10 @@ message GoogleSearchRetrieval {
263276
DynamicRetrievalConfig dynamic_retrieval_config = 2;
264277
}
265278

279+
// Tool to search public web data, powered by Vertex AI Search and Sec4
280+
// compliance.
281+
message EnterpriseWebSearch {}
282+
266283
// Describes the options to customize dynamic retrieval.
267284
message DynamicRetrievalConfig {
268285
// The mode of the predictor to be used in dynamic retrieval.
@@ -299,17 +316,17 @@ message FunctionCallingConfig {
299316
// Unspecified function calling mode. This value should not be used.
300317
MODE_UNSPECIFIED = 0;
301318

302-
// Default model behavior, model decides to predict either a function call
303-
// or a natural language response.
319+
// Default model behavior, model decides to predict either function calls
320+
// or natural language response.
304321
AUTO = 1;
305322

306-
// Model is constrained to always predicting a function call only.
307-
// If "allowed_function_names" are set, the predicted function call will be
323+
// Model is constrained to always predicting function calls only.
324+
// If "allowed_function_names" are set, the predicted function calls will be
308325
// limited to any one of "allowed_function_names", else the predicted
309-
// function call will be any one of the provided "function_declarations".
326+
// function calls will be any one of the provided "function_declarations".
310327
ANY = 2;
311328

312-
// Model will not predict any function call. Model behavior is same as when
329+
// Model will not predict any function calls. Model behavior is same as when
313330
// not passing any function declarations.
314331
NONE = 3;
315332
}

google/cloud/aiplatform/v1beta1/tool.proto

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,13 @@ message Tool {
7777
GoogleSearchRetrieval google_search_retrieval = 3
7878
[(google.api.field_behavior) = OPTIONAL];
7979

80+
// Optional. Tool to support searching public web data, powered by Vertex AI
81+
// Search and Sec4 compliance.
82+
EnterpriseWebSearch enterprise_web_search = 6
83+
[(google.api.field_behavior) = OPTIONAL];
84+
8085
// Optional. CodeExecution tool type.
8186
// Enables the model to execute code as part of generation.
82-
// This field is only used by the Gemini Developer API services.
8387
CodeExecution code_execution = 4 [(google.api.field_behavior) = OPTIONAL];
8488
}
8589

@@ -320,6 +324,10 @@ message GoogleSearchRetrieval {
320324
DynamicRetrievalConfig dynamic_retrieval_config = 2;
321325
}
322326

327+
// Tool to search public web data, powered by Vertex AI Search and Sec4
328+
// compliance.
329+
message EnterpriseWebSearch {}
330+
323331
// Describes the options to customize dynamic retrieval.
324332
message DynamicRetrievalConfig {
325333
// The mode of the predictor to be used in dynamic retrieval.

0 commit comments

Comments
 (0)