google-apis-aiplatform_v1 0.70.0 → 0.71.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/CHANGELOG.md +4 -0
- data/lib/google/apis/aiplatform_v1/classes.rb +439 -0
- data/lib/google/apis/aiplatform_v1/gem_version.rb +2 -2
- data/lib/google/apis/aiplatform_v1/representations.rb +215 -0
- data/lib/google/apis/aiplatform_v1/service.rb +17643 -8856
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bd130a5b601356848092ce8e0ed61baff26a01cae330ef39a19804b3a2d1e12d
|
|
4
|
+
data.tar.gz: 2d0b1c6657f567784026a801f759b7ae26fb1352f5afd5970996320557425237
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ced4e5117d4248a80b94385bb8ccca0f73101bc09b6474e5bdb989391000013d997385ba77632833e64c7fc92418809d64a247c6635c0bdb0ea07518c366ae68
|
|
7
|
+
data.tar.gz: 27cd9add33bcb00f8f3fb96574c15f31713dd9bfb41369d7bf42d9a0e13b89832bfc1f7ff17b00231c2c593600dcbf2c98ce5354c6ccb1b5d1e6ae474811e3aa
|
data/CHANGELOG.md
CHANGED
|
@@ -8612,6 +8612,11 @@ module Google
|
|
|
8612
8612
|
class GoogleCloudAiplatformV1EvaluationInstance
|
|
8613
8613
|
include Google::Apis::Core::Hashable
|
|
8614
8614
|
|
|
8615
|
+
# Contains data specific to agent evaluations.
|
|
8616
|
+
# Corresponds to the JSON property `agentData`
|
|
8617
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationInstanceAgentData]
|
|
8618
|
+
attr_accessor :agent_data
|
|
8619
|
+
|
|
8615
8620
|
# Instance data specified as a map.
|
|
8616
8621
|
# Corresponds to the JSON property `otherData`
|
|
8617
8622
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationInstanceMapInstance]
|
|
@@ -8645,6 +8650,7 @@ module Google
|
|
|
8645
8650
|
|
|
8646
8651
|
# Update properties of this object
|
|
8647
8652
|
def update!(**args)
|
|
8653
|
+
@agent_data = args[:agent_data] if args.key?(:agent_data)
|
|
8648
8654
|
@other_data = args[:other_data] if args.key?(:other_data)
|
|
8649
8655
|
@prompt = args[:prompt] if args.key?(:prompt)
|
|
8650
8656
|
@reference = args[:reference] if args.key?(:reference)
|
|
@@ -8653,6 +8659,150 @@ module Google
|
|
|
8653
8659
|
end
|
|
8654
8660
|
end
|
|
8655
8661
|
|
|
8662
|
+
# Configuration for an Agent.
|
|
8663
|
+
class GoogleCloudAiplatformV1EvaluationInstanceAgentConfig
|
|
8664
|
+
include Google::Apis::Core::Hashable
|
|
8665
|
+
|
|
8666
|
+
# Instance data used to populate placeholders in a metric prompt template.
|
|
8667
|
+
# Corresponds to the JSON property `developerInstruction`
|
|
8668
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationInstanceInstanceData]
|
|
8669
|
+
attr_accessor :developer_instruction
|
|
8670
|
+
|
|
8671
|
+
# Represents a list of tools for an agent.
|
|
8672
|
+
# Corresponds to the JSON property `tools`
|
|
8673
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationInstanceAgentConfigTools]
|
|
8674
|
+
attr_accessor :tools
|
|
8675
|
+
|
|
8676
|
+
# A JSON string containing a list of tools available to an agent with info such
|
|
8677
|
+
# as name, description, parameters and required parameters.
|
|
8678
|
+
# Corresponds to the JSON property `toolsText`
|
|
8679
|
+
# @return [String]
|
|
8680
|
+
attr_accessor :tools_text
|
|
8681
|
+
|
|
8682
|
+
def initialize(**args)
|
|
8683
|
+
update!(**args)
|
|
8684
|
+
end
|
|
8685
|
+
|
|
8686
|
+
# Update properties of this object
|
|
8687
|
+
def update!(**args)
|
|
8688
|
+
@developer_instruction = args[:developer_instruction] if args.key?(:developer_instruction)
|
|
8689
|
+
@tools = args[:tools] if args.key?(:tools)
|
|
8690
|
+
@tools_text = args[:tools_text] if args.key?(:tools_text)
|
|
8691
|
+
end
|
|
8692
|
+
end
|
|
8693
|
+
|
|
8694
|
+
# Represents a list of tools for an agent.
|
|
8695
|
+
class GoogleCloudAiplatformV1EvaluationInstanceAgentConfigTools
|
|
8696
|
+
include Google::Apis::Core::Hashable
|
|
8697
|
+
|
|
8698
|
+
# Optional. List of tools: each tool can have multiple function declarations.
|
|
8699
|
+
# Corresponds to the JSON property `tool`
|
|
8700
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Tool>]
|
|
8701
|
+
attr_accessor :tool
|
|
8702
|
+
|
|
8703
|
+
def initialize(**args)
|
|
8704
|
+
update!(**args)
|
|
8705
|
+
end
|
|
8706
|
+
|
|
8707
|
+
# Update properties of this object
|
|
8708
|
+
def update!(**args)
|
|
8709
|
+
@tool = args[:tool] if args.key?(:tool)
|
|
8710
|
+
end
|
|
8711
|
+
end
|
|
8712
|
+
|
|
8713
|
+
# Contains data specific to agent evaluations.
|
|
8714
|
+
class GoogleCloudAiplatformV1EvaluationInstanceAgentData
|
|
8715
|
+
include Google::Apis::Core::Hashable
|
|
8716
|
+
|
|
8717
|
+
# Configuration for an Agent.
|
|
8718
|
+
# Corresponds to the JSON property `agentConfig`
|
|
8719
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationInstanceAgentConfig]
|
|
8720
|
+
attr_accessor :agent_config
|
|
8721
|
+
|
|
8722
|
+
# Instance data used to populate placeholders in a metric prompt template.
|
|
8723
|
+
# Corresponds to the JSON property `developerInstruction`
|
|
8724
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationInstanceInstanceData]
|
|
8725
|
+
attr_accessor :developer_instruction
|
|
8726
|
+
|
|
8727
|
+
# Represents a list of events for an agent.
|
|
8728
|
+
# Corresponds to the JSON property `events`
|
|
8729
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationInstanceAgentDataEvents]
|
|
8730
|
+
attr_accessor :events
|
|
8731
|
+
|
|
8732
|
+
# A JSON string containing a sequence of events.
|
|
8733
|
+
# Corresponds to the JSON property `eventsText`
|
|
8734
|
+
# @return [String]
|
|
8735
|
+
attr_accessor :events_text
|
|
8736
|
+
|
|
8737
|
+
# Represents a list of tools for an agent.
|
|
8738
|
+
# Corresponds to the JSON property `tools`
|
|
8739
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationInstanceAgentDataTools]
|
|
8740
|
+
attr_accessor :tools
|
|
8741
|
+
|
|
8742
|
+
# A JSON string containing a list of tools available to an agent with info such
|
|
8743
|
+
# as name, description, parameters and required parameters. Example: [ ` "name":
|
|
8744
|
+
# "search_actors", "description": "Search for actors in a movie. Returns a list
|
|
8745
|
+
# of actors, their roles, their birthdate, and their place of birth.", "
|
|
8746
|
+
# parameters": [ ` "name": "movie_name", "description": "The name of the movie."
|
|
8747
|
+
# `, ` "name": "character_name", "description": "The name of the character." ` ],
|
|
8748
|
+
# "required": ["movie_name", "character_name"] ` ]
|
|
8749
|
+
# Corresponds to the JSON property `toolsText`
|
|
8750
|
+
# @return [String]
|
|
8751
|
+
attr_accessor :tools_text
|
|
8752
|
+
|
|
8753
|
+
def initialize(**args)
|
|
8754
|
+
update!(**args)
|
|
8755
|
+
end
|
|
8756
|
+
|
|
8757
|
+
# Update properties of this object
|
|
8758
|
+
def update!(**args)
|
|
8759
|
+
@agent_config = args[:agent_config] if args.key?(:agent_config)
|
|
8760
|
+
@developer_instruction = args[:developer_instruction] if args.key?(:developer_instruction)
|
|
8761
|
+
@events = args[:events] if args.key?(:events)
|
|
8762
|
+
@events_text = args[:events_text] if args.key?(:events_text)
|
|
8763
|
+
@tools = args[:tools] if args.key?(:tools)
|
|
8764
|
+
@tools_text = args[:tools_text] if args.key?(:tools_text)
|
|
8765
|
+
end
|
|
8766
|
+
end
|
|
8767
|
+
|
|
8768
|
+
# Represents a list of events for an agent.
|
|
8769
|
+
class GoogleCloudAiplatformV1EvaluationInstanceAgentDataEvents
|
|
8770
|
+
include Google::Apis::Core::Hashable
|
|
8771
|
+
|
|
8772
|
+
# Optional. A list of events.
|
|
8773
|
+
# Corresponds to the JSON property `event`
|
|
8774
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Content>]
|
|
8775
|
+
attr_accessor :event
|
|
8776
|
+
|
|
8777
|
+
def initialize(**args)
|
|
8778
|
+
update!(**args)
|
|
8779
|
+
end
|
|
8780
|
+
|
|
8781
|
+
# Update properties of this object
|
|
8782
|
+
def update!(**args)
|
|
8783
|
+
@event = args[:event] if args.key?(:event)
|
|
8784
|
+
end
|
|
8785
|
+
end
|
|
8786
|
+
|
|
8787
|
+
# Represents a list of tools for an agent.
|
|
8788
|
+
class GoogleCloudAiplatformV1EvaluationInstanceAgentDataTools
|
|
8789
|
+
include Google::Apis::Core::Hashable
|
|
8790
|
+
|
|
8791
|
+
# Optional. List of tools: each tool can have multiple function declarations.
|
|
8792
|
+
# Corresponds to the JSON property `tool`
|
|
8793
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Tool>]
|
|
8794
|
+
attr_accessor :tool
|
|
8795
|
+
|
|
8796
|
+
def initialize(**args)
|
|
8797
|
+
update!(**args)
|
|
8798
|
+
end
|
|
8799
|
+
|
|
8800
|
+
# Update properties of this object
|
|
8801
|
+
def update!(**args)
|
|
8802
|
+
@tool = args[:tool] if args.key?(:tool)
|
|
8803
|
+
end
|
|
8804
|
+
end
|
|
8805
|
+
|
|
8656
8806
|
# Instance data used to populate placeholders in a metric prompt template.
|
|
8657
8807
|
class GoogleCloudAiplatformV1EvaluationInstanceInstanceData
|
|
8658
8808
|
include Google::Apis::Core::Hashable
|
|
@@ -9308,6 +9458,11 @@ module Google
|
|
|
9308
9458
|
# @return [String]
|
|
9309
9459
|
attr_accessor :metric
|
|
9310
9460
|
|
|
9461
|
+
# The metric used for running evaluations.
|
|
9462
|
+
# Corresponds to the JSON property `metricConfig`
|
|
9463
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Metric]
|
|
9464
|
+
attr_accessor :metric_config
|
|
9465
|
+
|
|
9311
9466
|
# Specification for a pre-defined metric.
|
|
9312
9467
|
# Corresponds to the JSON property `predefinedMetricSpec`
|
|
9313
9468
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationRunMetricPredefinedMetricSpec]
|
|
@@ -9326,6 +9481,7 @@ module Google
|
|
|
9326
9481
|
def update!(**args)
|
|
9327
9482
|
@llm_based_metric_spec = args[:llm_based_metric_spec] if args.key?(:llm_based_metric_spec)
|
|
9328
9483
|
@metric = args[:metric] if args.key?(:metric)
|
|
9484
|
+
@metric_config = args[:metric_config] if args.key?(:metric_config)
|
|
9329
9485
|
@predefined_metric_spec = args[:predefined_metric_spec] if args.key?(:predefined_metric_spec)
|
|
9330
9486
|
@rubric_based_metric_spec = args[:rubric_based_metric_spec] if args.key?(:rubric_based_metric_spec)
|
|
9331
9487
|
end
|
|
@@ -13978,6 +14134,12 @@ module Google
|
|
|
13978
14134
|
# @return [String]
|
|
13979
14135
|
attr_accessor :name
|
|
13980
14136
|
|
|
14137
|
+
# Optional. Ordered `Parts` that constitute a function response. Parts may have
|
|
14138
|
+
# different IANA MIME types.
|
|
14139
|
+
# Corresponds to the JSON property `parts`
|
|
14140
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FunctionResponsePart>]
|
|
14141
|
+
attr_accessor :parts
|
|
14142
|
+
|
|
13981
14143
|
# Required. The function response in JSON object format. Use "output" key to
|
|
13982
14144
|
# specify function output and "error" key to specify error details (if any). If "
|
|
13983
14145
|
# output" and "error" keys are not specified, then whole "response" is treated
|
|
@@ -13993,10 +14155,113 @@ module Google
|
|
|
13993
14155
|
# Update properties of this object
|
|
13994
14156
|
def update!(**args)
|
|
13995
14157
|
@name = args[:name] if args.key?(:name)
|
|
14158
|
+
@parts = args[:parts] if args.key?(:parts)
|
|
13996
14159
|
@response = args[:response] if args.key?(:response)
|
|
13997
14160
|
end
|
|
13998
14161
|
end
|
|
13999
14162
|
|
|
14163
|
+
# Raw media bytes for function response. Text should not be sent as raw bytes,
|
|
14164
|
+
# use the 'text' field.
|
|
14165
|
+
class GoogleCloudAiplatformV1FunctionResponseBlob
|
|
14166
|
+
include Google::Apis::Core::Hashable
|
|
14167
|
+
|
|
14168
|
+
# Required. Raw bytes.
|
|
14169
|
+
# Corresponds to the JSON property `data`
|
|
14170
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
14171
|
+
# @return [String]
|
|
14172
|
+
attr_accessor :data
|
|
14173
|
+
|
|
14174
|
+
# Optional. Display name of the blob. Used to provide a label or filename to
|
|
14175
|
+
# distinguish blobs. This field is only returned in PromptMessage for prompt
|
|
14176
|
+
# management. It is currently used in the Gemini GenerateContent calls only when
|
|
14177
|
+
# server side tools (code_execution, google_search, and url_context) are enabled.
|
|
14178
|
+
# Corresponds to the JSON property `displayName`
|
|
14179
|
+
# @return [String]
|
|
14180
|
+
attr_accessor :display_name
|
|
14181
|
+
|
|
14182
|
+
# Required. The IANA standard MIME type of the source data.
|
|
14183
|
+
# Corresponds to the JSON property `mimeType`
|
|
14184
|
+
# @return [String]
|
|
14185
|
+
attr_accessor :mime_type
|
|
14186
|
+
|
|
14187
|
+
def initialize(**args)
|
|
14188
|
+
update!(**args)
|
|
14189
|
+
end
|
|
14190
|
+
|
|
14191
|
+
# Update properties of this object
|
|
14192
|
+
def update!(**args)
|
|
14193
|
+
@data = args[:data] if args.key?(:data)
|
|
14194
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
|
14195
|
+
@mime_type = args[:mime_type] if args.key?(:mime_type)
|
|
14196
|
+
end
|
|
14197
|
+
end
|
|
14198
|
+
|
|
14199
|
+
# URI based data for function response.
|
|
14200
|
+
class GoogleCloudAiplatformV1FunctionResponseFileData
|
|
14201
|
+
include Google::Apis::Core::Hashable
|
|
14202
|
+
|
|
14203
|
+
# Optional. Display name of the file data. Used to provide a label or filename
|
|
14204
|
+
# to distinguish file datas. This field is only returned in PromptMessage for
|
|
14205
|
+
# prompt management. It is currently used in the Gemini GenerateContent calls
|
|
14206
|
+
# only when server side tools (code_execution, google_search, and url_context)
|
|
14207
|
+
# are enabled.
|
|
14208
|
+
# Corresponds to the JSON property `displayName`
|
|
14209
|
+
# @return [String]
|
|
14210
|
+
attr_accessor :display_name
|
|
14211
|
+
|
|
14212
|
+
# Required. URI.
|
|
14213
|
+
# Corresponds to the JSON property `fileUri`
|
|
14214
|
+
# @return [String]
|
|
14215
|
+
attr_accessor :file_uri
|
|
14216
|
+
|
|
14217
|
+
# Required. The IANA standard MIME type of the source data.
|
|
14218
|
+
# Corresponds to the JSON property `mimeType`
|
|
14219
|
+
# @return [String]
|
|
14220
|
+
attr_accessor :mime_type
|
|
14221
|
+
|
|
14222
|
+
def initialize(**args)
|
|
14223
|
+
update!(**args)
|
|
14224
|
+
end
|
|
14225
|
+
|
|
14226
|
+
# Update properties of this object
|
|
14227
|
+
def update!(**args)
|
|
14228
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
|
14229
|
+
@file_uri = args[:file_uri] if args.key?(:file_uri)
|
|
14230
|
+
@mime_type = args[:mime_type] if args.key?(:mime_type)
|
|
14231
|
+
end
|
|
14232
|
+
end
|
|
14233
|
+
|
|
14234
|
+
# A datatype containing media that is part of a `FunctionResponse` message. A `
|
|
14235
|
+
# FunctionResponsePart` consists of data which has an associated datatype. A `
|
|
14236
|
+
# FunctionResponsePart` can only contain one of the accepted types in `
|
|
14237
|
+
# FunctionResponsePart.data`. A `FunctionResponsePart` must have a fixed IANA
|
|
14238
|
+
# MIME type identifying the type and subtype of the media if the `inline_data`
|
|
14239
|
+
# field is filled with raw bytes.
|
|
14240
|
+
class GoogleCloudAiplatformV1FunctionResponsePart
|
|
14241
|
+
include Google::Apis::Core::Hashable
|
|
14242
|
+
|
|
14243
|
+
# URI based data for function response.
|
|
14244
|
+
# Corresponds to the JSON property `fileData`
|
|
14245
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FunctionResponseFileData]
|
|
14246
|
+
attr_accessor :file_data
|
|
14247
|
+
|
|
14248
|
+
# Raw media bytes for function response. Text should not be sent as raw bytes,
|
|
14249
|
+
# use the 'text' field.
|
|
14250
|
+
# Corresponds to the JSON property `inlineData`
|
|
14251
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FunctionResponseBlob]
|
|
14252
|
+
attr_accessor :inline_data
|
|
14253
|
+
|
|
14254
|
+
def initialize(**args)
|
|
14255
|
+
update!(**args)
|
|
14256
|
+
end
|
|
14257
|
+
|
|
14258
|
+
# Update properties of this object
|
|
14259
|
+
def update!(**args)
|
|
14260
|
+
@file_data = args[:file_data] if args.key?(:file_data)
|
|
14261
|
+
@inline_data = args[:inline_data] if args.key?(:inline_data)
|
|
14262
|
+
end
|
|
14263
|
+
end
|
|
14264
|
+
|
|
14000
14265
|
# The Google Cloud Storage location where the output is to be written to.
|
|
14001
14266
|
class GoogleCloudAiplatformV1GcsDestination
|
|
14002
14267
|
include Google::Apis::Core::Hashable
|
|
@@ -14404,6 +14669,11 @@ module Google
|
|
|
14404
14669
|
class GoogleCloudAiplatformV1GenerateInstanceRubricsRequest
|
|
14405
14670
|
include Google::Apis::Core::Hashable
|
|
14406
14671
|
|
|
14672
|
+
# Configuration for an Agent.
|
|
14673
|
+
# Corresponds to the JSON property `agentConfig`
|
|
14674
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationInstanceAgentConfig]
|
|
14675
|
+
attr_accessor :agent_config
|
|
14676
|
+
|
|
14407
14677
|
# Required. The prompt to generate rubrics from. For single-turn queries, this
|
|
14408
14678
|
# is a single instance. For multi-turn queries, this is a repeated field that
|
|
14409
14679
|
# contains conversation history + latest request.
|
|
@@ -14427,6 +14697,7 @@ module Google
|
|
|
14427
14697
|
|
|
14428
14698
|
# Update properties of this object
|
|
14429
14699
|
def update!(**args)
|
|
14700
|
+
@agent_config = args[:agent_config] if args.key?(:agent_config)
|
|
14430
14701
|
@contents = args[:contents] if args.key?(:contents)
|
|
14431
14702
|
@predefined_rubric_generation_spec = args[:predefined_rubric_generation_spec] if args.key?(:predefined_rubric_generation_spec)
|
|
14432
14703
|
@rubric_generation_spec = args[:rubric_generation_spec] if args.key?(:rubric_generation_spec)
|
|
@@ -15573,6 +15844,16 @@ module Google
|
|
|
15573
15844
|
# @return [String]
|
|
15574
15845
|
attr_accessor :aspect_ratio
|
|
15575
15846
|
|
|
15847
|
+
# The image output format for generated images.
|
|
15848
|
+
# Corresponds to the JSON property `imageOutputOptions`
|
|
15849
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ImageConfigImageOutputOptions]
|
|
15850
|
+
attr_accessor :image_output_options
|
|
15851
|
+
|
|
15852
|
+
# Optional. Controls whether the model can generate people.
|
|
15853
|
+
# Corresponds to the JSON property `personGeneration`
|
|
15854
|
+
# @return [String]
|
|
15855
|
+
attr_accessor :person_generation
|
|
15856
|
+
|
|
15576
15857
|
def initialize(**args)
|
|
15577
15858
|
update!(**args)
|
|
15578
15859
|
end
|
|
@@ -15580,6 +15861,33 @@ module Google
|
|
|
15580
15861
|
# Update properties of this object
|
|
15581
15862
|
def update!(**args)
|
|
15582
15863
|
@aspect_ratio = args[:aspect_ratio] if args.key?(:aspect_ratio)
|
|
15864
|
+
@image_output_options = args[:image_output_options] if args.key?(:image_output_options)
|
|
15865
|
+
@person_generation = args[:person_generation] if args.key?(:person_generation)
|
|
15866
|
+
end
|
|
15867
|
+
end
|
|
15868
|
+
|
|
15869
|
+
# The image output format for generated images.
|
|
15870
|
+
class GoogleCloudAiplatformV1ImageConfigImageOutputOptions
|
|
15871
|
+
include Google::Apis::Core::Hashable
|
|
15872
|
+
|
|
15873
|
+
# Optional. The compression quality of the output image.
|
|
15874
|
+
# Corresponds to the JSON property `compressionQuality`
|
|
15875
|
+
# @return [Fixnum]
|
|
15876
|
+
attr_accessor :compression_quality
|
|
15877
|
+
|
|
15878
|
+
# Optional. The image format that the output should be saved as.
|
|
15879
|
+
# Corresponds to the JSON property `mimeType`
|
|
15880
|
+
# @return [String]
|
|
15881
|
+
attr_accessor :mime_type
|
|
15882
|
+
|
|
15883
|
+
def initialize(**args)
|
|
15884
|
+
update!(**args)
|
|
15885
|
+
end
|
|
15886
|
+
|
|
15887
|
+
# Update properties of this object
|
|
15888
|
+
def update!(**args)
|
|
15889
|
+
@compression_quality = args[:compression_quality] if args.key?(:compression_quality)
|
|
15890
|
+
@mime_type = args[:mime_type] if args.key?(:mime_type)
|
|
15583
15891
|
end
|
|
15584
15892
|
end
|
|
15585
15893
|
|
|
@@ -28289,6 +28597,11 @@ module Google
|
|
|
28289
28597
|
# @return [String]
|
|
28290
28598
|
attr_accessor :service_account
|
|
28291
28599
|
|
|
28600
|
+
# Specification for deploying from source code.
|
|
28601
|
+
# Corresponds to the JSON property `sourceCodeSpec`
|
|
28602
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpec]
|
|
28603
|
+
attr_accessor :source_code_spec
|
|
28604
|
+
|
|
28292
28605
|
def initialize(**args)
|
|
28293
28606
|
update!(**args)
|
|
28294
28607
|
end
|
|
@@ -28300,6 +28613,7 @@ module Google
|
|
|
28300
28613
|
@deployment_spec = args[:deployment_spec] if args.key?(:deployment_spec)
|
|
28301
28614
|
@package_spec = args[:package_spec] if args.key?(:package_spec)
|
|
28302
28615
|
@service_account = args[:service_account] if args.key?(:service_account)
|
|
28616
|
+
@source_code_spec = args[:source_code_spec] if args.key?(:source_code_spec)
|
|
28303
28617
|
end
|
|
28304
28618
|
end
|
|
28305
28619
|
|
|
@@ -28411,6 +28725,95 @@ module Google
|
|
|
28411
28725
|
end
|
|
28412
28726
|
end
|
|
28413
28727
|
|
|
28728
|
+
# Specification for deploying from source code.
|
|
28729
|
+
class GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpec
|
|
28730
|
+
include Google::Apis::Core::Hashable
|
|
28731
|
+
|
|
28732
|
+
# Specifies source code provided as a byte stream.
|
|
28733
|
+
# Corresponds to the JSON property `inlineSource`
|
|
28734
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpecInlineSource]
|
|
28735
|
+
attr_accessor :inline_source
|
|
28736
|
+
|
|
28737
|
+
# Specification for running a Python application from source.
|
|
28738
|
+
# Corresponds to the JSON property `pythonSpec`
|
|
28739
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpecPythonSpec]
|
|
28740
|
+
attr_accessor :python_spec
|
|
28741
|
+
|
|
28742
|
+
def initialize(**args)
|
|
28743
|
+
update!(**args)
|
|
28744
|
+
end
|
|
28745
|
+
|
|
28746
|
+
# Update properties of this object
|
|
28747
|
+
def update!(**args)
|
|
28748
|
+
@inline_source = args[:inline_source] if args.key?(:inline_source)
|
|
28749
|
+
@python_spec = args[:python_spec] if args.key?(:python_spec)
|
|
28750
|
+
end
|
|
28751
|
+
end
|
|
28752
|
+
|
|
28753
|
+
# Specifies source code provided as a byte stream.
|
|
28754
|
+
class GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpecInlineSource
|
|
28755
|
+
include Google::Apis::Core::Hashable
|
|
28756
|
+
|
|
28757
|
+
# Required. Input only. The application source code archive, provided as a
|
|
28758
|
+
# compressed tarball (.tar.gz) file.
|
|
28759
|
+
# Corresponds to the JSON property `sourceArchive`
|
|
28760
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
28761
|
+
# @return [String]
|
|
28762
|
+
attr_accessor :source_archive
|
|
28763
|
+
|
|
28764
|
+
def initialize(**args)
|
|
28765
|
+
update!(**args)
|
|
28766
|
+
end
|
|
28767
|
+
|
|
28768
|
+
# Update properties of this object
|
|
28769
|
+
def update!(**args)
|
|
28770
|
+
@source_archive = args[:source_archive] if args.key?(:source_archive)
|
|
28771
|
+
end
|
|
28772
|
+
end
|
|
28773
|
+
|
|
28774
|
+
# Specification for running a Python application from source.
|
|
28775
|
+
class GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpecPythonSpec
|
|
28776
|
+
include Google::Apis::Core::Hashable
|
|
28777
|
+
|
|
28778
|
+
# Optional. The Python module to load as the entrypoint, specified as a fully
|
|
28779
|
+
# qualified module name. For example: path.to.agent. If not specified, defaults
|
|
28780
|
+
# to "agent". The project root will be added to Python sys.path, allowing
|
|
28781
|
+
# imports to be specified relative to the root.
|
|
28782
|
+
# Corresponds to the JSON property `entrypointModule`
|
|
28783
|
+
# @return [String]
|
|
28784
|
+
attr_accessor :entrypoint_module
|
|
28785
|
+
|
|
28786
|
+
# Optional. The name of the callable object within the `entrypoint_module` to
|
|
28787
|
+
# use as the application If not specified, defaults to "root_agent".
|
|
28788
|
+
# Corresponds to the JSON property `entrypointObject`
|
|
28789
|
+
# @return [String]
|
|
28790
|
+
attr_accessor :entrypoint_object
|
|
28791
|
+
|
|
28792
|
+
# Optional. The path to the requirements file, relative to the source root. If
|
|
28793
|
+
# not specified, defaults to "requirements.txt".
|
|
28794
|
+
# Corresponds to the JSON property `requirementsFile`
|
|
28795
|
+
# @return [String]
|
|
28796
|
+
attr_accessor :requirements_file
|
|
28797
|
+
|
|
28798
|
+
# Optional. The version of Python to use. Support version includes 3.9, 3.10, 3.
|
|
28799
|
+
# 11, 3.12, 3.13. If not specified, default value is 3.10.
|
|
28800
|
+
# Corresponds to the JSON property `version`
|
|
28801
|
+
# @return [String]
|
|
28802
|
+
attr_accessor :version
|
|
28803
|
+
|
|
28804
|
+
def initialize(**args)
|
|
28805
|
+
update!(**args)
|
|
28806
|
+
end
|
|
28807
|
+
|
|
28808
|
+
# Update properties of this object
|
|
28809
|
+
def update!(**args)
|
|
28810
|
+
@entrypoint_module = args[:entrypoint_module] if args.key?(:entrypoint_module)
|
|
28811
|
+
@entrypoint_object = args[:entrypoint_object] if args.key?(:entrypoint_object)
|
|
28812
|
+
@requirements_file = args[:requirements_file] if args.key?(:requirements_file)
|
|
28813
|
+
@version = args[:version] if args.key?(:version)
|
|
28814
|
+
end
|
|
28815
|
+
end
|
|
28816
|
+
|
|
28414
28817
|
# Request message for GenAiTuningService.RebaseTunedModel.
|
|
28415
28818
|
class GoogleCloudAiplatformV1RebaseTunedModelRequest
|
|
28416
28819
|
include Google::Apis::Core::Hashable
|
|
@@ -40365,6 +40768,11 @@ module Google
|
|
|
40365
40768
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ToolCodeExecution]
|
|
40366
40769
|
attr_accessor :code_execution
|
|
40367
40770
|
|
|
40771
|
+
# Tool to support computer use.
|
|
40772
|
+
# Corresponds to the JSON property `computerUse`
|
|
40773
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ToolComputerUse]
|
|
40774
|
+
attr_accessor :computer_use
|
|
40775
|
+
|
|
40368
40776
|
# Tool to search public web data, powered by Vertex AI Search and Sec4
|
|
40369
40777
|
# compliance.
|
|
40370
40778
|
# Corresponds to the JSON property `enterpriseWebSearch`
|
|
@@ -40414,6 +40822,7 @@ module Google
|
|
|
40414
40822
|
# Update properties of this object
|
|
40415
40823
|
def update!(**args)
|
|
40416
40824
|
@code_execution = args[:code_execution] if args.key?(:code_execution)
|
|
40825
|
+
@computer_use = args[:computer_use] if args.key?(:computer_use)
|
|
40417
40826
|
@enterprise_web_search = args[:enterprise_web_search] if args.key?(:enterprise_web_search)
|
|
40418
40827
|
@function_declarations = args[:function_declarations] if args.key?(:function_declarations)
|
|
40419
40828
|
@google_maps = args[:google_maps] if args.key?(:google_maps)
|
|
@@ -40565,6 +40974,36 @@ module Google
|
|
|
40565
40974
|
end
|
|
40566
40975
|
end
|
|
40567
40976
|
|
|
40977
|
+
# Tool to support computer use.
|
|
40978
|
+
class GoogleCloudAiplatformV1ToolComputerUse
|
|
40979
|
+
include Google::Apis::Core::Hashable
|
|
40980
|
+
|
|
40981
|
+
# Required. The environment being operated.
|
|
40982
|
+
# Corresponds to the JSON property `environment`
|
|
40983
|
+
# @return [String]
|
|
40984
|
+
attr_accessor :environment
|
|
40985
|
+
|
|
40986
|
+
# Optional. By default, [predefined functions](https://cloud.google.com/vertex-
|
|
40987
|
+
# ai/generative-ai/docs/computer-use#supported-actions) are included in the
|
|
40988
|
+
# final model call. Some of them can be explicitly excluded from being
|
|
40989
|
+
# automatically included. This can serve two purposes: 1. Using a more
|
|
40990
|
+
# restricted / different action space. 2. Improving the definitions /
|
|
40991
|
+
# instructions of predefined functions.
|
|
40992
|
+
# Corresponds to the JSON property `excludedPredefinedFunctions`
|
|
40993
|
+
# @return [Array<String>]
|
|
40994
|
+
attr_accessor :excluded_predefined_functions
|
|
40995
|
+
|
|
40996
|
+
def initialize(**args)
|
|
40997
|
+
update!(**args)
|
|
40998
|
+
end
|
|
40999
|
+
|
|
41000
|
+
# Update properties of this object
|
|
41001
|
+
def update!(**args)
|
|
41002
|
+
@environment = args[:environment] if args.key?(:environment)
|
|
41003
|
+
@excluded_predefined_functions = args[:excluded_predefined_functions] if args.key?(:excluded_predefined_functions)
|
|
41004
|
+
end
|
|
41005
|
+
end
|
|
41006
|
+
|
|
40568
41007
|
# Tool config. This config is shared for all tools provided in the request.
|
|
40569
41008
|
class GoogleCloudAiplatformV1ToolConfig
|
|
40570
41009
|
include Google::Apis::Core::Hashable
|
|
@@ -16,13 +16,13 @@ module Google
|
|
|
16
16
|
module Apis
|
|
17
17
|
module AiplatformV1
|
|
18
18
|
# Version of the google-apis-aiplatform_v1 gem
|
|
19
|
-
GEM_VERSION = "0.
|
|
19
|
+
GEM_VERSION = "0.71.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
22
|
GENERATOR_VERSION = "0.18.0"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20251027"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|