google-cloud-ai_platform-v1 1.28.0 → 1.29.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 +4 -4
- data/lib/google/cloud/ai_platform/v1/version.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/tool_pb.rb +4 -1
- data/lib/google/cloud/aiplatform/v1/tuning_job_pb.rb +2 -1
- data/proto_docs/google/cloud/aiplatform/v1/tool.rb +80 -0
- data/proto_docs/google/cloud/aiplatform/v1/tuning_job.rb +49 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f7cce86ce6fb543598675df8418a53b30a35e4fc4ea09761d4742f00cebec282
|
|
4
|
+
data.tar.gz: 27044f1eb2adf17f23fd95c54b24d17751ccf7087a30a8e5ab3dc47ee159eeff
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c0280d031660873137cda0ee4cb64a3172a2044adc3d3e5d80ece4d623d3392eba4240c50dedddbf482806d76dfe7dca5766e19ab1b623821c054094519c51d8
|
|
7
|
+
data.tar.gz: 49a2b62e48f8e908e2f5b5ba2d6ce08582f1086e95ad01936c65654b1f816c01e4b315426b5497d3575b3717fea4e870c13dfd37d6ce4ee5b49a968deb652cbc
|
|
@@ -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\"\x9f\n\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\x12@\n\x0bgoogle_maps\x18\x05 \x01(\x0b\x32&.google.cloud.aiplatform.v1.GoogleMapsB\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\x12@\n\x0burl_context\x18\x08 \x01(\x0b\x32&.google.cloud.aiplatform.v1.UrlContextB\x03\xe0\x41\x01\x12G\n\x0c\x63omputer_use\x18\x0b \x01(\x0b\x32,.google.cloud.aiplatform.v1.Tool.ComputerUseB\x03\xe0\x41\x01\x1a\xa1\x01\n\x0cGoogleSearch\x12\x1c\n\x0f\x65xclude_domains\x18\x03 \x03(\tB\x03\xe0\x41\x01\x12[\n\x13\x62locking_confidence\x18\x04 \x01(\x0e\x32\x34.google.cloud.aiplatform.v1.Tool.PhishBlockThresholdB\x03\xe0\x41\x01H\x00\x88\x01\x01\x42\x16\n\x14_blocking_confidence\x1a\x0f\n\rCodeExecution\x1a\xd2\x01\n\x0b\x43omputerUse\x12R\n\x0b\x65nvironment\x18\x01 \x01(\x0e\x32\x38.google.cloud.aiplatform.v1.Tool.ComputerUse.EnvironmentB\x03\xe0\x41\x02\x12*\n\x1d\x65xcluded_predefined_functions\x18\x02 \x03(\tB\x03\xe0\x41\x01\"C\n\x0b\x45nvironment\x12\x1b\n\x17\x45NVIRONMENT_UNSPECIFIED\x10\x00\x12\x17\n\x13\x45NVIRONMENT_BROWSER\x10\x01\"\xe5\x01\n\x13PhishBlockThreshold\x12%\n!PHISH_BLOCK_THRESHOLD_UNSPECIFIED\x10\x00\x12\x17\n\x13\x42LOCK_LOW_AND_ABOVE\x10\x1e\x12\x1a\n\x16\x42LOCK_MEDIUM_AND_ABOVE\x10(\x12\x18\n\x14\x42LOCK_HIGH_AND_ABOVE\x10\x32\x12\x1a\n\x16\x42LOCK_HIGHER_AND_ABOVE\x10\x37\x12\x1d\n\x19\x42LOCK_VERY_HIGH_AND_ABOVE\x10<\x12\x1d\n\x19\x42LOCK_ONLY_EXTREMELY_HIGH\x10\x64\"\x0c\n\nUrlContext\"\xb2\x02\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;\n\x16parameters_json_schema\x18\x05 \x01(\x0b\x32\x16.google.protobuf.ValueB\x03\xe0\x41\x01\x12\x39\n\x08response\x18\x04 \x01(\x0b\x32\".google.cloud.aiplatform.v1.SchemaB\x03\xe0\x41\x01\x12\x39\n\x14response_json_schema\x18\x06 \x01(\x0b\x32\x16.google.protobuf.ValueB\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\"\xb2\x01\n\x14\x46unctionResponsePart\x12G\n\x0binline_data\x18\x01 \x01(\x0b\x32\x30.google.cloud.aiplatform.v1.FunctionResponseBlobH\x00\x12I\n\tfile_data\x18\x02 \x01(\x0b\x32\x34.google.cloud.aiplatform.v1.FunctionResponseFileDataH\x00\x42\x06\n\x04\x64\x61ta\"\\\n\x14\x46unctionResponseBlob\x12\x16\n\tmime_type\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\x04\x64\x61ta\x18\x02 \x01(\x0c\x42\x03\xe0\x41\x02\x12\x19\n\x0c\x64isplay_name\x18\x04 \x01(\tB\x03\xe0\x41\x01\"d\n\x18\x46unctionResponseFileData\x12\x16\n\tmime_type\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08\x66ile_uri\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x0c\x64isplay_name\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x9b\x01\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\x12\x44\n\x05parts\x18\x04 \x03(\x0b\x32\x30.google.cloud.aiplatform.v1.FunctionResponsePartB\x03\xe0\x41\x01\"\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\"\xfa\x01\n\x0eVertexAISearch\x12\x16\n\tdatastore\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x65ngine\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0bmax_results\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12R\n\x10\x64\x61ta_store_specs\x18\x05 \x03(\x0b\x32\x38.google.cloud.aiplatform.v1.VertexAISearch.DataStoreSpec\x1a\x38\n\rDataStoreSpec\x12\x12\n\ndata_store\x18\x01 \x01(\t\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\"m\n\x15GoogleSearchRetrieval\x12T\n\x18\x64ynamic_retrieval_config\x18\x02 \x01(\x0b\x32\x32.google.cloud.aiplatform.v1.DynamicRetrievalConfig\"(\n\nGoogleMaps\x12\x1a\n\renable_widget\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\"\xa8\x01\n\x13\x45nterpriseWebSearch\x12\x1c\n\x0f\x65xclude_domains\x18\x01 \x03(\tB\x03\xe0\x41\x01\x12[\n\x13\x62locking_confidence\x18\x02 \x01(\x0e\x32\x34.google.cloud.aiplatform.v1.Tool.PhishBlockThresholdB\x03\xe0\x41\x01H\x00\x88\x01\x01\x42\x16\n\x14_blocking_confidence\"\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\"\xaa\x05\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\x12L\n\x07ranking\x18\x04 \x01(\x0b\x32\x36.google.cloud.aiplatform.v1.RagRetrievalConfig.RankingB\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_threshold\x1a\xcf\x02\n\x07Ranking\x12_\n\x0crank_service\x18\x01 \x01(\x0b\x32\x42.google.cloud.aiplatform.v1.RagRetrievalConfig.Ranking.RankServiceB\x03\xe0\x41\x01H\x00\x12[\n\nllm_ranker\x18\x03 \x01(\x0b\x32@.google.cloud.aiplatform.v1.RagRetrievalConfig.Ranking.LlmRankerB\x03\xe0\x41\x01H\x00\x1a:\n\x0bRankService\x12\x1c\n\nmodel_name\x18\x01 \x01(\tB\x03\xe0\x41\x01H\x00\x88\x01\x01\x42\r\n\x0b_model_name\x1a\x38\n\tLlmRanker\x12\x1c\n\nmodel_name\x18\x01 \x01(\tB\x03\xe0\x41\x01H\x00\x88\x01\x01\x42\r\n\x0b_model_nameB\x10\n\x0eranking_configB\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
|
|
|
@@ -53,6 +53,9 @@ module Google
|
|
|
53
53
|
UrlContext = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.UrlContext").msgclass
|
|
54
54
|
FunctionDeclaration = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.FunctionDeclaration").msgclass
|
|
55
55
|
FunctionCall = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.FunctionCall").msgclass
|
|
56
|
+
FunctionResponsePart = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.FunctionResponsePart").msgclass
|
|
57
|
+
FunctionResponseBlob = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.FunctionResponseBlob").msgclass
|
|
58
|
+
FunctionResponseFileData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.FunctionResponseFileData").msgclass
|
|
56
59
|
FunctionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.FunctionResponse").msgclass
|
|
57
60
|
ExecutableCode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ExecutableCode").msgclass
|
|
58
61
|
ExecutableCode::Language = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ExecutableCode.Language").enummodule
|
|
@@ -13,7 +13,7 @@ require 'google/protobuf/timestamp_pb'
|
|
|
13
13
|
require 'google/rpc/status_pb'
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
descriptor_data = "\n+google/cloud/aiplatform/v1/tuning_job.proto\x12\x1agoogle.cloud.aiplatform.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a(google/cloud/aiplatform/v1/content.proto\x1a\x30google/cloud/aiplatform/v1/encryption_spec.proto\x1a*google/cloud/aiplatform/v1/job_state.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\
|
|
16
|
+
descriptor_data = "\n+google/cloud/aiplatform/v1/tuning_job.proto\x12\x1agoogle.cloud.aiplatform.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a(google/cloud/aiplatform/v1/content.proto\x1a\x30google/cloud/aiplatform/v1/encryption_spec.proto\x1a*google/cloud/aiplatform/v1/job_state.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\x8d\t\n\tTuningJob\x12\x14\n\nbase_model\x18\x04 \x01(\tH\x00\x12\x44\n\x0fpre_tuned_model\x18\x1f \x01(\x0b\x32).google.cloud.aiplatform.v1.PreTunedModelH\x00\x12R\n\x16supervised_tuning_spec\x18\x05 \x01(\x0b\x32\x30.google.cloud.aiplatform.v1.SupervisedTuningSpecH\x01\x12\x14\n\x04name\x18\x01 \x01(\tB\x06\xe0\x41\x08\xe0\x41\x03\x12%\n\x18tuned_model_display_name\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x38\n\x05state\x18\x06 \x01(\x0e\x32$.google.cloud.aiplatform.v1.JobStateB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x33\n\nstart_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12&\n\x05\x65rror\x18\x0b \x01(\x0b\x32\x12.google.rpc.StatusB\x03\xe0\x41\x03\x12\x46\n\x06labels\x18\x0c \x03(\x0b\x32\x31.google.cloud.aiplatform.v1.TuningJob.LabelsEntryB\x03\xe0\x41\x01\x12=\n\nexperiment\x18\r \x01(\tB)\xe0\x41\x03\xfa\x41#\n!aiplatform.googleapis.com/Context\x12@\n\x0btuned_model\x18\x0e \x01(\x0b\x32&.google.cloud.aiplatform.v1.TunedModelB\x03\xe0\x41\x03\x12K\n\x11tuning_data_stats\x18\x0f \x01(\x0b\x32+.google.cloud.aiplatform.v1.TuningDataStatsB\x03\xe0\x41\x03\x12\x43\n\x0f\x65ncryption_spec\x18\x10 \x01(\x0b\x32*.google.cloud.aiplatform.v1.EncryptionSpec\x12\x17\n\x0fservice_account\x18\x16 \x01(\t\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\x80\x01\xea\x41}\n#aiplatform.googleapis.com/TuningJob\x12?projects/{project}/locations/{location}/tuningJobs/{tuning_job}*\ntuningJobs2\ttuningJobB\x0e\n\x0csource_modelB\r\n\x0btuning_spec\"\xce\x01\n\nTunedModel\x12\x36\n\x05model\x18\x01 \x01(\tB\'\xe0\x41\x03\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Model\x12<\n\x08\x65ndpoint\x18\x02 \x01(\tB*\xe0\x41\x03\xfa\x41$\n\"aiplatform.googleapis.com/Endpoint\x12J\n\x0b\x63heckpoints\x18\x03 \x03(\x0b\x32\x30.google.cloud.aiplatform.v1.TunedModelCheckpointB\x03\xe0\x41\x03\"\xf2\x02\n#SupervisedTuningDatasetDistribution\x12\x10\n\x03sum\x18\x01 \x01(\x03\x42\x03\xe0\x41\x03\x12\x19\n\x0c\x62illable_sum\x18\t \x01(\x03\x42\x03\xe0\x41\x03\x12\x10\n\x03min\x18\x02 \x01(\x01\x42\x03\xe0\x41\x03\x12\x10\n\x03max\x18\x03 \x01(\x01\x42\x03\xe0\x41\x03\x12\x11\n\x04mean\x18\x04 \x01(\x01\x42\x03\xe0\x41\x03\x12\x13\n\x06median\x18\x05 \x01(\x01\x42\x03\xe0\x41\x03\x12\x0f\n\x02p5\x18\x06 \x01(\x01\x42\x03\xe0\x41\x03\x12\x10\n\x03p95\x18\x07 \x01(\x01\x42\x03\xe0\x41\x03\x12\x63\n\x07\x62uckets\x18\x08 \x03(\x0b\x32M.google.cloud.aiplatform.v1.SupervisedTuningDatasetDistribution.DatasetBucketB\x03\xe0\x41\x03\x1aJ\n\rDatasetBucket\x12\x12\n\x05\x63ount\x18\x01 \x01(\x01\x42\x03\xe0\x41\x03\x12\x11\n\x04left\x18\x02 \x01(\x01\x42\x03\xe0\x41\x03\x12\x12\n\x05right\x18\x03 \x01(\x01\x42\x03\xe0\x41\x03\"\xfc\x05\n\x19SupervisedTuningDataStats\x12)\n\x1ctuning_dataset_example_count\x18\x01 \x01(\x03\x42\x03\xe0\x41\x03\x12)\n\x1ctotal_tuning_character_count\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12-\n\x1etotal_billable_character_count\x18\x03 \x01(\x03\x42\x05\x18\x01\xe0\x41\x03\x12\'\n\x1atotal_billable_token_count\x18\t \x01(\x03\x42\x03\xe0\x41\x03\x12\x1e\n\x11tuning_step_count\x18\x04 \x01(\x03\x42\x03\xe0\x41\x03\x12k\n\x1duser_input_token_distribution\x18\x05 \x01(\x0b\x32?.google.cloud.aiplatform.v1.SupervisedTuningDatasetDistributionB\x03\xe0\x41\x03\x12l\n\x1euser_output_token_distribution\x18\x06 \x01(\x0b\x32?.google.cloud.aiplatform.v1.SupervisedTuningDatasetDistributionB\x03\xe0\x41\x03\x12s\n%user_message_per_example_distribution\x18\x07 \x01(\x0b\x32?.google.cloud.aiplatform.v1.SupervisedTuningDatasetDistributionB\x03\xe0\x41\x03\x12G\n\x15user_dataset_examples\x18\x08 \x03(\x0b\x32#.google.cloud.aiplatform.v1.ContentB\x03\xe0\x41\x03\x12*\n\x1dtotal_truncated_example_count\x18\n \x01(\x03\x42\x03\xe0\x41\x03\x12&\n\x19truncated_example_indices\x18\x0b \x03(\x03\x42\x03\xe0\x41\x03\x12$\n\x17\x64ropped_example_reasons\x18\x0c \x03(\tB\x03\xe0\x41\x03\"\x85\x01\n\x0fTuningDataStats\x12]\n\x1csupervised_tuning_data_stats\x18\x01 \x01(\x0b\x32\x35.google.cloud.aiplatform.v1.SupervisedTuningDataStatsH\x00\x42\x13\n\x11tuning_data_stats\"\xfa\x02\n\x19SupervisedHyperParameters\x12\x18\n\x0b\x65poch_count\x18\x01 \x01(\x03\x42\x03\xe0\x41\x01\x12%\n\x18learning_rate_multiplier\x18\x02 \x01(\x01\x42\x03\xe0\x41\x01\x12\\\n\x0c\x61\x64\x61pter_size\x18\x03 \x01(\x0e\x32\x41.google.cloud.aiplatform.v1.SupervisedHyperParameters.AdapterSizeB\x03\xe0\x41\x01\"\xbd\x01\n\x0b\x41\x64\x61pterSize\x12\x1c\n\x18\x41\x44\x41PTER_SIZE_UNSPECIFIED\x10\x00\x12\x14\n\x10\x41\x44\x41PTER_SIZE_ONE\x10\x01\x12\x14\n\x10\x41\x44\x41PTER_SIZE_TWO\x10\x06\x12\x15\n\x11\x41\x44\x41PTER_SIZE_FOUR\x10\x02\x12\x16\n\x12\x41\x44\x41PTER_SIZE_EIGHT\x10\x03\x12\x18\n\x14\x41\x44\x41PTER_SIZE_SIXTEEN\x10\x04\x12\x1b\n\x17\x41\x44\x41PTER_SIZE_THIRTY_TWO\x10\x05\"\xde\x01\n\x14SupervisedTuningSpec\x12!\n\x14training_dataset_uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12#\n\x16validation_dataset_uri\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12T\n\x10hyper_parameters\x18\x03 \x01(\x0b\x32\x35.google.cloud.aiplatform.v1.SupervisedHyperParametersB\x03\xe0\x41\x01\x12(\n\x1b\x65xport_last_checkpoint_only\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01\"\xe3\x01\n\rTunedModelRef\x12;\n\x0btuned_model\x18\x01 \x01(\tB$\xfa\x41!\n\x1f\x61iplatform.googleapis.com/ModelH\x00\x12>\n\ntuning_job\x18\x02 \x01(\tB(\xfa\x41%\n#aiplatform.googleapis.com/TuningJobH\x00\x12\x42\n\x0cpipeline_job\x18\x03 \x01(\tB*\xfa\x41\'\n%aiplatform.googleapis.com/PipelineJobH\x00\x42\x11\n\x0ftuned_model_ref\"\\\n\x14TunedModelCheckpoint\x12\x15\n\rcheckpoint_id\x18\x01 \x01(\t\x12\r\n\x05\x65poch\x18\x02 \x01(\x03\x12\x0c\n\x04step\x18\x03 \x01(\x03\x12\x10\n\x08\x65ndpoint\x18\x04 \x01(\t\"\x84\x01\n\rPreTunedModel\x12>\n\x10tuned_model_name\x18\x01 \x01(\tB$\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Model\x12\x1a\n\rcheckpoint_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x17\n\nbase_model\x18\x03 \x01(\tB\x03\xe0\x41\x03\x42\xcc\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\x0eTuningJobProtoP\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"
|
|
17
17
|
|
|
18
18
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
19
19
|
|
|
@@ -58,6 +58,7 @@ module Google
|
|
|
58
58
|
SupervisedTuningSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.SupervisedTuningSpec").msgclass
|
|
59
59
|
TunedModelRef = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.TunedModelRef").msgclass
|
|
60
60
|
TunedModelCheckpoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.TunedModelCheckpoint").msgclass
|
|
61
|
+
PreTunedModel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.PreTunedModel").msgclass
|
|
61
62
|
end
|
|
62
63
|
end
|
|
63
64
|
end
|
|
@@ -107,6 +107,14 @@ module Google
|
|
|
107
107
|
# @!attribute [rw] environment
|
|
108
108
|
# @return [::Google::Cloud::AIPlatform::V1::Tool::ComputerUse::Environment]
|
|
109
109
|
# Required. The environment being operated.
|
|
110
|
+
# @!attribute [rw] excluded_predefined_functions
|
|
111
|
+
# @return [::Array<::String>]
|
|
112
|
+
# Optional. By default, [predefined
|
|
113
|
+
# functions](https://cloud.google.com/vertex-ai/generative-ai/docs/computer-use#supported-actions)
|
|
114
|
+
# are included in the final model call. Some of them can be explicitly
|
|
115
|
+
# excluded from being automatically included. This can serve two purposes:
|
|
116
|
+
# 1. Using a more restricted / different action space.
|
|
117
|
+
# 2. Improving the definitions / instructions of predefined functions.
|
|
110
118
|
class ComputerUse
|
|
111
119
|
include ::Google::Protobuf::MessageExts
|
|
112
120
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -238,6 +246,74 @@ module Google
|
|
|
238
246
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
239
247
|
end
|
|
240
248
|
|
|
249
|
+
# A datatype containing media that is part of a `FunctionResponse` message.
|
|
250
|
+
#
|
|
251
|
+
# A `FunctionResponsePart` consists of data which has an associated datatype. A
|
|
252
|
+
# `FunctionResponsePart` can only contain one of the accepted types in
|
|
253
|
+
# `FunctionResponsePart.data`.
|
|
254
|
+
#
|
|
255
|
+
# A `FunctionResponsePart` must have a fixed IANA MIME type identifying the
|
|
256
|
+
# type and subtype of the media if the `inline_data` field is filled with raw
|
|
257
|
+
# bytes.
|
|
258
|
+
# @!attribute [rw] inline_data
|
|
259
|
+
# @return [::Google::Cloud::AIPlatform::V1::FunctionResponseBlob]
|
|
260
|
+
# Inline media bytes.
|
|
261
|
+
#
|
|
262
|
+
# Note: The following fields are mutually exclusive: `inline_data`, `file_data`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
263
|
+
# @!attribute [rw] file_data
|
|
264
|
+
# @return [::Google::Cloud::AIPlatform::V1::FunctionResponseFileData]
|
|
265
|
+
# URI based data.
|
|
266
|
+
#
|
|
267
|
+
# Note: The following fields are mutually exclusive: `file_data`, `inline_data`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
268
|
+
class FunctionResponsePart
|
|
269
|
+
include ::Google::Protobuf::MessageExts
|
|
270
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
271
|
+
end
|
|
272
|
+
|
|
273
|
+
# Raw media bytes for function response.
|
|
274
|
+
#
|
|
275
|
+
# Text should not be sent as raw bytes, use the 'text' field.
|
|
276
|
+
# @!attribute [rw] mime_type
|
|
277
|
+
# @return [::String]
|
|
278
|
+
# Required. The IANA standard MIME type of the source data.
|
|
279
|
+
# @!attribute [rw] data
|
|
280
|
+
# @return [::String]
|
|
281
|
+
# Required. Raw bytes.
|
|
282
|
+
# @!attribute [rw] display_name
|
|
283
|
+
# @return [::String]
|
|
284
|
+
# Optional. Display name of the blob.
|
|
285
|
+
#
|
|
286
|
+
# Used to provide a label or filename to distinguish blobs.
|
|
287
|
+
#
|
|
288
|
+
# This field is only returned in PromptMessage for prompt management.
|
|
289
|
+
# It is currently used in the Gemini GenerateContent calls only when server
|
|
290
|
+
# side tools (code_execution, google_search, and url_context) are enabled.
|
|
291
|
+
class FunctionResponseBlob
|
|
292
|
+
include ::Google::Protobuf::MessageExts
|
|
293
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
294
|
+
end
|
|
295
|
+
|
|
296
|
+
# URI based data for function response.
|
|
297
|
+
# @!attribute [rw] mime_type
|
|
298
|
+
# @return [::String]
|
|
299
|
+
# Required. The IANA standard MIME type of the source data.
|
|
300
|
+
# @!attribute [rw] file_uri
|
|
301
|
+
# @return [::String]
|
|
302
|
+
# Required. URI.
|
|
303
|
+
# @!attribute [rw] display_name
|
|
304
|
+
# @return [::String]
|
|
305
|
+
# Optional. Display name of the file data.
|
|
306
|
+
#
|
|
307
|
+
# Used to provide a label or filename to distinguish file datas.
|
|
308
|
+
#
|
|
309
|
+
# This field is only returned in PromptMessage for prompt management.
|
|
310
|
+
# It is currently used in the Gemini GenerateContent calls only when server
|
|
311
|
+
# side tools (code_execution, google_search, and url_context) are enabled.
|
|
312
|
+
class FunctionResponseFileData
|
|
313
|
+
include ::Google::Protobuf::MessageExts
|
|
314
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
315
|
+
end
|
|
316
|
+
|
|
241
317
|
# The result output from a [FunctionCall] that contains a string representing
|
|
242
318
|
# the [FunctionDeclaration.name] and a structured JSON object containing any
|
|
243
319
|
# output from the function is used as context to the model. This should contain
|
|
@@ -252,6 +328,10 @@ module Google
|
|
|
252
328
|
# Use "output" key to specify function output and "error" key to specify
|
|
253
329
|
# error details (if any). If "output" and "error" keys are not specified,
|
|
254
330
|
# then whole "response" is treated as function output.
|
|
331
|
+
# @!attribute [rw] parts
|
|
332
|
+
# @return [::Array<::Google::Cloud::AIPlatform::V1::FunctionResponsePart>]
|
|
333
|
+
# Optional. Ordered `Parts` that constitute a function response. Parts may
|
|
334
|
+
# have different IANA MIME types.
|
|
255
335
|
class FunctionResponse
|
|
256
336
|
include ::Google::Protobuf::MessageExts
|
|
257
337
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -26,6 +26,13 @@ module Google
|
|
|
26
26
|
# @return [::String]
|
|
27
27
|
# The base model that is being tuned. See [Supported
|
|
28
28
|
# models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models).
|
|
29
|
+
#
|
|
30
|
+
# Note: The following fields are mutually exclusive: `base_model`, `pre_tuned_model`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
31
|
+
# @!attribute [rw] pre_tuned_model
|
|
32
|
+
# @return [::Google::Cloud::AIPlatform::V1::PreTunedModel]
|
|
33
|
+
# The pre-tuned model for continuous tuning.
|
|
34
|
+
#
|
|
35
|
+
# Note: The following fields are mutually exclusive: `pre_tuned_model`, `base_model`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
29
36
|
# @!attribute [rw] supervised_tuning_spec
|
|
30
37
|
# @return [::Google::Cloud::AIPlatform::V1::SupervisedTuningSpec]
|
|
31
38
|
# Tuning Spec for Supervised Fine Tuning.
|
|
@@ -37,7 +44,10 @@ module Google
|
|
|
37
44
|
# @return [::String]
|
|
38
45
|
# Optional. The display name of the
|
|
39
46
|
# {::Google::Cloud::AIPlatform::V1::Model TunedModel}. The name can be up to 128
|
|
40
|
-
# characters long and can consist of any UTF-8 characters.
|
|
47
|
+
# characters long and can consist of any UTF-8 characters. For continuous
|
|
48
|
+
# tuning, tuned_model_display_name will by default use the same display name
|
|
49
|
+
# as the pre-tuned model. If a new display name is provided, the tuning job
|
|
50
|
+
# will create a new model instead of a new version.
|
|
41
51
|
# @!attribute [rw] description
|
|
42
52
|
# @return [::String]
|
|
43
53
|
# Optional. The description of the
|
|
@@ -125,7 +135,18 @@ module Google
|
|
|
125
135
|
# @!attribute [r] model
|
|
126
136
|
# @return [::String]
|
|
127
137
|
# Output only. The resource name of the TunedModel. Format:
|
|
128
|
-
#
|
|
138
|
+
#
|
|
139
|
+
# `projects/{project}/locations/{location}/models/{model}@{version_id}`
|
|
140
|
+
#
|
|
141
|
+
# When tuning from a base model, the version ID will be 1.
|
|
142
|
+
#
|
|
143
|
+
# For continuous tuning, if the provided tuned_model_display_name is set and
|
|
144
|
+
# different from parent model's display name, the tuned model will have a new
|
|
145
|
+
# parent model with version 1. Otherwise the version id will be incremented
|
|
146
|
+
# by 1 from the last version ID in the parent model. E.g.,
|
|
147
|
+
#
|
|
148
|
+
# `projects/{project}/locations/{location}/models/{model}@{last_version_id +
|
|
149
|
+
# 1}`
|
|
129
150
|
# @!attribute [r] endpoint
|
|
130
151
|
# @return [::String]
|
|
131
152
|
# Output only. A resource name of an Endpoint. Format:
|
|
@@ -349,6 +370,32 @@ module Google
|
|
|
349
370
|
include ::Google::Protobuf::MessageExts
|
|
350
371
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
351
372
|
end
|
|
373
|
+
|
|
374
|
+
# A pre-tuned model for continuous tuning.
|
|
375
|
+
# @!attribute [rw] tuned_model_name
|
|
376
|
+
# @return [::String]
|
|
377
|
+
# The resource name of the Model.
|
|
378
|
+
# E.g., a model resource name with a specified version id or alias:
|
|
379
|
+
#
|
|
380
|
+
# `projects/{project}/locations/{location}/models/{model}@{version_id}`
|
|
381
|
+
#
|
|
382
|
+
# `projects/{project}/locations/{location}/models/{model}@{alias}`
|
|
383
|
+
#
|
|
384
|
+
# Or, omit the version id to use the default version:
|
|
385
|
+
#
|
|
386
|
+
# `projects/{project}/locations/{location}/models/{model}`
|
|
387
|
+
# @!attribute [rw] checkpoint_id
|
|
388
|
+
# @return [::String]
|
|
389
|
+
# Optional. The source checkpoint id. If not specified, the default
|
|
390
|
+
# checkpoint will be used.
|
|
391
|
+
# @!attribute [r] base_model
|
|
392
|
+
# @return [::String]
|
|
393
|
+
# Output only. The name of the base model this
|
|
394
|
+
# {::Google::Cloud::AIPlatform::V1::PreTunedModel PreTunedModel} was tuned from.
|
|
395
|
+
class PreTunedModel
|
|
396
|
+
include ::Google::Protobuf::MessageExts
|
|
397
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
398
|
+
end
|
|
352
399
|
end
|
|
353
400
|
end
|
|
354
401
|
end
|