diff --git a/AiPlatform/metadata/V1/Tool.php b/AiPlatform/metadata/V1/Tool.php index bb6004b3c45..373a4fc28eb 100644 --- a/AiPlatform/metadata/V1/Tool.php +++ b/AiPlatform/metadata/V1/Tool.php @@ -20,7 +20,7 @@ public static function initOnce() { \GPBMetadata\Google\Protobuf\Struct::initOnce(); \GPBMetadata\Google\Type\Latlng::initOnce(); $pool->internalAddGeneratedFile( - "\x0A\x8F/\x0A%google/cloud/aiplatform/v1/tool.proto\x12\x1Agoogle.cloud.aiplatform.v1\x1A\x19google/api/resource.proto\x1A(google/cloud/aiplatform/v1/openapi.proto\x1A\x1Cgoogle/protobuf/struct.proto\x1A\x18google/type/latlng.proto\"\xAB\x0A\x0A\x04Tool\x12S\x0A\x15function_declarations\x18\x01 \x03(\x0B2/.google.cloud.aiplatform.v1.FunctionDeclarationB\x03\xE0A\x01\x12=\x0A\x09retrieval\x18\x02 \x01(\x0B2%.google.cloud.aiplatform.v1.RetrievalB\x03\xE0A\x01\x12I\x0A\x0Dgoogle_search\x18\x07 \x01(\x0B2-.google.cloud.aiplatform.v1.Tool.GoogleSearchB\x03\xE0A\x01\x12W\x0A\x17google_search_retrieval\x18\x03 \x01(\x0B21.google.cloud.aiplatform.v1.GoogleSearchRetrievalB\x03\xE0A\x01\x12@\x0A\x0Bgoogle_maps\x18\x05 \x01(\x0B2&.google.cloud.aiplatform.v1.GoogleMapsB\x03\xE0A\x01\x12S\x0A\x15enterprise_web_search\x18\x06 \x01(\x0B2/.google.cloud.aiplatform.v1.EnterpriseWebSearchB\x03\xE0A\x01\x12K\x0A\x0Ecode_execution\x18\x04 \x01(\x0B2..google.cloud.aiplatform.v1.Tool.CodeExecutionB\x03\xE0A\x01\x12@\x0A\x0Burl_context\x18\x0A \x01(\x0B2&.google.cloud.aiplatform.v1.UrlContextB\x03\xE0A\x01\x12G\x0A\x0Ccomputer_use\x18\x0B \x01(\x0B2,.google.cloud.aiplatform.v1.Tool.ComputerUseB\x03\xE0A\x01\x1A\xA1\x01\x0A\x0CGoogleSearch\x12\x1C\x0A\x0Fexclude_domains\x18\x03 \x03(\x09B\x03\xE0A\x01\x12[\x0A\x13blocking_confidence\x18\x04 \x01(\x0E24.google.cloud.aiplatform.v1.Tool.PhishBlockThresholdB\x03\xE0A\x01H\x00\x88\x01\x01B\x16\x0A\x14_blocking_confidence\x1A\x0F\x0A\x0DCodeExecution\x1A\xD2\x01\x0A\x0BComputerUse\x12R\x0A\x0Benvironment\x18\x01 \x01(\x0E28.google.cloud.aiplatform.v1.Tool.ComputerUse.EnvironmentB\x03\xE0A\x02\x12*\x0A\x1Dexcluded_predefined_functions\x18\x02 \x03(\x09B\x03\xE0A\x01\"C\x0A\x0BEnvironment\x12\x1B\x0A\x17ENVIRONMENT_UNSPECIFIED\x10\x00\x12\x17\x0A\x13ENVIRONMENT_BROWSER\x10\x01\"\xE5\x01\x0A\x13PhishBlockThreshold\x12%\x0A!PHISH_BLOCK_THRESHOLD_UNSPECIFIED\x10\x00\x12\x17\x0A\x13BLOCK_LOW_AND_ABOVE\x10\x1E\x12\x1A\x0A\x16BLOCK_MEDIUM_AND_ABOVE\x10(\x12\x18\x0A\x14BLOCK_HIGH_AND_ABOVE\x102\x12\x1A\x0A\x16BLOCK_HIGHER_AND_ABOVE\x107\x12\x1D\x0A\x19BLOCK_VERY_HIGH_AND_ABOVE\x10<\x12\x1D\x0A\x19BLOCK_ONLY_EXTREMELY_HIGH\x10dJ\x04\x08\x08\x10\x09J\x04\x08\x09\x10\x0A\"\x0C\x0A\x0AUrlContext\"\xB2\x02\x0A\x13FunctionDeclaration\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Bdescription\x18\x02 \x01(\x09B\x03\xE0A\x01\x12;\x0A\x0Aparameters\x18\x03 \x01(\x0B2\".google.cloud.aiplatform.v1.SchemaB\x03\xE0A\x01\x12;\x0A\x16parameters_json_schema\x18\x05 \x01(\x0B2\x16.google.protobuf.ValueB\x03\xE0A\x01\x129\x0A\x08response\x18\x04 \x01(\x0B2\".google.cloud.aiplatform.v1.SchemaB\x03\xE0A\x01\x129\x0A\x14response_json_schema\x18\x06 \x01(\x0B2\x16.google.protobuf.ValueB\x03\xE0A\x01\"\xAC\x01\x0A\x0CFunctionCall\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x01\x12*\x0A\x04args\x18\x02 \x01(\x0B2\x17.google.protobuf.StructB\x03\xE0A\x01\x12A\x0A\x0Cpartial_args\x18\x04 \x03(\x0B2&.google.cloud.aiplatform.v1.PartialArgB\x03\xE0A\x01\x12\x1A\x0A\x0Dwill_continue\x18\x05 \x01(\x08B\x03\xE0A\x01\"\xD5\x01\x0A\x0APartialArg\x125\x0A\x0Anull_value\x18\x02 \x01(\x0E2\x1A.google.protobuf.NullValueB\x03\xE0A\x01H\x00\x12\x1B\x0A\x0Cnumber_value\x18\x03 \x01(\x01B\x03\xE0A\x01H\x00\x12\x1B\x0A\x0Cstring_value\x18\x04 \x01(\x09B\x03\xE0A\x01H\x00\x12\x19\x0A\x0Abool_value\x18\x05 \x01(\x08B\x03\xE0A\x01H\x00\x12\x16\x0A\x09json_path\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x1A\x0A\x0Dwill_continue\x18\x06 \x01(\x08B\x03\xE0A\x01B\x07\x0A\x05delta\"\xB2\x01\x0A\x14FunctionResponsePart\x12G\x0A\x0Binline_data\x18\x01 \x01(\x0B20.google.cloud.aiplatform.v1.FunctionResponseBlobH\x00\x12I\x0A\x09file_data\x18\x02 \x01(\x0B24.google.cloud.aiplatform.v1.FunctionResponseFileDataH\x00B\x06\x0A\x04data\"\\\x0A\x14FunctionResponseBlob\x12\x16\x0A\x09mime_type\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x11\x0A\x04data\x18\x02 \x01(\x0CB\x03\xE0A\x02\x12\x19\x0A\x0Cdisplay_name\x18\x04 \x01(\x09B\x03\xE0A\x01\"d\x0A\x18FunctionResponseFileData\x12\x16\x0A\x09mime_type\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x15\x0A\x08file_uri\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x19\x0A\x0Cdisplay_name\x18\x03 \x01(\x09B\x03\xE0A\x01\"\x9B\x01\x0A\x10FunctionResponse\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12.\x0A\x08response\x18\x02 \x01(\x0B2\x17.google.protobuf.StructB\x03\xE0A\x02\x12D\x0A\x05parts\x18\x04 \x03(\x0B20.google.cloud.aiplatform.v1.FunctionResponsePartB\x03\xE0A\x01\"\xA1\x01\x0A\x0EExecutableCode\x12J\x0A\x08language\x18\x01 \x01(\x0E23.google.cloud.aiplatform.v1.ExecutableCode.LanguageB\x03\xE0A\x02\x12\x11\x0A\x04code\x18\x02 \x01(\x09B\x03\xE0A\x02\"0\x0A\x08Language\x12\x18\x0A\x14LANGUAGE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06PYTHON\x10\x01\"\xE0\x01\x0A\x13CodeExecutionResult\x12M\x0A\x07outcome\x18\x01 \x01(\x0E27.google.cloud.aiplatform.v1.CodeExecutionResult.OutcomeB\x03\xE0A\x02\x12\x13\x0A\x06output\x18\x02 \x01(\x09B\x03\xE0A\x01\"e\x0A\x07Outcome\x12\x17\x0A\x13OUTCOME_UNSPECIFIED\x10\x00\x12\x0E\x0A\x0AOUTCOME_OK\x10\x01\x12\x12\x0A\x0EOUTCOME_FAILED\x10\x02\x12\x1D\x0A\x19OUTCOME_DEADLINE_EXCEEDED\x10\x03\"\xC9\x01\x0A\x09Retrieval\x12F\x0A\x10vertex_ai_search\x18\x02 \x01(\x0B2*.google.cloud.aiplatform.v1.VertexAISearchH\x00\x12F\x0A\x10vertex_rag_store\x18\x04 \x01(\x0B2*.google.cloud.aiplatform.v1.VertexRagStoreH\x00\x12\"\x0A\x13disable_attribution\x18\x03 \x01(\x08B\x05\x18\x01\xE0A\x01B\x08\x0A\x06source\"\xAA\x03\x0A\x0EVertexRagStore\x12R\x0A\x0Drag_resources\x18\x04 \x03(\x0B26.google.cloud.aiplatform.v1.VertexRagStore.RagResourceB\x03\xE0A\x01\x12\$\x0A\x10similarity_top_k\x18\x02 \x01(\x05B\x05\x18\x01\xE0A\x01H\x00\x88\x01\x01\x12-\x0A\x19vector_distance_threshold\x18\x03 \x01(\x01B\x05\x18\x01\xE0A\x01H\x01\x88\x01\x01\x12Q\x0A\x14rag_retrieval_config\x18\x06 \x01(\x0B2..google.cloud.aiplatform.v1.RagRetrievalConfigB\x03\xE0A\x01\x1Ai\x0A\x0BRagResource\x12?\x0A\x0Arag_corpus\x18\x01 \x01(\x09B+\xE0A\x01\xFAA%\x0A#aiplatform.googleapis.com/RagCorpus\x12\x19\x0A\x0Crag_file_ids\x18\x02 \x03(\x09B\x03\xE0A\x01B\x13\x0A\x11_similarity_top_kB\x1C\x0A\x1A_vector_distance_threshold\"\xFA\x01\x0A\x0EVertexAISearch\x12\x16\x0A\x09datastore\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06engine\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x18\x0A\x0Bmax_results\x18\x03 \x01(\x05B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\x12R\x0A\x10data_store_specs\x18\x05 \x03(\x0B28.google.cloud.aiplatform.v1.VertexAISearch.DataStoreSpec\x1A8\x0A\x0DDataStoreSpec\x12\x12\x0A\x0Adata_store\x18\x01 \x01(\x09\x12\x13\x0A\x06filter\x18\x02 \x01(\x09B\x03\xE0A\x01\"m\x0A\x15GoogleSearchRetrieval\x12T\x0A\x18dynamic_retrieval_config\x18\x02 \x01(\x0B22.google.cloud.aiplatform.v1.DynamicRetrievalConfig\"(\x0A\x0AGoogleMaps\x12\x1A\x0A\x0Denable_widget\x18\x01 \x01(\x08B\x03\xE0A\x01\"\xA8\x01\x0A\x13EnterpriseWebSearch\x12\x1C\x0A\x0Fexclude_domains\x18\x01 \x03(\x09B\x03\xE0A\x01\x12[\x0A\x13blocking_confidence\x18\x02 \x01(\x0E24.google.cloud.aiplatform.v1.Tool.PhishBlockThresholdB\x03\xE0A\x01H\x00\x88\x01\x01B\x16\x0A\x14_blocking_confidence\"\xCA\x01\x0A\x16DynamicRetrievalConfig\x12E\x0A\x04mode\x18\x01 \x01(\x0E27.google.cloud.aiplatform.v1.DynamicRetrievalConfig.Mode\x12#\x0A\x11dynamic_threshold\x18\x02 \x01(\x02B\x03\xE0A\x01H\x00\x88\x01\x01\".\x0A\x04Mode\x12\x14\x0A\x10MODE_UNSPECIFIED\x10\x00\x12\x10\x0A\x0CMODE_DYNAMIC\x10\x01B\x14\x0A\x12_dynamic_threshold\"\xB1\x01\x0A\x0AToolConfig\x12W\x0A\x17function_calling_config\x18\x01 \x01(\x0B21.google.cloud.aiplatform.v1.FunctionCallingConfigB\x03\xE0A\x01\x12J\x0A\x10retrieval_config\x18\x02 \x01(\x0B2+.google.cloud.aiplatform.v1.RetrievalConfigB\x03\xE0A\x01\"\x84\x02\x0A\x15FunctionCallingConfig\x12I\x0A\x04mode\x18\x01 \x01(\x0E26.google.cloud.aiplatform.v1.FunctionCallingConfig.ModeB\x03\xE0A\x01\x12#\x0A\x16allowed_function_names\x18\x02 \x03(\x09B\x03\xE0A\x01\x12+\x0A\x1Estream_function_call_arguments\x18\x04 \x01(\x08B\x03\xE0A\x01\"N\x0A\x04Mode\x12\x14\x0A\x10MODE_UNSPECIFIED\x10\x00\x12\x08\x0A\x04AUTO\x10\x01\x12\x07\x0A\x03ANY\x10\x02\x12\x08\x0A\x04NONE\x10\x03\x12\x0D\x0A\x09VALIDATED\x10\x05\"\x04\x08\x04\x10\x04\"v\x0A\x0FRetrievalConfig\x12)\x0A\x07lat_lng\x18\x01 \x01(\x0B2\x13.google.type.LatLngH\x00\x88\x01\x01\x12\x1A\x0A\x0Dlanguage_code\x18\x02 \x01(\x09H\x01\x88\x01\x01B\x0A\x0A\x08_lat_lngB\x10\x0A\x0E_language_code\"\xAA\x05\x0A\x12RagRetrievalConfig\x12\x12\x0A\x05top_k\x18\x01 \x01(\x05B\x03\xE0A\x01\x12J\x0A\x06filter\x18\x03 \x01(\x0B25.google.cloud.aiplatform.v1.RagRetrievalConfig.FilterB\x03\xE0A\x01\x12L\x0A\x07ranking\x18\x04 \x01(\x0B26.google.cloud.aiplatform.v1.RagRetrievalConfig.RankingB\x03\xE0A\x01\x1A\x93\x01\x0A\x06Filter\x12(\x0A\x19vector_distance_threshold\x18\x03 \x01(\x01B\x03\xE0A\x01H\x00\x12*\x0A\x1Bvector_similarity_threshold\x18\x04 \x01(\x01B\x03\xE0A\x01H\x00\x12\x1C\x0A\x0Fmetadata_filter\x18\x02 \x01(\x09B\x03\xE0A\x01B\x15\x0A\x13vector_db_threshold\x1A\xCF\x02\x0A\x07Ranking\x12_\x0A\x0Crank_service\x18\x01 \x01(\x0B2B.google.cloud.aiplatform.v1.RagRetrievalConfig.Ranking.RankServiceB\x03\xE0A\x01H\x00\x12[\x0A\x0Allm_ranker\x18\x03 \x01(\x0B2@.google.cloud.aiplatform.v1.RagRetrievalConfig.Ranking.LlmRankerB\x03\xE0A\x01H\x00\x1A:\x0A\x0BRankService\x12\x1C\x0A\x0Amodel_name\x18\x01 \x01(\x09B\x03\xE0A\x01H\x00\x88\x01\x01B\x0D\x0A\x0B_model_name\x1A8\x0A\x09LlmRanker\x12\x1C\x0A\x0Amodel_name\x18\x01 \x01(\x09B\x03\xE0A\x01H\x00\x88\x01\x01B\x0D\x0A\x0B_model_nameB\x10\x0A\x0Eranking_configB\xC7\x01\x0A\x1Ecom.google.cloud.aiplatform.v1B\x09ToolProtoP\x01Z>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb\xAA\x02\x1AGoogle.Cloud.AIPlatform.V1\xCA\x02\x1AGoogle\\Cloud\\AIPlatform\\V1\xEA\x02\x1DGoogle::Cloud::AIPlatform::V1b\x06proto3" + "\x0A\xC30\x0A%google/cloud/aiplatform/v1/tool.proto\x12\x1Agoogle.cloud.aiplatform.v1\x1A\x19google/api/resource.proto\x1A(google/cloud/aiplatform/v1/openapi.proto\x1A\x1Cgoogle/protobuf/struct.proto\x1A\x18google/type/latlng.proto\"\xDF\x0B\x0A\x04Tool\x12S\x0A\x15function_declarations\x18\x01 \x03(\x0B2/.google.cloud.aiplatform.v1.FunctionDeclarationB\x03\xE0A\x01\x12=\x0A\x09retrieval\x18\x02 \x01(\x0B2%.google.cloud.aiplatform.v1.RetrievalB\x03\xE0A\x01\x12I\x0A\x0Dgoogle_search\x18\x07 \x01(\x0B2-.google.cloud.aiplatform.v1.Tool.GoogleSearchB\x03\xE0A\x01\x12W\x0A\x17google_search_retrieval\x18\x03 \x01(\x0B21.google.cloud.aiplatform.v1.GoogleSearchRetrievalB\x03\xE0A\x01\x12@\x0A\x0Bgoogle_maps\x18\x05 \x01(\x0B2&.google.cloud.aiplatform.v1.GoogleMapsB\x03\xE0A\x01\x12S\x0A\x15enterprise_web_search\x18\x06 \x01(\x0B2/.google.cloud.aiplatform.v1.EnterpriseWebSearchB\x03\xE0A\x01\x12R\x0A\x12parallel_ai_search\x18\x0D \x01(\x0B21.google.cloud.aiplatform.v1.Tool.ParallelAiSearchB\x03\xE0A\x01\x12K\x0A\x0Ecode_execution\x18\x04 \x01(\x0B2..google.cloud.aiplatform.v1.Tool.CodeExecutionB\x03\xE0A\x01\x12@\x0A\x0Burl_context\x18\x0A \x01(\x0B2&.google.cloud.aiplatform.v1.UrlContextB\x03\xE0A\x01\x12G\x0A\x0Ccomputer_use\x18\x0B \x01(\x0B2,.google.cloud.aiplatform.v1.Tool.ComputerUseB\x03\xE0A\x01\x1A\xA1\x01\x0A\x0CGoogleSearch\x12\x1C\x0A\x0Fexclude_domains\x18\x03 \x03(\x09B\x03\xE0A\x01\x12[\x0A\x13blocking_confidence\x18\x04 \x01(\x0E24.google.cloud.aiplatform.v1.Tool.PhishBlockThresholdB\x03\xE0A\x01H\x00\x88\x01\x01B\x16\x0A\x14_blocking_confidence\x1A^\x0A\x10ParallelAiSearch\x12\x14\x0A\x07api_key\x18\x01 \x01(\x09B\x03\xE0A\x01\x124\x0A\x0Ecustom_configs\x18\x03 \x01(\x0B2\x17.google.protobuf.StructB\x03\xE0A\x01\x1A\x0F\x0A\x0DCodeExecution\x1A\xD2\x01\x0A\x0BComputerUse\x12R\x0A\x0Benvironment\x18\x01 \x01(\x0E28.google.cloud.aiplatform.v1.Tool.ComputerUse.EnvironmentB\x03\xE0A\x02\x12*\x0A\x1Dexcluded_predefined_functions\x18\x02 \x03(\x09B\x03\xE0A\x01\"C\x0A\x0BEnvironment\x12\x1B\x0A\x17ENVIRONMENT_UNSPECIFIED\x10\x00\x12\x17\x0A\x13ENVIRONMENT_BROWSER\x10\x01\"\xE5\x01\x0A\x13PhishBlockThreshold\x12%\x0A!PHISH_BLOCK_THRESHOLD_UNSPECIFIED\x10\x00\x12\x17\x0A\x13BLOCK_LOW_AND_ABOVE\x10\x1E\x12\x1A\x0A\x16BLOCK_MEDIUM_AND_ABOVE\x10(\x12\x18\x0A\x14BLOCK_HIGH_AND_ABOVE\x102\x12\x1A\x0A\x16BLOCK_HIGHER_AND_ABOVE\x107\x12\x1D\x0A\x19BLOCK_VERY_HIGH_AND_ABOVE\x10<\x12\x1D\x0A\x19BLOCK_ONLY_EXTREMELY_HIGH\x10dJ\x04\x08\x08\x10\x09J\x04\x08\x09\x10\x0A\"\x0C\x0A\x0AUrlContext\"\xB2\x02\x0A\x13FunctionDeclaration\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Bdescription\x18\x02 \x01(\x09B\x03\xE0A\x01\x12;\x0A\x0Aparameters\x18\x03 \x01(\x0B2\".google.cloud.aiplatform.v1.SchemaB\x03\xE0A\x01\x12;\x0A\x16parameters_json_schema\x18\x05 \x01(\x0B2\x16.google.protobuf.ValueB\x03\xE0A\x01\x129\x0A\x08response\x18\x04 \x01(\x0B2\".google.cloud.aiplatform.v1.SchemaB\x03\xE0A\x01\x129\x0A\x14response_json_schema\x18\x06 \x01(\x0B2\x16.google.protobuf.ValueB\x03\xE0A\x01\"\xAC\x01\x0A\x0CFunctionCall\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x01\x12*\x0A\x04args\x18\x02 \x01(\x0B2\x17.google.protobuf.StructB\x03\xE0A\x01\x12A\x0A\x0Cpartial_args\x18\x04 \x03(\x0B2&.google.cloud.aiplatform.v1.PartialArgB\x03\xE0A\x01\x12\x1A\x0A\x0Dwill_continue\x18\x05 \x01(\x08B\x03\xE0A\x01\"\xD5\x01\x0A\x0APartialArg\x125\x0A\x0Anull_value\x18\x02 \x01(\x0E2\x1A.google.protobuf.NullValueB\x03\xE0A\x01H\x00\x12\x1B\x0A\x0Cnumber_value\x18\x03 \x01(\x01B\x03\xE0A\x01H\x00\x12\x1B\x0A\x0Cstring_value\x18\x04 \x01(\x09B\x03\xE0A\x01H\x00\x12\x19\x0A\x0Abool_value\x18\x05 \x01(\x08B\x03\xE0A\x01H\x00\x12\x16\x0A\x09json_path\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x1A\x0A\x0Dwill_continue\x18\x06 \x01(\x08B\x03\xE0A\x01B\x07\x0A\x05delta\"\xB2\x01\x0A\x14FunctionResponsePart\x12G\x0A\x0Binline_data\x18\x01 \x01(\x0B20.google.cloud.aiplatform.v1.FunctionResponseBlobH\x00\x12I\x0A\x09file_data\x18\x02 \x01(\x0B24.google.cloud.aiplatform.v1.FunctionResponseFileDataH\x00B\x06\x0A\x04data\"\\\x0A\x14FunctionResponseBlob\x12\x16\x0A\x09mime_type\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x11\x0A\x04data\x18\x02 \x01(\x0CB\x03\xE0A\x02\x12\x19\x0A\x0Cdisplay_name\x18\x04 \x01(\x09B\x03\xE0A\x01\"d\x0A\x18FunctionResponseFileData\x12\x16\x0A\x09mime_type\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x15\x0A\x08file_uri\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x19\x0A\x0Cdisplay_name\x18\x03 \x01(\x09B\x03\xE0A\x01\"\x9B\x01\x0A\x10FunctionResponse\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12.\x0A\x08response\x18\x02 \x01(\x0B2\x17.google.protobuf.StructB\x03\xE0A\x02\x12D\x0A\x05parts\x18\x04 \x03(\x0B20.google.cloud.aiplatform.v1.FunctionResponsePartB\x03\xE0A\x01\"\xA1\x01\x0A\x0EExecutableCode\x12J\x0A\x08language\x18\x01 \x01(\x0E23.google.cloud.aiplatform.v1.ExecutableCode.LanguageB\x03\xE0A\x02\x12\x11\x0A\x04code\x18\x02 \x01(\x09B\x03\xE0A\x02\"0\x0A\x08Language\x12\x18\x0A\x14LANGUAGE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06PYTHON\x10\x01\"\xE0\x01\x0A\x13CodeExecutionResult\x12M\x0A\x07outcome\x18\x01 \x01(\x0E27.google.cloud.aiplatform.v1.CodeExecutionResult.OutcomeB\x03\xE0A\x02\x12\x13\x0A\x06output\x18\x02 \x01(\x09B\x03\xE0A\x01\"e\x0A\x07Outcome\x12\x17\x0A\x13OUTCOME_UNSPECIFIED\x10\x00\x12\x0E\x0A\x0AOUTCOME_OK\x10\x01\x12\x12\x0A\x0EOUTCOME_FAILED\x10\x02\x12\x1D\x0A\x19OUTCOME_DEADLINE_EXCEEDED\x10\x03\"\xC9\x01\x0A\x09Retrieval\x12F\x0A\x10vertex_ai_search\x18\x02 \x01(\x0B2*.google.cloud.aiplatform.v1.VertexAISearchH\x00\x12F\x0A\x10vertex_rag_store\x18\x04 \x01(\x0B2*.google.cloud.aiplatform.v1.VertexRagStoreH\x00\x12\"\x0A\x13disable_attribution\x18\x03 \x01(\x08B\x05\x18\x01\xE0A\x01B\x08\x0A\x06source\"\xAA\x03\x0A\x0EVertexRagStore\x12R\x0A\x0Drag_resources\x18\x04 \x03(\x0B26.google.cloud.aiplatform.v1.VertexRagStore.RagResourceB\x03\xE0A\x01\x12\$\x0A\x10similarity_top_k\x18\x02 \x01(\x05B\x05\x18\x01\xE0A\x01H\x00\x88\x01\x01\x12-\x0A\x19vector_distance_threshold\x18\x03 \x01(\x01B\x05\x18\x01\xE0A\x01H\x01\x88\x01\x01\x12Q\x0A\x14rag_retrieval_config\x18\x06 \x01(\x0B2..google.cloud.aiplatform.v1.RagRetrievalConfigB\x03\xE0A\x01\x1Ai\x0A\x0BRagResource\x12?\x0A\x0Arag_corpus\x18\x01 \x01(\x09B+\xE0A\x01\xFAA%\x0A#aiplatform.googleapis.com/RagCorpus\x12\x19\x0A\x0Crag_file_ids\x18\x02 \x03(\x09B\x03\xE0A\x01B\x13\x0A\x11_similarity_top_kB\x1C\x0A\x1A_vector_distance_threshold\"\xFA\x01\x0A\x0EVertexAISearch\x12\x16\x0A\x09datastore\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06engine\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x18\x0A\x0Bmax_results\x18\x03 \x01(\x05B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\x12R\x0A\x10data_store_specs\x18\x05 \x03(\x0B28.google.cloud.aiplatform.v1.VertexAISearch.DataStoreSpec\x1A8\x0A\x0DDataStoreSpec\x12\x12\x0A\x0Adata_store\x18\x01 \x01(\x09\x12\x13\x0A\x06filter\x18\x02 \x01(\x09B\x03\xE0A\x01\"m\x0A\x15GoogleSearchRetrieval\x12T\x0A\x18dynamic_retrieval_config\x18\x02 \x01(\x0B22.google.cloud.aiplatform.v1.DynamicRetrievalConfig\"(\x0A\x0AGoogleMaps\x12\x1A\x0A\x0Denable_widget\x18\x01 \x01(\x08B\x03\xE0A\x01\"\xA8\x01\x0A\x13EnterpriseWebSearch\x12\x1C\x0A\x0Fexclude_domains\x18\x01 \x03(\x09B\x03\xE0A\x01\x12[\x0A\x13blocking_confidence\x18\x02 \x01(\x0E24.google.cloud.aiplatform.v1.Tool.PhishBlockThresholdB\x03\xE0A\x01H\x00\x88\x01\x01B\x16\x0A\x14_blocking_confidence\"\xCA\x01\x0A\x16DynamicRetrievalConfig\x12E\x0A\x04mode\x18\x01 \x01(\x0E27.google.cloud.aiplatform.v1.DynamicRetrievalConfig.Mode\x12#\x0A\x11dynamic_threshold\x18\x02 \x01(\x02B\x03\xE0A\x01H\x00\x88\x01\x01\".\x0A\x04Mode\x12\x14\x0A\x10MODE_UNSPECIFIED\x10\x00\x12\x10\x0A\x0CMODE_DYNAMIC\x10\x01B\x14\x0A\x12_dynamic_threshold\"\xB1\x01\x0A\x0AToolConfig\x12W\x0A\x17function_calling_config\x18\x01 \x01(\x0B21.google.cloud.aiplatform.v1.FunctionCallingConfigB\x03\xE0A\x01\x12J\x0A\x10retrieval_config\x18\x02 \x01(\x0B2+.google.cloud.aiplatform.v1.RetrievalConfigB\x03\xE0A\x01\"\x84\x02\x0A\x15FunctionCallingConfig\x12I\x0A\x04mode\x18\x01 \x01(\x0E26.google.cloud.aiplatform.v1.FunctionCallingConfig.ModeB\x03\xE0A\x01\x12#\x0A\x16allowed_function_names\x18\x02 \x03(\x09B\x03\xE0A\x01\x12+\x0A\x1Estream_function_call_arguments\x18\x04 \x01(\x08B\x03\xE0A\x01\"N\x0A\x04Mode\x12\x14\x0A\x10MODE_UNSPECIFIED\x10\x00\x12\x08\x0A\x04AUTO\x10\x01\x12\x07\x0A\x03ANY\x10\x02\x12\x08\x0A\x04NONE\x10\x03\x12\x0D\x0A\x09VALIDATED\x10\x05\"\x04\x08\x04\x10\x04\"v\x0A\x0FRetrievalConfig\x12)\x0A\x07lat_lng\x18\x01 \x01(\x0B2\x13.google.type.LatLngH\x00\x88\x01\x01\x12\x1A\x0A\x0Dlanguage_code\x18\x02 \x01(\x09H\x01\x88\x01\x01B\x0A\x0A\x08_lat_lngB\x10\x0A\x0E_language_code\"\xAA\x05\x0A\x12RagRetrievalConfig\x12\x12\x0A\x05top_k\x18\x01 \x01(\x05B\x03\xE0A\x01\x12J\x0A\x06filter\x18\x03 \x01(\x0B25.google.cloud.aiplatform.v1.RagRetrievalConfig.FilterB\x03\xE0A\x01\x12L\x0A\x07ranking\x18\x04 \x01(\x0B26.google.cloud.aiplatform.v1.RagRetrievalConfig.RankingB\x03\xE0A\x01\x1A\x93\x01\x0A\x06Filter\x12(\x0A\x19vector_distance_threshold\x18\x03 \x01(\x01B\x03\xE0A\x01H\x00\x12*\x0A\x1Bvector_similarity_threshold\x18\x04 \x01(\x01B\x03\xE0A\x01H\x00\x12\x1C\x0A\x0Fmetadata_filter\x18\x02 \x01(\x09B\x03\xE0A\x01B\x15\x0A\x13vector_db_threshold\x1A\xCF\x02\x0A\x07Ranking\x12_\x0A\x0Crank_service\x18\x01 \x01(\x0B2B.google.cloud.aiplatform.v1.RagRetrievalConfig.Ranking.RankServiceB\x03\xE0A\x01H\x00\x12[\x0A\x0Allm_ranker\x18\x03 \x01(\x0B2@.google.cloud.aiplatform.v1.RagRetrievalConfig.Ranking.LlmRankerB\x03\xE0A\x01H\x00\x1A:\x0A\x0BRankService\x12\x1C\x0A\x0Amodel_name\x18\x01 \x01(\x09B\x03\xE0A\x01H\x00\x88\x01\x01B\x0D\x0A\x0B_model_name\x1A8\x0A\x09LlmRanker\x12\x1C\x0A\x0Amodel_name\x18\x01 \x01(\x09B\x03\xE0A\x01H\x00\x88\x01\x01B\x0D\x0A\x0B_model_nameB\x10\x0A\x0Eranking_configB\xC7\x01\x0A\x1Ecom.google.cloud.aiplatform.v1B\x09ToolProtoP\x01Z>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb\xAA\x02\x1AGoogle.Cloud.AIPlatform.V1\xCA\x02\x1AGoogle\\Cloud\\AIPlatform\\V1\xEA\x02\x1DGoogle::Cloud::AIPlatform::V1b\x06proto3" , true); static::$is_initialized = true; diff --git a/AiPlatform/src/V1/Tool.php b/AiPlatform/src/V1/Tool.php index ae25040d32e..d72ea366619 100644 --- a/AiPlatform/src/V1/Tool.php +++ b/AiPlatform/src/V1/Tool.php @@ -71,6 +71,14 @@ class Tool extends \Google\Protobuf\Internal\Message * Generated from protobuf field .google.cloud.aiplatform.v1.EnterpriseWebSearch enterprise_web_search = 6 [(.google.api.field_behavior) = OPTIONAL]; */ protected $enterprise_web_search = null; + /** + * Optional. If specified, Vertex AI will use Parallel.ai to search for + * information to answer user queries. The search results will be grounded on + * Parallel.ai and presented to the model for response generation + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Tool.ParallelAiSearch parallel_ai_search = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $parallel_ai_search = null; /** * Optional. CodeExecution tool type. * Enables the model to execute code as part of generation. @@ -126,6 +134,10 @@ class Tool extends \Google\Protobuf\Internal\Message * @type \Google\Cloud\AIPlatform\V1\EnterpriseWebSearch $enterprise_web_search * Optional. Tool to support searching public web data, powered by Vertex AI * Search and Sec4 compliance. + * @type \Google\Cloud\AIPlatform\V1\Tool\ParallelAiSearch $parallel_ai_search + * Optional. If specified, Vertex AI will use Parallel.ai to search for + * information to answer user queries. The search results will be grounded on + * Parallel.ai and presented to the model for response generation * @type \Google\Cloud\AIPlatform\V1\Tool\CodeExecution $code_execution * Optional. CodeExecution tool type. * Enables the model to execute code as part of generation. @@ -378,6 +390,46 @@ public function setEnterpriseWebSearch($var) return $this; } + /** + * Optional. If specified, Vertex AI will use Parallel.ai to search for + * information to answer user queries. The search results will be grounded on + * Parallel.ai and presented to the model for response generation + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Tool.ParallelAiSearch parallel_ai_search = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\AIPlatform\V1\Tool\ParallelAiSearch|null + */ + public function getParallelAiSearch() + { + return $this->parallel_ai_search; + } + + public function hasParallelAiSearch() + { + return isset($this->parallel_ai_search); + } + + public function clearParallelAiSearch() + { + unset($this->parallel_ai_search); + } + + /** + * Optional. If specified, Vertex AI will use Parallel.ai to search for + * information to answer user queries. The search results will be grounded on + * Parallel.ai and presented to the model for response generation + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Tool.ParallelAiSearch parallel_ai_search = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\AIPlatform\V1\Tool\ParallelAiSearch $var + * @return $this + */ + public function setParallelAiSearch($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\Tool\ParallelAiSearch::class); + $this->parallel_ai_search = $var; + + return $this; + } + /** * Optional. CodeExecution tool type. * Enables the model to execute code as part of generation. diff --git a/AiPlatform/src/V1/Tool/ParallelAiSearch.php b/AiPlatform/src/V1/Tool/ParallelAiSearch.php new file mode 100644 index 00000000000..a5d88bede87 --- /dev/null +++ b/AiPlatform/src/V1/Tool/ParallelAiSearch.php @@ -0,0 +1,192 @@ +google.cloud.aiplatform.v1.Tool.ParallelAiSearch + */ +class ParallelAiSearch extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The API key for ParallelAiSearch. + * If an API key is not provided, the system will attempt to verify access + * by checking for an active Parallel.ai subscription through the Google + * Cloud Marketplace. + * See https://docs.parallel.ai/search/search-quickstart for more details. + * + * Generated from protobuf field string api_key = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $api_key = ''; + /** + * Optional. Custom configs for ParallelAiSearch. + * This field can be used to pass any parameter from the Parallel.ai + * Search API. + * See the Parallel.ai documentation for the full list of available + * parameters and their usage: + * https://docs.parallel.ai/api-reference/search-beta/search + * Currently only `source_policy`, `excerpts`, `max_results`, `mode`, + * `fetch_policy` can be set via this field. For example: + * { + * "source_policy": { + * "include_domains": ["google.com", "wikipedia.org"], + * "exclude_domains": ["example.com"] + * }, + * "fetch_policy": { + * "max_age_seconds": 3600 + * } + * } + * + * Generated from protobuf field .google.protobuf.Struct custom_configs = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $custom_configs = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $api_key + * Optional. The API key for ParallelAiSearch. + * If an API key is not provided, the system will attempt to verify access + * by checking for an active Parallel.ai subscription through the Google + * Cloud Marketplace. + * See https://docs.parallel.ai/search/search-quickstart for more details. + * @type \Google\Protobuf\Struct $custom_configs + * Optional. Custom configs for ParallelAiSearch. + * This field can be used to pass any parameter from the Parallel.ai + * Search API. + * See the Parallel.ai documentation for the full list of available + * parameters and their usage: + * https://docs.parallel.ai/api-reference/search-beta/search + * Currently only `source_policy`, `excerpts`, `max_results`, `mode`, + * `fetch_policy` can be set via this field. For example: + * { + * "source_policy": { + * "include_domains": ["google.com", "wikipedia.org"], + * "exclude_domains": ["example.com"] + * }, + * "fetch_policy": { + * "max_age_seconds": 3600 + * } + * } + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\Tool::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The API key for ParallelAiSearch. + * If an API key is not provided, the system will attempt to verify access + * by checking for an active Parallel.ai subscription through the Google + * Cloud Marketplace. + * See https://docs.parallel.ai/search/search-quickstart for more details. + * + * Generated from protobuf field string api_key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getApiKey() + { + return $this->api_key; + } + + /** + * Optional. The API key for ParallelAiSearch. + * If an API key is not provided, the system will attempt to verify access + * by checking for an active Parallel.ai subscription through the Google + * Cloud Marketplace. + * See https://docs.parallel.ai/search/search-quickstart for more details. + * + * Generated from protobuf field string api_key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setApiKey($var) + { + GPBUtil::checkString($var, True); + $this->api_key = $var; + + return $this; + } + + /** + * Optional. Custom configs for ParallelAiSearch. + * This field can be used to pass any parameter from the Parallel.ai + * Search API. + * See the Parallel.ai documentation for the full list of available + * parameters and their usage: + * https://docs.parallel.ai/api-reference/search-beta/search + * Currently only `source_policy`, `excerpts`, `max_results`, `mode`, + * `fetch_policy` can be set via this field. For example: + * { + * "source_policy": { + * "include_domains": ["google.com", "wikipedia.org"], + * "exclude_domains": ["example.com"] + * }, + * "fetch_policy": { + * "max_age_seconds": 3600 + * } + * } + * + * Generated from protobuf field .google.protobuf.Struct custom_configs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Struct|null + */ + public function getCustomConfigs() + { + return $this->custom_configs; + } + + public function hasCustomConfigs() + { + return isset($this->custom_configs); + } + + public function clearCustomConfigs() + { + unset($this->custom_configs); + } + + /** + * Optional. Custom configs for ParallelAiSearch. + * This field can be used to pass any parameter from the Parallel.ai + * Search API. + * See the Parallel.ai documentation for the full list of available + * parameters and their usage: + * https://docs.parallel.ai/api-reference/search-beta/search + * Currently only `source_policy`, `excerpts`, `max_results`, `mode`, + * `fetch_policy` can be set via this field. For example: + * { + * "source_policy": { + * "include_domains": ["google.com", "wikipedia.org"], + * "exclude_domains": ["example.com"] + * }, + * "fetch_policy": { + * "max_age_seconds": 3600 + * } + * } + * + * Generated from protobuf field .google.protobuf.Struct custom_configs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\Struct $var + * @return $this + */ + public function setCustomConfigs($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); + $this->custom_configs = $var; + + return $this; + } + +} +