google-cloud-ai_platform-v1 1.1.0 → 1.2.0
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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 21c226193f8d9341e1fc5abeb4cf9a1f96652e9b5b7968ca783ac4634e733b73
|
4
|
+
data.tar.gz: 737155edd2bdd219ffca0b5df05a0f09d70a2315ad61c6013e95f83b8a3f9c08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1479429e00fd570a255835ddd979e05f728269e5a964a2f7ac6c7c2906c4a6bff5c4d3b9876b1bb3c211116b879ff2ceed3d501b52a6279053367487ba3a8fa6
|
7
|
+
data.tar.gz: f473ec61164b9c150cb9f82ce059fc46117993603b7081fd4befb4359fb8e319ca10d16adf2123e5b9f0a6ffe6c984cd38e6695e2b6f306d2ba06d3430a1e425
|
@@ -11,7 +11,7 @@ require 'google/protobuf/struct_pb'
|
|
11
11
|
require 'google/type/latlng_pb'
|
12
12
|
|
13
13
|
|
14
|
-
descriptor_data = "\n%google/cloud/aiplatform/v1/tool.proto\x12\x1agoogle.cloud.aiplatform.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a(google/cloud/aiplatform/v1/openapi.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x18google/type/latlng.proto\"\
|
14
|
+
descriptor_data = "\n%google/cloud/aiplatform/v1/tool.proto\x12\x1agoogle.cloud.aiplatform.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a(google/cloud/aiplatform/v1/openapi.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x18google/type/latlng.proto\"\x81\x04\n\x04Tool\x12S\n\x15\x66unction_declarations\x18\x01 \x03(\x0b\x32/.google.cloud.aiplatform.v1.FunctionDeclarationB\x03\xe0\x41\x01\x12=\n\tretrieval\x18\x02 \x01(\x0b\x32%.google.cloud.aiplatform.v1.RetrievalB\x03\xe0\x41\x01\x12I\n\rgoogle_search\x18\x07 \x01(\x0b\x32-.google.cloud.aiplatform.v1.Tool.GoogleSearchB\x03\xe0\x41\x01\x12W\n\x17google_search_retrieval\x18\x03 \x01(\x0b\x32\x31.google.cloud.aiplatform.v1.GoogleSearchRetrievalB\x03\xe0\x41\x01\x12S\n\x15\x65nterprise_web_search\x18\x06 \x01(\x0b\x32/.google.cloud.aiplatform.v1.EnterpriseWebSearchB\x03\xe0\x41\x01\x12K\n\x0e\x63ode_execution\x18\x04 \x01(\x0b\x32..google.cloud.aiplatform.v1.Tool.CodeExecutionB\x03\xe0\x41\x01\x1a\x0e\n\x0cGoogleSearch\x1a\x0f\n\rCodeExecution\"\xba\x01\n\x13\x46unctionDeclaration\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12;\n\nparameters\x18\x03 \x01(\x0b\x32\".google.cloud.aiplatform.v1.SchemaB\x03\xe0\x41\x01\x12\x39\n\x08response\x18\x04 \x01(\x0b\x32\".google.cloud.aiplatform.v1.SchemaB\x03\xe0\x41\x01\"M\n\x0c\x46unctionCall\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12*\n\x04\x61rgs\x18\x02 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01\"U\n\x10\x46unctionResponse\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12.\n\x08response\x18\x02 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x02\"\xa1\x01\n\x0e\x45xecutableCode\x12J\n\x08language\x18\x01 \x01(\x0e\x32\x33.google.cloud.aiplatform.v1.ExecutableCode.LanguageB\x03\xe0\x41\x02\x12\x11\n\x04\x63ode\x18\x02 \x01(\tB\x03\xe0\x41\x02\"0\n\x08Language\x12\x18\n\x14LANGUAGE_UNSPECIFIED\x10\x00\x12\n\n\x06PYTHON\x10\x01\"\xe0\x01\n\x13\x43odeExecutionResult\x12M\n\x07outcome\x18\x01 \x01(\x0e\x32\x37.google.cloud.aiplatform.v1.CodeExecutionResult.OutcomeB\x03\xe0\x41\x02\x12\x13\n\x06output\x18\x02 \x01(\tB\x03\xe0\x41\x01\"e\n\x07Outcome\x12\x17\n\x13OUTCOME_UNSPECIFIED\x10\x00\x12\x0e\n\nOUTCOME_OK\x10\x01\x12\x12\n\x0eOUTCOME_FAILED\x10\x02\x12\x1d\n\x19OUTCOME_DEADLINE_EXCEEDED\x10\x03\"\xc9\x01\n\tRetrieval\x12\x46\n\x10vertex_ai_search\x18\x02 \x01(\x0b\x32*.google.cloud.aiplatform.v1.VertexAISearchH\x00\x12\x46\n\x10vertex_rag_store\x18\x04 \x01(\x0b\x32*.google.cloud.aiplatform.v1.VertexRagStoreH\x00\x12\"\n\x13\x64isable_attribution\x18\x03 \x01(\x08\x42\x05\x18\x01\xe0\x41\x01\x42\x08\n\x06source\"\xaa\x03\n\x0eVertexRagStore\x12R\n\rrag_resources\x18\x04 \x03(\x0b\x32\x36.google.cloud.aiplatform.v1.VertexRagStore.RagResourceB\x03\xe0\x41\x01\x12$\n\x10similarity_top_k\x18\x02 \x01(\x05\x42\x05\x18\x01\xe0\x41\x01H\x00\x88\x01\x01\x12-\n\x19vector_distance_threshold\x18\x03 \x01(\x01\x42\x05\x18\x01\xe0\x41\x01H\x01\x88\x01\x01\x12Q\n\x14rag_retrieval_config\x18\x06 \x01(\x0b\x32..google.cloud.aiplatform.v1.RagRetrievalConfigB\x03\xe0\x41\x01\x1ai\n\x0bRagResource\x12?\n\nrag_corpus\x18\x01 \x01(\tB+\xe0\x41\x01\xfa\x41%\n#aiplatform.googleapis.com/RagCorpus\x12\x19\n\x0crag_file_ids\x18\x02 \x03(\tB\x03\xe0\x41\x01\x42\x13\n\x11_similarity_top_kB\x1c\n\x1a_vector_distance_threshold\"(\n\x0eVertexAISearch\x12\x16\n\tdatastore\x18\x01 \x01(\tB\x03\xe0\x41\x02\"m\n\x15GoogleSearchRetrieval\x12T\n\x18\x64ynamic_retrieval_config\x18\x02 \x01(\x0b\x32\x32.google.cloud.aiplatform.v1.DynamicRetrievalConfig\"\x15\n\x13\x45nterpriseWebSearch\"\xca\x01\n\x16\x44ynamicRetrievalConfig\x12\x45\n\x04mode\x18\x01 \x01(\x0e\x32\x37.google.cloud.aiplatform.v1.DynamicRetrievalConfig.Mode\x12#\n\x11\x64ynamic_threshold\x18\x02 \x01(\x02\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\".\n\x04Mode\x12\x14\n\x10MODE_UNSPECIFIED\x10\x00\x12\x10\n\x0cMODE_DYNAMIC\x10\x01\x42\x14\n\x12_dynamic_threshold\"\xb1\x01\n\nToolConfig\x12W\n\x17\x66unction_calling_config\x18\x01 \x01(\x0b\x32\x31.google.cloud.aiplatform.v1.FunctionCallingConfigB\x03\xe0\x41\x01\x12J\n\x10retrieval_config\x18\x02 \x01(\x0b\x32+.google.cloud.aiplatform.v1.RetrievalConfigB\x03\xe0\x41\x01\"\xc2\x01\n\x15\x46unctionCallingConfig\x12I\n\x04mode\x18\x01 \x01(\x0e\x32\x36.google.cloud.aiplatform.v1.FunctionCallingConfig.ModeB\x03\xe0\x41\x01\x12#\n\x16\x61llowed_function_names\x18\x02 \x03(\tB\x03\xe0\x41\x01\"9\n\x04Mode\x12\x14\n\x10MODE_UNSPECIFIED\x10\x00\x12\x08\n\x04\x41UTO\x10\x01\x12\x07\n\x03\x41NY\x10\x02\x12\x08\n\x04NONE\x10\x03\"v\n\x0fRetrievalConfig\x12)\n\x07lat_lng\x18\x01 \x01(\x0b\x32\x13.google.type.LatLngH\x00\x88\x01\x01\x12\x1a\n\rlanguage_code\x18\x02 \x01(\tH\x01\x88\x01\x01\x42\n\n\x08_lat_lngB\x10\n\x0e_language_code\"\x8a\x02\n\x12RagRetrievalConfig\x12\x12\n\x05top_k\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\x12J\n\x06\x66ilter\x18\x03 \x01(\x0b\x32\x35.google.cloud.aiplatform.v1.RagRetrievalConfig.FilterB\x03\xe0\x41\x01\x1a\x93\x01\n\x06\x46ilter\x12(\n\x19vector_distance_threshold\x18\x03 \x01(\x01\x42\x03\xe0\x41\x01H\x00\x12*\n\x1bvector_similarity_threshold\x18\x04 \x01(\x01\x42\x03\xe0\x41\x01H\x00\x12\x1c\n\x0fmetadata_filter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x42\x15\n\x13vector_db_thresholdB\xc7\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\tToolProtoP\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"
|
15
15
|
|
16
16
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
17
17
|
|
@@ -45,6 +45,7 @@ module Google
|
|
45
45
|
module AIPlatform
|
46
46
|
module V1
|
47
47
|
Tool = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.Tool").msgclass
|
48
|
+
Tool::GoogleSearch = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.Tool.GoogleSearch").msgclass
|
48
49
|
Tool::CodeExecution = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.Tool.CodeExecution").msgclass
|
49
50
|
FunctionDeclaration = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.FunctionDeclaration").msgclass
|
50
51
|
FunctionCall = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.FunctionCall").msgclass
|
@@ -58,6 +59,7 @@ module Google
|
|
58
59
|
VertexRagStore::RagResource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.VertexRagStore.RagResource").msgclass
|
59
60
|
VertexAISearch = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.VertexAISearch").msgclass
|
60
61
|
GoogleSearchRetrieval = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.GoogleSearchRetrieval").msgclass
|
62
|
+
EnterpriseWebSearch = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.EnterpriseWebSearch").msgclass
|
61
63
|
DynamicRetrievalConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.DynamicRetrievalConfig").msgclass
|
62
64
|
DynamicRetrievalConfig::Mode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.DynamicRetrievalConfig.Mode").enummodule
|
63
65
|
ToolConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ToolConfig").msgclass
|
@@ -33,30 +33,45 @@ module Google
|
|
33
33
|
# Optional. Function tool type.
|
34
34
|
# One or more function declarations to be passed to the model along with the
|
35
35
|
# current user query. Model may decide to call a subset of these functions
|
36
|
-
# by populating
|
37
|
-
# User should provide a
|
38
|
-
#
|
39
|
-
#
|
40
|
-
#
|
36
|
+
# by populating {::Google::Cloud::AIPlatform::V1::Part#function_call FunctionCall}
|
37
|
+
# in the response. User should provide a
|
38
|
+
# {::Google::Cloud::AIPlatform::V1::Part#function_response FunctionResponse} for
|
39
|
+
# each function call in the next turn. Based on the function responses, Model
|
40
|
+
# will generate the final response back to the user. Maximum 128 function
|
41
|
+
# declarations can be provided.
|
41
42
|
# @!attribute [rw] retrieval
|
42
43
|
# @return [::Google::Cloud::AIPlatform::V1::Retrieval]
|
43
44
|
# Optional. Retrieval tool type.
|
44
45
|
# System will always execute the provided retrieval tool(s) to get external
|
45
46
|
# knowledge to answer the prompt. Retrieval results are presented to the
|
46
47
|
# model for generation.
|
48
|
+
# @!attribute [rw] google_search
|
49
|
+
# @return [::Google::Cloud::AIPlatform::V1::Tool::GoogleSearch]
|
50
|
+
# Optional. GoogleSearch tool type.
|
51
|
+
# Tool to support Google Search in Model. Powered by Google.
|
47
52
|
# @!attribute [rw] google_search_retrieval
|
48
53
|
# @return [::Google::Cloud::AIPlatform::V1::GoogleSearchRetrieval]
|
49
54
|
# Optional. GoogleSearchRetrieval tool type.
|
50
55
|
# Specialized retrieval tool that is powered by Google search.
|
56
|
+
# @!attribute [rw] enterprise_web_search
|
57
|
+
# @return [::Google::Cloud::AIPlatform::V1::EnterpriseWebSearch]
|
58
|
+
# Optional. Tool to support searching public web data, powered by Vertex AI
|
59
|
+
# Search and Sec4 compliance.
|
51
60
|
# @!attribute [rw] code_execution
|
52
61
|
# @return [::Google::Cloud::AIPlatform::V1::Tool::CodeExecution]
|
53
62
|
# Optional. CodeExecution tool type.
|
54
63
|
# Enables the model to execute code as part of generation.
|
55
|
-
# This field is only used by the Gemini Developer API services.
|
56
64
|
class Tool
|
57
65
|
include ::Google::Protobuf::MessageExts
|
58
66
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
59
67
|
|
68
|
+
# GoogleSearch tool type.
|
69
|
+
# Tool to support Google Search in Model. Powered by Google.
|
70
|
+
class GoogleSearch
|
71
|
+
include ::Google::Protobuf::MessageExts
|
72
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
73
|
+
end
|
74
|
+
|
60
75
|
# Tool that executes code generated by the model, and automatically returns
|
61
76
|
# the result to the model.
|
62
77
|
#
|
@@ -282,6 +297,13 @@ module Google
|
|
282
297
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
283
298
|
end
|
284
299
|
|
300
|
+
# Tool to search public web data, powered by Vertex AI Search and Sec4
|
301
|
+
# compliance.
|
302
|
+
class EnterpriseWebSearch
|
303
|
+
include ::Google::Protobuf::MessageExts
|
304
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
305
|
+
end
|
306
|
+
|
285
307
|
# Describes the options to customize dynamic retrieval.
|
286
308
|
# @!attribute [rw] mode
|
287
309
|
# @return [::Google::Cloud::AIPlatform::V1::DynamicRetrievalConfig::Mode]
|
@@ -334,17 +356,17 @@ module Google
|
|
334
356
|
# Unspecified function calling mode. This value should not be used.
|
335
357
|
MODE_UNSPECIFIED = 0
|
336
358
|
|
337
|
-
# Default model behavior, model decides to predict either
|
338
|
-
# or
|
359
|
+
# Default model behavior, model decides to predict either function calls
|
360
|
+
# or natural language response.
|
339
361
|
AUTO = 1
|
340
362
|
|
341
|
-
# Model is constrained to always predicting
|
342
|
-
# If "allowed_function_names" are set, the predicted function
|
363
|
+
# Model is constrained to always predicting function calls only.
|
364
|
+
# If "allowed_function_names" are set, the predicted function calls will be
|
343
365
|
# limited to any one of "allowed_function_names", else the predicted
|
344
|
-
# function
|
366
|
+
# function calls will be any one of the provided "function_declarations".
|
345
367
|
ANY = 2
|
346
368
|
|
347
|
-
# Model will not predict any function
|
369
|
+
# Model will not predict any function calls. Model behavior is same as when
|
348
370
|
# not passing any function declarations.
|
349
371
|
NONE = 3
|
350
372
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-ai_platform-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-
|
10
|
+
date: 2025-03-04 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: gapic-common
|
@@ -714,7 +714,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
714
714
|
- !ruby/object:Gem::Version
|
715
715
|
version: '0'
|
716
716
|
requirements: []
|
717
|
-
rubygems_version: 3.6.
|
717
|
+
rubygems_version: 3.6.5
|
718
718
|
specification_version: 4
|
719
719
|
summary: Train high-quality custom machine learning models with minimal machine learning
|
720
720
|
expertise and effort.
|