google-apis-aiplatform_v1 0.73.0 → 0.75.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 +8 -0
- data/lib/google/apis/aiplatform_v1/classes.rb +1703 -14
- data/lib/google/apis/aiplatform_v1/gem_version.rb +2 -2
- data/lib/google/apis/aiplatform_v1/representations.rb +743 -9
- data/lib/google/apis/aiplatform_v1/service.rb +2272 -643
- metadata +2 -2
|
@@ -929,6 +929,19 @@ module Google
|
|
|
929
929
|
end
|
|
930
930
|
end
|
|
931
931
|
|
|
932
|
+
# Response message for SessionService.AppendEvent.
|
|
933
|
+
class GoogleCloudAiplatformV1AppendEventResponse
|
|
934
|
+
include Google::Apis::Core::Hashable
|
|
935
|
+
|
|
936
|
+
def initialize(**args)
|
|
937
|
+
update!(**args)
|
|
938
|
+
end
|
|
939
|
+
|
|
940
|
+
# Update properties of this object
|
|
941
|
+
def update!(**args)
|
|
942
|
+
end
|
|
943
|
+
end
|
|
944
|
+
|
|
932
945
|
# Instance of a general artifact.
|
|
933
946
|
class GoogleCloudAiplatformV1Artifact
|
|
934
947
|
include Google::Apis::Core::Hashable
|
|
@@ -2122,14 +2135,14 @@ module Google
|
|
|
2122
2135
|
|
|
2123
2136
|
# The name of the Model resource that produces the predictions via this job,
|
|
2124
2137
|
# must share the same ancestor Location. Starting this job has no impact on any
|
|
2125
|
-
# existing deployments of the Model and their resources. Exactly one of model
|
|
2126
|
-
#
|
|
2127
|
-
# version id or version alias to specify the version. Example: `
|
|
2128
|
-
# project`/locations/`location`/models/`model`@2` or `projects/`
|
|
2129
|
-
# locations/`location`/models/`model`@golden` if no version is
|
|
2130
|
-
# default version will be deployed. The model resource could also
|
|
2131
|
-
# model. Example: `publishers/`publisher`/models/`model`` or `
|
|
2132
|
-
# locations/`location`/publishers/`publisher`/models/`model``
|
|
2138
|
+
# existing deployments of the Model and their resources. Exactly one of model,
|
|
2139
|
+
# unmanaged_container_model, or endpoint must be set. The model resource name
|
|
2140
|
+
# may contain version id or version alias to specify the version. Example: `
|
|
2141
|
+
# projects/`project`/locations/`location`/models/`model`@2` or `projects/`
|
|
2142
|
+
# project`/locations/`location`/models/`model`@golden` if no version is
|
|
2143
|
+
# specified, the default version will be deployed. The model resource could also
|
|
2144
|
+
# be a publisher model. Example: `publishers/`publisher`/models/`model`` or `
|
|
2145
|
+
# projects/`project`/locations/`location`/publishers/`publisher`/models/`model``
|
|
2133
2146
|
# Corresponds to the JSON property `model`
|
|
2134
2147
|
# @return [String]
|
|
2135
2148
|
attr_accessor :model
|
|
@@ -8149,6 +8162,12 @@ module Google
|
|
|
8149
8162
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationDataset]
|
|
8150
8163
|
attr_accessor :dataset
|
|
8151
8164
|
|
|
8165
|
+
# Required. The resource name of the Location to evaluate the dataset. Format: `
|
|
8166
|
+
# projects/`project`/locations/`location``
|
|
8167
|
+
# Corresponds to the JSON property `location`
|
|
8168
|
+
# @return [String]
|
|
8169
|
+
attr_accessor :location
|
|
8170
|
+
|
|
8152
8171
|
# Required. The metrics used for evaluation.
|
|
8153
8172
|
# Corresponds to the JSON property `metrics`
|
|
8154
8173
|
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Metric>]
|
|
@@ -8167,6 +8186,7 @@ module Google
|
|
|
8167
8186
|
def update!(**args)
|
|
8168
8187
|
@autorater_config = args[:autorater_config] if args.key?(:autorater_config)
|
|
8169
8188
|
@dataset = args[:dataset] if args.key?(:dataset)
|
|
8189
|
+
@location = args[:location] if args.key?(:location)
|
|
8170
8190
|
@metrics = args[:metrics] if args.key?(:metrics)
|
|
8171
8191
|
@output_config = args[:output_config] if args.key?(:output_config)
|
|
8172
8192
|
end
|
|
@@ -8224,6 +8244,12 @@ module Google
|
|
|
8224
8244
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationInstance]
|
|
8225
8245
|
attr_accessor :instance
|
|
8226
8246
|
|
|
8247
|
+
# Required. The resource name of the Location to evaluate the instances. Format:
|
|
8248
|
+
# `projects/`project`/locations/`location``
|
|
8249
|
+
# Corresponds to the JSON property `location`
|
|
8250
|
+
# @return [String]
|
|
8251
|
+
attr_accessor :location
|
|
8252
|
+
|
|
8227
8253
|
# The metrics used for evaluation. Currently, we only support evaluating a
|
|
8228
8254
|
# single metric. If multiple metrics are provided, only the first one will be
|
|
8229
8255
|
# evaluated.
|
|
@@ -8371,6 +8397,7 @@ module Google
|
|
|
8371
8397
|
@fulfillment_input = args[:fulfillment_input] if args.key?(:fulfillment_input)
|
|
8372
8398
|
@groundedness_input = args[:groundedness_input] if args.key?(:groundedness_input)
|
|
8373
8399
|
@instance = args[:instance] if args.key?(:instance)
|
|
8400
|
+
@location = args[:location] if args.key?(:location)
|
|
8374
8401
|
@metrics = args[:metrics] if args.key?(:metrics)
|
|
8375
8402
|
@metricx_input = args[:metricx_input] if args.key?(:metricx_input)
|
|
8376
8403
|
@pairwise_metric_input = args[:pairwise_metric_input] if args.key?(:pairwise_metric_input)
|
|
@@ -9909,6 +9936,130 @@ module Google
|
|
|
9909
9936
|
end
|
|
9910
9937
|
end
|
|
9911
9938
|
|
|
9939
|
+
# Actions are parts of events that are executed by the agent.
|
|
9940
|
+
class GoogleCloudAiplatformV1EventActions
|
|
9941
|
+
include Google::Apis::Core::Hashable
|
|
9942
|
+
|
|
9943
|
+
# Optional. Indicates that the event is updating an artifact. key is the
|
|
9944
|
+
# filename, value is the version.
|
|
9945
|
+
# Corresponds to the JSON property `artifactDelta`
|
|
9946
|
+
# @return [Hash<String,Fixnum>]
|
|
9947
|
+
attr_accessor :artifact_delta
|
|
9948
|
+
|
|
9949
|
+
# Optional. The agent is escalating to a higher level agent.
|
|
9950
|
+
# Corresponds to the JSON property `escalate`
|
|
9951
|
+
# @return [Boolean]
|
|
9952
|
+
attr_accessor :escalate
|
|
9953
|
+
alias_method :escalate?, :escalate
|
|
9954
|
+
|
|
9955
|
+
# Optional. Will only be set by a tool response indicating tool request euc.
|
|
9956
|
+
# Struct key is the function call id since one function call response (from
|
|
9957
|
+
# model) could correspond to multiple function calls. Struct value is the
|
|
9958
|
+
# required auth config, which can be another struct.
|
|
9959
|
+
# Corresponds to the JSON property `requestedAuthConfigs`
|
|
9960
|
+
# @return [Hash<String,Object>]
|
|
9961
|
+
attr_accessor :requested_auth_configs
|
|
9962
|
+
|
|
9963
|
+
# Optional. If true, it won't call model to summarize function response. Only
|
|
9964
|
+
# used for function_response event.
|
|
9965
|
+
# Corresponds to the JSON property `skipSummarization`
|
|
9966
|
+
# @return [Boolean]
|
|
9967
|
+
attr_accessor :skip_summarization
|
|
9968
|
+
alias_method :skip_summarization?, :skip_summarization
|
|
9969
|
+
|
|
9970
|
+
# Optional. Indicates that the event is updating the state with the given delta.
|
|
9971
|
+
# Corresponds to the JSON property `stateDelta`
|
|
9972
|
+
# @return [Hash<String,Object>]
|
|
9973
|
+
attr_accessor :state_delta
|
|
9974
|
+
|
|
9975
|
+
# Optional. If set, the event transfers to the specified agent.
|
|
9976
|
+
# Corresponds to the JSON property `transferAgent`
|
|
9977
|
+
# @return [String]
|
|
9978
|
+
attr_accessor :transfer_agent
|
|
9979
|
+
|
|
9980
|
+
def initialize(**args)
|
|
9981
|
+
update!(**args)
|
|
9982
|
+
end
|
|
9983
|
+
|
|
9984
|
+
# Update properties of this object
|
|
9985
|
+
def update!(**args)
|
|
9986
|
+
@artifact_delta = args[:artifact_delta] if args.key?(:artifact_delta)
|
|
9987
|
+
@escalate = args[:escalate] if args.key?(:escalate)
|
|
9988
|
+
@requested_auth_configs = args[:requested_auth_configs] if args.key?(:requested_auth_configs)
|
|
9989
|
+
@skip_summarization = args[:skip_summarization] if args.key?(:skip_summarization)
|
|
9990
|
+
@state_delta = args[:state_delta] if args.key?(:state_delta)
|
|
9991
|
+
@transfer_agent = args[:transfer_agent] if args.key?(:transfer_agent)
|
|
9992
|
+
end
|
|
9993
|
+
end
|
|
9994
|
+
|
|
9995
|
+
# Metadata relating to a LLM response event.
|
|
9996
|
+
class GoogleCloudAiplatformV1EventMetadata
|
|
9997
|
+
include Google::Apis::Core::Hashable
|
|
9998
|
+
|
|
9999
|
+
# Optional. The branch of the event. The format is like agent_1.agent_2.agent_3,
|
|
10000
|
+
# where agent_1 is the parent of agent_2, and agent_2 is the parent of agent_3.
|
|
10001
|
+
# Branch is used when multiple child agents shouldn't see their siblings'
|
|
10002
|
+
# conversation history.
|
|
10003
|
+
# Corresponds to the JSON property `branch`
|
|
10004
|
+
# @return [String]
|
|
10005
|
+
attr_accessor :branch
|
|
10006
|
+
|
|
10007
|
+
# The custom metadata of the LlmResponse.
|
|
10008
|
+
# Corresponds to the JSON property `customMetadata`
|
|
10009
|
+
# @return [Hash<String,Object>]
|
|
10010
|
+
attr_accessor :custom_metadata
|
|
10011
|
+
|
|
10012
|
+
# Information about the sources that support the content of a response. When
|
|
10013
|
+
# grounding is enabled, the model returns citations for claims in the response.
|
|
10014
|
+
# This object contains the retrieved sources.
|
|
10015
|
+
# Corresponds to the JSON property `groundingMetadata`
|
|
10016
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GroundingMetadata]
|
|
10017
|
+
attr_accessor :grounding_metadata
|
|
10018
|
+
|
|
10019
|
+
# Optional. Flag indicating that LLM was interrupted when generating the content.
|
|
10020
|
+
# Usually it's due to user interruption during a bidi streaming.
|
|
10021
|
+
# Corresponds to the JSON property `interrupted`
|
|
10022
|
+
# @return [Boolean]
|
|
10023
|
+
attr_accessor :interrupted
|
|
10024
|
+
alias_method :interrupted?, :interrupted
|
|
10025
|
+
|
|
10026
|
+
# Optional. Set of ids of the long running function calls. Agent client will
|
|
10027
|
+
# know from this field about which function call is long running. Only valid for
|
|
10028
|
+
# function call event.
|
|
10029
|
+
# Corresponds to the JSON property `longRunningToolIds`
|
|
10030
|
+
# @return [Array<String>]
|
|
10031
|
+
attr_accessor :long_running_tool_ids
|
|
10032
|
+
|
|
10033
|
+
# Optional. Indicates whether the text content is part of a unfinished text
|
|
10034
|
+
# stream. Only used for streaming mode and when the content is plain text.
|
|
10035
|
+
# Corresponds to the JSON property `partial`
|
|
10036
|
+
# @return [Boolean]
|
|
10037
|
+
attr_accessor :partial
|
|
10038
|
+
alias_method :partial?, :partial
|
|
10039
|
+
|
|
10040
|
+
# Optional. Indicates whether the response from the model is complete. Only used
|
|
10041
|
+
# for streaming mode.
|
|
10042
|
+
# Corresponds to the JSON property `turnComplete`
|
|
10043
|
+
# @return [Boolean]
|
|
10044
|
+
attr_accessor :turn_complete
|
|
10045
|
+
alias_method :turn_complete?, :turn_complete
|
|
10046
|
+
|
|
10047
|
+
def initialize(**args)
|
|
10048
|
+
update!(**args)
|
|
10049
|
+
end
|
|
10050
|
+
|
|
10051
|
+
# Update properties of this object
|
|
10052
|
+
def update!(**args)
|
|
10053
|
+
@branch = args[:branch] if args.key?(:branch)
|
|
10054
|
+
@custom_metadata = args[:custom_metadata] if args.key?(:custom_metadata)
|
|
10055
|
+
@grounding_metadata = args[:grounding_metadata] if args.key?(:grounding_metadata)
|
|
10056
|
+
@interrupted = args[:interrupted] if args.key?(:interrupted)
|
|
10057
|
+
@long_running_tool_ids = args[:long_running_tool_ids] if args.key?(:long_running_tool_ids)
|
|
10058
|
+
@partial = args[:partial] if args.key?(:partial)
|
|
10059
|
+
@turn_complete = args[:turn_complete] if args.key?(:turn_complete)
|
|
10060
|
+
end
|
|
10061
|
+
end
|
|
10062
|
+
|
|
9912
10063
|
# Input for exact match metric.
|
|
9913
10064
|
class GoogleCloudAiplatformV1ExactMatchInput
|
|
9914
10065
|
include Google::Apis::Core::Hashable
|
|
@@ -12105,6 +12256,13 @@ module Google
|
|
|
12105
12256
|
attr_accessor :enable_direct_bigtable_access
|
|
12106
12257
|
alias_method :enable_direct_bigtable_access?, :enable_direct_bigtable_access
|
|
12107
12258
|
|
|
12259
|
+
# Optional. The zone where the underlying Bigtable cluster for the primary
|
|
12260
|
+
# Bigtable instance will be provisioned. Only the zone must be provided. For
|
|
12261
|
+
# example, only "us-central1-a" should be provided.
|
|
12262
|
+
# Corresponds to the JSON property `zone`
|
|
12263
|
+
# @return [String]
|
|
12264
|
+
attr_accessor :zone
|
|
12265
|
+
|
|
12108
12266
|
def initialize(**args)
|
|
12109
12267
|
update!(**args)
|
|
12110
12268
|
end
|
|
@@ -12114,6 +12272,7 @@ module Google
|
|
|
12114
12272
|
@auto_scaling = args[:auto_scaling] if args.key?(:auto_scaling)
|
|
12115
12273
|
@bigtable_metadata = args[:bigtable_metadata] if args.key?(:bigtable_metadata)
|
|
12116
12274
|
@enable_direct_bigtable_access = args[:enable_direct_bigtable_access] if args.key?(:enable_direct_bigtable_access)
|
|
12275
|
+
@zone = args[:zone] if args.key?(:zone)
|
|
12117
12276
|
end
|
|
12118
12277
|
end
|
|
12119
12278
|
|
|
@@ -14152,6 +14311,19 @@ module Google
|
|
|
14152
14311
|
# @return [String]
|
|
14153
14312
|
attr_accessor :name
|
|
14154
14313
|
|
|
14314
|
+
# Optional. The partial argument value of the function call. If provided,
|
|
14315
|
+
# represents the arguments/fields that are streamed incrementally.
|
|
14316
|
+
# Corresponds to the JSON property `partialArgs`
|
|
14317
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PartialArg>]
|
|
14318
|
+
attr_accessor :partial_args
|
|
14319
|
+
|
|
14320
|
+
# Optional. Whether this is the last part of the FunctionCall. If true, another
|
|
14321
|
+
# partial message for the current FunctionCall is expected to follow.
|
|
14322
|
+
# Corresponds to the JSON property `willContinue`
|
|
14323
|
+
# @return [Boolean]
|
|
14324
|
+
attr_accessor :will_continue
|
|
14325
|
+
alias_method :will_continue?, :will_continue
|
|
14326
|
+
|
|
14155
14327
|
def initialize(**args)
|
|
14156
14328
|
update!(**args)
|
|
14157
14329
|
end
|
|
@@ -14160,6 +14332,8 @@ module Google
|
|
|
14160
14332
|
def update!(**args)
|
|
14161
14333
|
@args = args[:args] if args.key?(:args)
|
|
14162
14334
|
@name = args[:name] if args.key?(:name)
|
|
14335
|
+
@partial_args = args[:partial_args] if args.key?(:partial_args)
|
|
14336
|
+
@will_continue = args[:will_continue] if args.key?(:will_continue)
|
|
14163
14337
|
end
|
|
14164
14338
|
end
|
|
14165
14339
|
|
|
@@ -14179,6 +14353,14 @@ module Google
|
|
|
14179
14353
|
# @return [String]
|
|
14180
14354
|
attr_accessor :mode
|
|
14181
14355
|
|
|
14356
|
+
# Optional. When set to true, arguments of a single function call will be
|
|
14357
|
+
# streamed out in multiple parts/contents/responses. Partial parameter results
|
|
14358
|
+
# will be returned in the [FunctionCall.partial_args] field.
|
|
14359
|
+
# Corresponds to the JSON property `streamFunctionCallArguments`
|
|
14360
|
+
# @return [Boolean]
|
|
14361
|
+
attr_accessor :stream_function_call_arguments
|
|
14362
|
+
alias_method :stream_function_call_arguments?, :stream_function_call_arguments
|
|
14363
|
+
|
|
14182
14364
|
def initialize(**args)
|
|
14183
14365
|
update!(**args)
|
|
14184
14366
|
end
|
|
@@ -14187,6 +14369,7 @@ module Google
|
|
|
14187
14369
|
def update!(**args)
|
|
14188
14370
|
@allowed_function_names = args[:allowed_function_names] if args.key?(:allowed_function_names)
|
|
14189
14371
|
@mode = args[:mode] if args.key?(:mode)
|
|
14372
|
+
@stream_function_call_arguments = args[:stream_function_call_arguments] if args.key?(:stream_function_call_arguments)
|
|
14190
14373
|
end
|
|
14191
14374
|
end
|
|
14192
14375
|
|
|
@@ -14205,8 +14388,8 @@ module Google
|
|
|
14205
14388
|
attr_accessor :description
|
|
14206
14389
|
|
|
14207
14390
|
# Required. The name of the function to call. Must start with a letter or an
|
|
14208
|
-
# underscore. Must be a-z, A-Z, 0-9, or contain underscores, dots and
|
|
14209
|
-
# with a maximum length of 64.
|
|
14391
|
+
# underscore. Must be a-z, A-Z, 0-9, or contain underscores, dots, colons and
|
|
14392
|
+
# dashes, with a maximum length of 64.
|
|
14210
14393
|
# Corresponds to the JSON property `name`
|
|
14211
14394
|
# @return [String]
|
|
14212
14395
|
attr_accessor :name
|
|
@@ -14873,6 +15056,12 @@ module Google
|
|
|
14873
15056
|
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Content>]
|
|
14874
15057
|
attr_accessor :contents
|
|
14875
15058
|
|
|
15059
|
+
# Required. The resource name of the Location to generate rubrics from. Format: `
|
|
15060
|
+
# projects/`project`/locations/`location``
|
|
15061
|
+
# Corresponds to the JSON property `location`
|
|
15062
|
+
# @return [String]
|
|
15063
|
+
attr_accessor :location
|
|
15064
|
+
|
|
14876
15065
|
# The spec for a pre-defined metric.
|
|
14877
15066
|
# Corresponds to the JSON property `predefinedRubricGenerationSpec`
|
|
14878
15067
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PredefinedMetricSpec]
|
|
@@ -14891,6 +15080,7 @@ module Google
|
|
|
14891
15080
|
def update!(**args)
|
|
14892
15081
|
@agent_config = args[:agent_config] if args.key?(:agent_config)
|
|
14893
15082
|
@contents = args[:contents] if args.key?(:contents)
|
|
15083
|
+
@location = args[:location] if args.key?(:location)
|
|
14894
15084
|
@predefined_rubric_generation_spec = args[:predefined_rubric_generation_spec] if args.key?(:predefined_rubric_generation_spec)
|
|
14895
15085
|
@rubric_generation_spec = args[:rubric_generation_spec] if args.key?(:rubric_generation_spec)
|
|
14896
15086
|
end
|
|
@@ -14915,6 +15105,211 @@ module Google
|
|
|
14915
15105
|
end
|
|
14916
15106
|
end
|
|
14917
15107
|
|
|
15108
|
+
# Request message for MemoryBankService.GenerateMemories. Maximum size is 8 MB.
|
|
15109
|
+
class GoogleCloudAiplatformV1GenerateMemoriesRequest
|
|
15110
|
+
include Google::Apis::Core::Hashable
|
|
15111
|
+
|
|
15112
|
+
# Defines a direct source of content from which to generate the memories.
|
|
15113
|
+
# Corresponds to the JSON property `directContentsSource`
|
|
15114
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateMemoriesRequestDirectContentsSource]
|
|
15115
|
+
attr_accessor :direct_contents_source
|
|
15116
|
+
|
|
15117
|
+
# Defines a direct source of memories that should be uploaded to Memory Bank
|
|
15118
|
+
# with consolidation.
|
|
15119
|
+
# Corresponds to the JSON property `directMemoriesSource`
|
|
15120
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateMemoriesRequestDirectMemoriesSource]
|
|
15121
|
+
attr_accessor :direct_memories_source
|
|
15122
|
+
|
|
15123
|
+
# Optional. If true, generated memories will not be consolidated with existing
|
|
15124
|
+
# memories; all generated memories will be added as new memories regardless of
|
|
15125
|
+
# whether they are duplicates of or contradictory to existing memories. By
|
|
15126
|
+
# default, memory consolidation is enabled.
|
|
15127
|
+
# Corresponds to the JSON property `disableConsolidation`
|
|
15128
|
+
# @return [Boolean]
|
|
15129
|
+
attr_accessor :disable_consolidation
|
|
15130
|
+
alias_method :disable_consolidation?, :disable_consolidation
|
|
15131
|
+
|
|
15132
|
+
# Optional. If true, no revisions will be created for this request.
|
|
15133
|
+
# Corresponds to the JSON property `disableMemoryRevisions`
|
|
15134
|
+
# @return [Boolean]
|
|
15135
|
+
attr_accessor :disable_memory_revisions
|
|
15136
|
+
alias_method :disable_memory_revisions?, :disable_memory_revisions
|
|
15137
|
+
|
|
15138
|
+
# Optional. Timestamp of when the revision is considered expired. If not set,
|
|
15139
|
+
# the memory revision will be kept until manually deleted.
|
|
15140
|
+
# Corresponds to the JSON property `revisionExpireTime`
|
|
15141
|
+
# @return [String]
|
|
15142
|
+
attr_accessor :revision_expire_time
|
|
15143
|
+
|
|
15144
|
+
# Optional. Labels to be applied to the generated memory revisions. For example,
|
|
15145
|
+
# you can use this to label a revision with its data source.
|
|
15146
|
+
# Corresponds to the JSON property `revisionLabels`
|
|
15147
|
+
# @return [Hash<String,String>]
|
|
15148
|
+
attr_accessor :revision_labels
|
|
15149
|
+
|
|
15150
|
+
# Optional. The TTL for the revision. The expiration time is computed: now + TTL.
|
|
15151
|
+
# Corresponds to the JSON property `revisionTtl`
|
|
15152
|
+
# @return [String]
|
|
15153
|
+
attr_accessor :revision_ttl
|
|
15154
|
+
|
|
15155
|
+
# Optional. The scope of the memories that should be generated. Memories will be
|
|
15156
|
+
# consolidated across memories with the same scope. Must be provided unless the
|
|
15157
|
+
# scope is defined in the source content. If `scope` is provided, it will
|
|
15158
|
+
# override the scope defined in the source content. Scope values cannot contain
|
|
15159
|
+
# the wildcard character '*'.
|
|
15160
|
+
# Corresponds to the JSON property `scope`
|
|
15161
|
+
# @return [Hash<String,String>]
|
|
15162
|
+
attr_accessor :scope
|
|
15163
|
+
|
|
15164
|
+
# Defines an Agent Engine Session from which to generate the memories. If `scope`
|
|
15165
|
+
# is not provided, the scope will be extracted from the Session (i.e. `"user_id"
|
|
15166
|
+
# : sesison.user_id`).
|
|
15167
|
+
# Corresponds to the JSON property `vertexSessionSource`
|
|
15168
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateMemoriesRequestVertexSessionSource]
|
|
15169
|
+
attr_accessor :vertex_session_source
|
|
15170
|
+
|
|
15171
|
+
def initialize(**args)
|
|
15172
|
+
update!(**args)
|
|
15173
|
+
end
|
|
15174
|
+
|
|
15175
|
+
# Update properties of this object
|
|
15176
|
+
def update!(**args)
|
|
15177
|
+
@direct_contents_source = args[:direct_contents_source] if args.key?(:direct_contents_source)
|
|
15178
|
+
@direct_memories_source = args[:direct_memories_source] if args.key?(:direct_memories_source)
|
|
15179
|
+
@disable_consolidation = args[:disable_consolidation] if args.key?(:disable_consolidation)
|
|
15180
|
+
@disable_memory_revisions = args[:disable_memory_revisions] if args.key?(:disable_memory_revisions)
|
|
15181
|
+
@revision_expire_time = args[:revision_expire_time] if args.key?(:revision_expire_time)
|
|
15182
|
+
@revision_labels = args[:revision_labels] if args.key?(:revision_labels)
|
|
15183
|
+
@revision_ttl = args[:revision_ttl] if args.key?(:revision_ttl)
|
|
15184
|
+
@scope = args[:scope] if args.key?(:scope)
|
|
15185
|
+
@vertex_session_source = args[:vertex_session_source] if args.key?(:vertex_session_source)
|
|
15186
|
+
end
|
|
15187
|
+
end
|
|
15188
|
+
|
|
15189
|
+
# Defines a direct source of content from which to generate the memories.
|
|
15190
|
+
class GoogleCloudAiplatformV1GenerateMemoriesRequestDirectContentsSource
|
|
15191
|
+
include Google::Apis::Core::Hashable
|
|
15192
|
+
|
|
15193
|
+
# Required. The source content (i.e. chat history) to generate memories from.
|
|
15194
|
+
# Corresponds to the JSON property `events`
|
|
15195
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateMemoriesRequestDirectContentsSourceEvent>]
|
|
15196
|
+
attr_accessor :events
|
|
15197
|
+
|
|
15198
|
+
def initialize(**args)
|
|
15199
|
+
update!(**args)
|
|
15200
|
+
end
|
|
15201
|
+
|
|
15202
|
+
# Update properties of this object
|
|
15203
|
+
def update!(**args)
|
|
15204
|
+
@events = args[:events] if args.key?(:events)
|
|
15205
|
+
end
|
|
15206
|
+
end
|
|
15207
|
+
|
|
15208
|
+
# A single piece of conversation from which to generate memories.
|
|
15209
|
+
class GoogleCloudAiplatformV1GenerateMemoriesRequestDirectContentsSourceEvent
|
|
15210
|
+
include Google::Apis::Core::Hashable
|
|
15211
|
+
|
|
15212
|
+
# The structured data content of a message. A Content message contains a `role`
|
|
15213
|
+
# field, which indicates the producer of the content, and a `parts` field, which
|
|
15214
|
+
# contains the multi-part data of the message.
|
|
15215
|
+
# Corresponds to the JSON property `content`
|
|
15216
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Content]
|
|
15217
|
+
attr_accessor :content
|
|
15218
|
+
|
|
15219
|
+
def initialize(**args)
|
|
15220
|
+
update!(**args)
|
|
15221
|
+
end
|
|
15222
|
+
|
|
15223
|
+
# Update properties of this object
|
|
15224
|
+
def update!(**args)
|
|
15225
|
+
@content = args[:content] if args.key?(:content)
|
|
15226
|
+
end
|
|
15227
|
+
end
|
|
15228
|
+
|
|
15229
|
+
# Defines a direct source of memories that should be uploaded to Memory Bank
|
|
15230
|
+
# with consolidation.
|
|
15231
|
+
class GoogleCloudAiplatformV1GenerateMemoriesRequestDirectMemoriesSource
|
|
15232
|
+
include Google::Apis::Core::Hashable
|
|
15233
|
+
|
|
15234
|
+
# Required. The direct memories to upload to Memory Bank. At most 5 direct
|
|
15235
|
+
# memories are allowed per request.
|
|
15236
|
+
# Corresponds to the JSON property `directMemories`
|
|
15237
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateMemoriesRequestDirectMemoriesSourceDirectMemory>]
|
|
15238
|
+
attr_accessor :direct_memories
|
|
15239
|
+
|
|
15240
|
+
def initialize(**args)
|
|
15241
|
+
update!(**args)
|
|
15242
|
+
end
|
|
15243
|
+
|
|
15244
|
+
# Update properties of this object
|
|
15245
|
+
def update!(**args)
|
|
15246
|
+
@direct_memories = args[:direct_memories] if args.key?(:direct_memories)
|
|
15247
|
+
end
|
|
15248
|
+
end
|
|
15249
|
+
|
|
15250
|
+
# A direct memory to upload to Memory Bank.
|
|
15251
|
+
class GoogleCloudAiplatformV1GenerateMemoriesRequestDirectMemoriesSourceDirectMemory
|
|
15252
|
+
include Google::Apis::Core::Hashable
|
|
15253
|
+
|
|
15254
|
+
# Required. The fact to consolidate with existing memories.
|
|
15255
|
+
# Corresponds to the JSON property `fact`
|
|
15256
|
+
# @return [String]
|
|
15257
|
+
attr_accessor :fact
|
|
15258
|
+
|
|
15259
|
+
# Optional. The topics that the consolidated memories should be associated with.
|
|
15260
|
+
# Corresponds to the JSON property `topics`
|
|
15261
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MemoryTopicId>]
|
|
15262
|
+
attr_accessor :topics
|
|
15263
|
+
|
|
15264
|
+
def initialize(**args)
|
|
15265
|
+
update!(**args)
|
|
15266
|
+
end
|
|
15267
|
+
|
|
15268
|
+
# Update properties of this object
|
|
15269
|
+
def update!(**args)
|
|
15270
|
+
@fact = args[:fact] if args.key?(:fact)
|
|
15271
|
+
@topics = args[:topics] if args.key?(:topics)
|
|
15272
|
+
end
|
|
15273
|
+
end
|
|
15274
|
+
|
|
15275
|
+
# Defines an Agent Engine Session from which to generate the memories. If `scope`
|
|
15276
|
+
# is not provided, the scope will be extracted from the Session (i.e. `"user_id"
|
|
15277
|
+
# : sesison.user_id`).
|
|
15278
|
+
class GoogleCloudAiplatformV1GenerateMemoriesRequestVertexSessionSource
|
|
15279
|
+
include Google::Apis::Core::Hashable
|
|
15280
|
+
|
|
15281
|
+
# Optional. End time (exclusive) of the time range. If not set, the end time is
|
|
15282
|
+
# unbounded.
|
|
15283
|
+
# Corresponds to the JSON property `endTime`
|
|
15284
|
+
# @return [String]
|
|
15285
|
+
attr_accessor :end_time
|
|
15286
|
+
|
|
15287
|
+
# Required. The resource name of the Session to generate memories for. Format: `
|
|
15288
|
+
# projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine`/
|
|
15289
|
+
# sessions/`session``
|
|
15290
|
+
# Corresponds to the JSON property `session`
|
|
15291
|
+
# @return [String]
|
|
15292
|
+
attr_accessor :session
|
|
15293
|
+
|
|
15294
|
+
# Optional. Time range to define which session events should be used to generate
|
|
15295
|
+
# memories. Start time (inclusive) of the time range. If not set, the start time
|
|
15296
|
+
# is unbounded.
|
|
15297
|
+
# Corresponds to the JSON property `startTime`
|
|
15298
|
+
# @return [String]
|
|
15299
|
+
attr_accessor :start_time
|
|
15300
|
+
|
|
15301
|
+
def initialize(**args)
|
|
15302
|
+
update!(**args)
|
|
15303
|
+
end
|
|
15304
|
+
|
|
15305
|
+
# Update properties of this object
|
|
15306
|
+
def update!(**args)
|
|
15307
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
|
15308
|
+
@session = args[:session] if args.key?(:session)
|
|
15309
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
|
15310
|
+
end
|
|
15311
|
+
end
|
|
15312
|
+
|
|
14918
15313
|
# Request message for DataFoundryService.GenerateSyntheticData.
|
|
14919
15314
|
class GoogleCloudAiplatformV1GenerateSyntheticDataRequest
|
|
14920
15315
|
include Google::Apis::Core::Hashable
|
|
@@ -15349,6 +15744,11 @@ module Google
|
|
|
15349
15744
|
# @return [Fixnum]
|
|
15350
15745
|
attr_accessor :thinking_budget
|
|
15351
15746
|
|
|
15747
|
+
# Optional. The number of thoughts tokens that the model should generate.
|
|
15748
|
+
# Corresponds to the JSON property `thinkingLevel`
|
|
15749
|
+
# @return [String]
|
|
15750
|
+
attr_accessor :thinking_level
|
|
15751
|
+
|
|
15352
15752
|
def initialize(**args)
|
|
15353
15753
|
update!(**args)
|
|
15354
15754
|
end
|
|
@@ -15357,6 +15757,7 @@ module Google
|
|
|
15357
15757
|
def update!(**args)
|
|
15358
15758
|
@include_thoughts = args[:include_thoughts] if args.key?(:include_thoughts)
|
|
15359
15759
|
@thinking_budget = args[:thinking_budget] if args.key?(:thinking_budget)
|
|
15760
|
+
@thinking_level = args[:thinking_level] if args.key?(:thinking_level)
|
|
15360
15761
|
end
|
|
15361
15762
|
end
|
|
15362
15763
|
|
|
@@ -16137,6 +16538,12 @@ module Google
|
|
|
16137
16538
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ImageConfigImageOutputOptions]
|
|
16138
16539
|
attr_accessor :image_output_options
|
|
16139
16540
|
|
|
16541
|
+
# Optional. Specifies the size of generated images. Supported values are `1K`, `
|
|
16542
|
+
# 2K`, `4K`. If not specified, the model will use default value `1K`.
|
|
16543
|
+
# Corresponds to the JSON property `imageSize`
|
|
16544
|
+
# @return [String]
|
|
16545
|
+
attr_accessor :image_size
|
|
16546
|
+
|
|
16140
16547
|
# Optional. Controls whether the model can generate people.
|
|
16141
16548
|
# Corresponds to the JSON property `personGeneration`
|
|
16142
16549
|
# @return [String]
|
|
@@ -16150,6 +16557,7 @@ module Google
|
|
|
16150
16557
|
def update!(**args)
|
|
16151
16558
|
@aspect_ratio = args[:aspect_ratio] if args.key?(:aspect_ratio)
|
|
16152
16559
|
@image_output_options = args[:image_output_options] if args.key?(:image_output_options)
|
|
16560
|
+
@image_size = args[:image_size] if args.key?(:image_size)
|
|
16153
16561
|
@person_generation = args[:person_generation] if args.key?(:person_generation)
|
|
16154
16562
|
end
|
|
16155
16563
|
end
|
|
@@ -17358,6 +17766,25 @@ module Google
|
|
|
17358
17766
|
end
|
|
17359
17767
|
end
|
|
17360
17768
|
|
|
17769
|
+
# An extracted memory that is the intermediate result before consolidation.
|
|
17770
|
+
class GoogleCloudAiplatformV1IntermediateExtractedMemory
|
|
17771
|
+
include Google::Apis::Core::Hashable
|
|
17772
|
+
|
|
17773
|
+
# Output only. The fact of the extracted memory.
|
|
17774
|
+
# Corresponds to the JSON property `fact`
|
|
17775
|
+
# @return [String]
|
|
17776
|
+
attr_accessor :fact
|
|
17777
|
+
|
|
17778
|
+
def initialize(**args)
|
|
17779
|
+
update!(**args)
|
|
17780
|
+
end
|
|
17781
|
+
|
|
17782
|
+
# Update properties of this object
|
|
17783
|
+
def update!(**args)
|
|
17784
|
+
@fact = args[:fact] if args.key?(:fact)
|
|
17785
|
+
end
|
|
17786
|
+
end
|
|
17787
|
+
|
|
17361
17788
|
# Request message for PredictionService.Invoke.
|
|
17362
17789
|
class GoogleCloudAiplatformV1InvokeRequest
|
|
17363
17790
|
include Google::Apis::Core::Hashable
|
|
@@ -17980,6 +18407,32 @@ module Google
|
|
|
17980
18407
|
end
|
|
17981
18408
|
end
|
|
17982
18409
|
|
|
18410
|
+
# Response message for SessionService.ListEvents.
|
|
18411
|
+
class GoogleCloudAiplatformV1ListEventsResponse
|
|
18412
|
+
include Google::Apis::Core::Hashable
|
|
18413
|
+
|
|
18414
|
+
# A token, which can be sent as ListEventsRequest.page_token to retrieve the
|
|
18415
|
+
# next page. Absence of this field indicates there are no subsequent pages.
|
|
18416
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
18417
|
+
# @return [String]
|
|
18418
|
+
attr_accessor :next_page_token
|
|
18419
|
+
|
|
18420
|
+
# A list of events matching the request. Ordered by timestamp in ascending order.
|
|
18421
|
+
# Corresponds to the JSON property `sessionEvents`
|
|
18422
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SessionEvent>]
|
|
18423
|
+
attr_accessor :session_events
|
|
18424
|
+
|
|
18425
|
+
def initialize(**args)
|
|
18426
|
+
update!(**args)
|
|
18427
|
+
end
|
|
18428
|
+
|
|
18429
|
+
# Update properties of this object
|
|
18430
|
+
def update!(**args)
|
|
18431
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
18432
|
+
@session_events = args[:session_events] if args.key?(:session_events)
|
|
18433
|
+
end
|
|
18434
|
+
end
|
|
18435
|
+
|
|
17983
18436
|
# Response message for MetadataService.ListExecutions.
|
|
17984
18437
|
class GoogleCloudAiplatformV1ListExecutionsResponse
|
|
17985
18438
|
include Google::Apis::Core::Hashable
|
|
@@ -18244,6 +18697,58 @@ module Google
|
|
|
18244
18697
|
end
|
|
18245
18698
|
end
|
|
18246
18699
|
|
|
18700
|
+
# Response message for MemoryBankService.ListMemories.
|
|
18701
|
+
class GoogleCloudAiplatformV1ListMemoriesResponse
|
|
18702
|
+
include Google::Apis::Core::Hashable
|
|
18703
|
+
|
|
18704
|
+
# List of Memories in the requested page.
|
|
18705
|
+
# Corresponds to the JSON property `memories`
|
|
18706
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Memory>]
|
|
18707
|
+
attr_accessor :memories
|
|
18708
|
+
|
|
18709
|
+
# A token to retrieve the next page of results. Pass to ListMemoriesRequest.
|
|
18710
|
+
# page_token to obtain that page.
|
|
18711
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
18712
|
+
# @return [String]
|
|
18713
|
+
attr_accessor :next_page_token
|
|
18714
|
+
|
|
18715
|
+
def initialize(**args)
|
|
18716
|
+
update!(**args)
|
|
18717
|
+
end
|
|
18718
|
+
|
|
18719
|
+
# Update properties of this object
|
|
18720
|
+
def update!(**args)
|
|
18721
|
+
@memories = args[:memories] if args.key?(:memories)
|
|
18722
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
18723
|
+
end
|
|
18724
|
+
end
|
|
18725
|
+
|
|
18726
|
+
# Response message for MemoryBankService.ListMemoryRevisions.
|
|
18727
|
+
class GoogleCloudAiplatformV1ListMemoryRevisionsResponse
|
|
18728
|
+
include Google::Apis::Core::Hashable
|
|
18729
|
+
|
|
18730
|
+
# The list of Memory Revisions in the request page.
|
|
18731
|
+
# Corresponds to the JSON property `memoryRevisions`
|
|
18732
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MemoryRevision>]
|
|
18733
|
+
attr_accessor :memory_revisions
|
|
18734
|
+
|
|
18735
|
+
# A token, which can be sent as `page_token` to retrieve the next page. If this
|
|
18736
|
+
# field is omitted, there are no subsequent pages.
|
|
18737
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
18738
|
+
# @return [String]
|
|
18739
|
+
attr_accessor :next_page_token
|
|
18740
|
+
|
|
18741
|
+
def initialize(**args)
|
|
18742
|
+
update!(**args)
|
|
18743
|
+
end
|
|
18744
|
+
|
|
18745
|
+
# Update properties of this object
|
|
18746
|
+
def update!(**args)
|
|
18747
|
+
@memory_revisions = args[:memory_revisions] if args.key?(:memory_revisions)
|
|
18748
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
18749
|
+
end
|
|
18750
|
+
end
|
|
18751
|
+
|
|
18247
18752
|
# Response message for MetadataService.ListMetadataSchemas.
|
|
18248
18753
|
class GoogleCloudAiplatformV1ListMetadataSchemasResponse
|
|
18249
18754
|
include Google::Apis::Core::Hashable
|
|
@@ -18800,6 +19305,32 @@ module Google
|
|
|
18800
19305
|
end
|
|
18801
19306
|
end
|
|
18802
19307
|
|
|
19308
|
+
# Response message for SessionService.ListSessions.
|
|
19309
|
+
class GoogleCloudAiplatformV1ListSessionsResponse
|
|
19310
|
+
include Google::Apis::Core::Hashable
|
|
19311
|
+
|
|
19312
|
+
# A token, which can be sent as ListSessionsRequest.page_token to retrieve the
|
|
19313
|
+
# next page. Absence of this field indicates there are no subsequent pages.
|
|
19314
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
19315
|
+
# @return [String]
|
|
19316
|
+
attr_accessor :next_page_token
|
|
19317
|
+
|
|
19318
|
+
# A list of sessions matching the request.
|
|
19319
|
+
# Corresponds to the JSON property `sessions`
|
|
19320
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session>]
|
|
19321
|
+
attr_accessor :sessions
|
|
19322
|
+
|
|
19323
|
+
def initialize(**args)
|
|
19324
|
+
update!(**args)
|
|
19325
|
+
end
|
|
19326
|
+
|
|
19327
|
+
# Update properties of this object
|
|
19328
|
+
def update!(**args)
|
|
19329
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
19330
|
+
@sessions = args[:sessions] if args.key?(:sessions)
|
|
19331
|
+
end
|
|
19332
|
+
end
|
|
19333
|
+
|
|
18803
19334
|
# Response message for SpecialistPoolService.ListSpecialistPools.
|
|
18804
19335
|
class GoogleCloudAiplatformV1ListSpecialistPoolsResponse
|
|
18805
19336
|
include Google::Apis::Core::Hashable
|
|
@@ -19187,7 +19718,20 @@ module Google
|
|
|
19187
19718
|
class GoogleCloudAiplatformV1MachineSpec
|
|
19188
19719
|
include Google::Apis::Core::Hashable
|
|
19189
19720
|
|
|
19190
|
-
# The number of accelerators to attach to the machine.
|
|
19721
|
+
# The number of accelerators to attach to the machine. For accelerator optimized
|
|
19722
|
+
# machine types (https://cloud.google.com/compute/docs/accelerator-optimized-
|
|
19723
|
+
# machines), One may set the accelerator_count from 1 to N for machine with N
|
|
19724
|
+
# GPUs. If accelerator_count is less than or equal to N / 2, Vertex will co-
|
|
19725
|
+
# schedule the replicas of the model into the same VM to save cost. For example,
|
|
19726
|
+
# if the machine type is a3-highgpu-8g, which has 8 H100 GPUs, one can set
|
|
19727
|
+
# accelerator_count to 1 to 8. If accelerator_count is 1, 2, 3, or 4, Vertex
|
|
19728
|
+
# will co-schedule 8, 4, 2, or 2 replicas of the model into the same VM to save
|
|
19729
|
+
# cost. When co-scheduling, CPU, memory and storage on the VM will be
|
|
19730
|
+
# distributed to replicas on the VM. For example, one can expect a co-scheduled
|
|
19731
|
+
# replica requesting 2 GPUs out of a 8-GPU VM will receive 25% of the CPU,
|
|
19732
|
+
# memory and storage of the VM. Note that the feature is not compatible with
|
|
19733
|
+
# multihost_gpu_node_count. When multihost_gpu_node_count is set, the co-
|
|
19734
|
+
# scheduling will not be enabled.
|
|
19191
19735
|
# Corresponds to the JSON property `acceleratorCount`
|
|
19192
19736
|
# @return [Fixnum]
|
|
19193
19737
|
attr_accessor :accelerator_count
|
|
@@ -19198,6 +19742,19 @@ module Google
|
|
|
19198
19742
|
# @return [String]
|
|
19199
19743
|
attr_accessor :accelerator_type
|
|
19200
19744
|
|
|
19745
|
+
# Optional. Immutable. The Nvidia GPU partition size. When specified, the
|
|
19746
|
+
# requested accelerators will be partitioned into smaller GPU partitions. For
|
|
19747
|
+
# example, if the request is for 8 units of NVIDIA A100 GPUs, and
|
|
19748
|
+
# gpu_partition_size="1g.10gb", the service will create 8 * 7 = 56 partitioned
|
|
19749
|
+
# MIG instances. The partition size must be a value supported by the requested
|
|
19750
|
+
# accelerator. Refer to [Nvidia GPU Partitioning](https://cloud.google.com/
|
|
19751
|
+
# kubernetes-engine/docs/how-to/gpus-multi#multi-instance_gpu_partitions) for
|
|
19752
|
+
# the available partition sizes. If set, the accelerator_count should be set to
|
|
19753
|
+
# 1.
|
|
19754
|
+
# Corresponds to the JSON property `gpuPartitionSize`
|
|
19755
|
+
# @return [String]
|
|
19756
|
+
attr_accessor :gpu_partition_size
|
|
19757
|
+
|
|
19201
19758
|
# Immutable. The type of the machine. See the [list of machine types supported
|
|
19202
19759
|
# for prediction](https://cloud.google.com/vertex-ai/docs/predictions/configure-
|
|
19203
19760
|
# compute#machine-types) See the [list of machine types supported for custom
|
|
@@ -19230,6 +19787,7 @@ module Google
|
|
|
19230
19787
|
def update!(**args)
|
|
19231
19788
|
@accelerator_count = args[:accelerator_count] if args.key?(:accelerator_count)
|
|
19232
19789
|
@accelerator_type = args[:accelerator_type] if args.key?(:accelerator_type)
|
|
19790
|
+
@gpu_partition_size = args[:gpu_partition_size] if args.key?(:gpu_partition_size)
|
|
19233
19791
|
@machine_type = args[:machine_type] if args.key?(:machine_type)
|
|
19234
19792
|
@reservation_affinity = args[:reservation_affinity] if args.key?(:reservation_affinity)
|
|
19235
19793
|
@tpu_topology = args[:tpu_topology] if args.key?(:tpu_topology)
|
|
@@ -19321,6 +19879,409 @@ module Google
|
|
|
19321
19879
|
end
|
|
19322
19880
|
end
|
|
19323
19881
|
|
|
19882
|
+
# A memory.
|
|
19883
|
+
class GoogleCloudAiplatformV1Memory
|
|
19884
|
+
include Google::Apis::Core::Hashable
|
|
19885
|
+
|
|
19886
|
+
# Output only. Timestamp when this Memory was created.
|
|
19887
|
+
# Corresponds to the JSON property `createTime`
|
|
19888
|
+
# @return [String]
|
|
19889
|
+
attr_accessor :create_time
|
|
19890
|
+
|
|
19891
|
+
# Optional. Description of the Memory.
|
|
19892
|
+
# Corresponds to the JSON property `description`
|
|
19893
|
+
# @return [String]
|
|
19894
|
+
attr_accessor :description
|
|
19895
|
+
|
|
19896
|
+
# Optional. Input only. If true, no revision will be created for this request.
|
|
19897
|
+
# Corresponds to the JSON property `disableMemoryRevisions`
|
|
19898
|
+
# @return [Boolean]
|
|
19899
|
+
attr_accessor :disable_memory_revisions
|
|
19900
|
+
alias_method :disable_memory_revisions?, :disable_memory_revisions
|
|
19901
|
+
|
|
19902
|
+
# Optional. Display name of the Memory.
|
|
19903
|
+
# Corresponds to the JSON property `displayName`
|
|
19904
|
+
# @return [String]
|
|
19905
|
+
attr_accessor :display_name
|
|
19906
|
+
|
|
19907
|
+
# Optional. Timestamp of when this resource is considered expired. This is *
|
|
19908
|
+
# always* provided on output when `expiration` is set on input, regardless of
|
|
19909
|
+
# whether `expire_time` or `ttl` was provided.
|
|
19910
|
+
# Corresponds to the JSON property `expireTime`
|
|
19911
|
+
# @return [String]
|
|
19912
|
+
attr_accessor :expire_time
|
|
19913
|
+
|
|
19914
|
+
# Required. Semantic knowledge extracted from the source content.
|
|
19915
|
+
# Corresponds to the JSON property `fact`
|
|
19916
|
+
# @return [String]
|
|
19917
|
+
attr_accessor :fact
|
|
19918
|
+
|
|
19919
|
+
# Identifier. The resource name of the Memory. Format: `projects/`project`/
|
|
19920
|
+
# locations/`location`/reasoningEngines/`reasoning_engine`/memories/`memory``
|
|
19921
|
+
# Corresponds to the JSON property `name`
|
|
19922
|
+
# @return [String]
|
|
19923
|
+
attr_accessor :name
|
|
19924
|
+
|
|
19925
|
+
# Optional. Input only. Timestamp of when the revision is considered expired. If
|
|
19926
|
+
# not set, the memory revision will be kept until manually deleted.
|
|
19927
|
+
# Corresponds to the JSON property `revisionExpireTime`
|
|
19928
|
+
# @return [String]
|
|
19929
|
+
attr_accessor :revision_expire_time
|
|
19930
|
+
|
|
19931
|
+
# Optional. Input only. The labels to apply to the Memory Revision created as a
|
|
19932
|
+
# result of this request.
|
|
19933
|
+
# Corresponds to the JSON property `revisionLabels`
|
|
19934
|
+
# @return [Hash<String,String>]
|
|
19935
|
+
attr_accessor :revision_labels
|
|
19936
|
+
|
|
19937
|
+
# Optional. Input only. The TTL for the revision. The expiration time is
|
|
19938
|
+
# computed: now + TTL.
|
|
19939
|
+
# Corresponds to the JSON property `revisionTtl`
|
|
19940
|
+
# @return [String]
|
|
19941
|
+
attr_accessor :revision_ttl
|
|
19942
|
+
|
|
19943
|
+
# Required. Immutable. The scope of the Memory. Memories are isolated within
|
|
19944
|
+
# their scope. The scope is defined when creating or generating memories. Scope
|
|
19945
|
+
# values cannot contain the wildcard character '*'.
|
|
19946
|
+
# Corresponds to the JSON property `scope`
|
|
19947
|
+
# @return [Hash<String,String>]
|
|
19948
|
+
attr_accessor :scope
|
|
19949
|
+
|
|
19950
|
+
# Optional. The Topics of the Memory.
|
|
19951
|
+
# Corresponds to the JSON property `topics`
|
|
19952
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MemoryTopicId>]
|
|
19953
|
+
attr_accessor :topics
|
|
19954
|
+
|
|
19955
|
+
# Optional. Input only. The TTL for this resource. The expiration time is
|
|
19956
|
+
# computed: now + TTL.
|
|
19957
|
+
# Corresponds to the JSON property `ttl`
|
|
19958
|
+
# @return [String]
|
|
19959
|
+
attr_accessor :ttl
|
|
19960
|
+
|
|
19961
|
+
# Output only. Timestamp when this Memory was most recently updated.
|
|
19962
|
+
# Corresponds to the JSON property `updateTime`
|
|
19963
|
+
# @return [String]
|
|
19964
|
+
attr_accessor :update_time
|
|
19965
|
+
|
|
19966
|
+
def initialize(**args)
|
|
19967
|
+
update!(**args)
|
|
19968
|
+
end
|
|
19969
|
+
|
|
19970
|
+
# Update properties of this object
|
|
19971
|
+
def update!(**args)
|
|
19972
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
|
19973
|
+
@description = args[:description] if args.key?(:description)
|
|
19974
|
+
@disable_memory_revisions = args[:disable_memory_revisions] if args.key?(:disable_memory_revisions)
|
|
19975
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
|
19976
|
+
@expire_time = args[:expire_time] if args.key?(:expire_time)
|
|
19977
|
+
@fact = args[:fact] if args.key?(:fact)
|
|
19978
|
+
@name = args[:name] if args.key?(:name)
|
|
19979
|
+
@revision_expire_time = args[:revision_expire_time] if args.key?(:revision_expire_time)
|
|
19980
|
+
@revision_labels = args[:revision_labels] if args.key?(:revision_labels)
|
|
19981
|
+
@revision_ttl = args[:revision_ttl] if args.key?(:revision_ttl)
|
|
19982
|
+
@scope = args[:scope] if args.key?(:scope)
|
|
19983
|
+
@topics = args[:topics] if args.key?(:topics)
|
|
19984
|
+
@ttl = args[:ttl] if args.key?(:ttl)
|
|
19985
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
|
19986
|
+
end
|
|
19987
|
+
end
|
|
19988
|
+
|
|
19989
|
+
# Configuration for organizing memories for a particular scope.
|
|
19990
|
+
class GoogleCloudAiplatformV1MemoryBankCustomizationConfig
|
|
19991
|
+
include Google::Apis::Core::Hashable
|
|
19992
|
+
|
|
19993
|
+
# Optional. If true, then the memories will be generated in the third person (i.
|
|
19994
|
+
# e. "The user generates memories with Memory Bank."). By default, the memories
|
|
19995
|
+
# will be generated in the first person (i.e. "I generate memories with Memory
|
|
19996
|
+
# Bank.")
|
|
19997
|
+
# Corresponds to the JSON property `enableThirdPersonMemories`
|
|
19998
|
+
# @return [Boolean]
|
|
19999
|
+
attr_accessor :enable_third_person_memories
|
|
20000
|
+
alias_method :enable_third_person_memories?, :enable_third_person_memories
|
|
20001
|
+
|
|
20002
|
+
# Optional. Examples of how to generate memories for a particular scope.
|
|
20003
|
+
# Corresponds to the JSON property `generateMemoriesExamples`
|
|
20004
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MemoryBankCustomizationConfigGenerateMemoriesExample>]
|
|
20005
|
+
attr_accessor :generate_memories_examples
|
|
20006
|
+
|
|
20007
|
+
# Optional. Topics of information that should be extracted from conversations
|
|
20008
|
+
# and stored as memories. If not set, then Memory Bank's default topics will be
|
|
20009
|
+
# used.
|
|
20010
|
+
# Corresponds to the JSON property `memoryTopics`
|
|
20011
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MemoryBankCustomizationConfigMemoryTopic>]
|
|
20012
|
+
attr_accessor :memory_topics
|
|
20013
|
+
|
|
20014
|
+
# Optional. The scope keys (i.e. 'user_id') for which to use this config. A
|
|
20015
|
+
# request's scope must include all of the provided keys for the config to be
|
|
20016
|
+
# used (order does not matter). If empty, then the config will be used for all
|
|
20017
|
+
# requests that do not have a more specific config. Only one default config is
|
|
20018
|
+
# allowed per Memory Bank.
|
|
20019
|
+
# Corresponds to the JSON property `scopeKeys`
|
|
20020
|
+
# @return [Array<String>]
|
|
20021
|
+
attr_accessor :scope_keys
|
|
20022
|
+
|
|
20023
|
+
def initialize(**args)
|
|
20024
|
+
update!(**args)
|
|
20025
|
+
end
|
|
20026
|
+
|
|
20027
|
+
# Update properties of this object
|
|
20028
|
+
def update!(**args)
|
|
20029
|
+
@enable_third_person_memories = args[:enable_third_person_memories] if args.key?(:enable_third_person_memories)
|
|
20030
|
+
@generate_memories_examples = args[:generate_memories_examples] if args.key?(:generate_memories_examples)
|
|
20031
|
+
@memory_topics = args[:memory_topics] if args.key?(:memory_topics)
|
|
20032
|
+
@scope_keys = args[:scope_keys] if args.key?(:scope_keys)
|
|
20033
|
+
end
|
|
20034
|
+
end
|
|
20035
|
+
|
|
20036
|
+
# An example of how to generate memories for a particular scope.
|
|
20037
|
+
class GoogleCloudAiplatformV1MemoryBankCustomizationConfigGenerateMemoriesExample
|
|
20038
|
+
include Google::Apis::Core::Hashable
|
|
20039
|
+
|
|
20040
|
+
# A conversation source for the example. This is similar to `
|
|
20041
|
+
# DirectContentsSource`.
|
|
20042
|
+
# Corresponds to the JSON property `conversationSource`
|
|
20043
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MemoryBankCustomizationConfigGenerateMemoriesExampleConversationSource]
|
|
20044
|
+
attr_accessor :conversation_source
|
|
20045
|
+
|
|
20046
|
+
# Optional. The memories that are expected to be generated from the input
|
|
20047
|
+
# conversation. An empty list indicates that no memories are expected to be
|
|
20048
|
+
# generated for the input conversation.
|
|
20049
|
+
# Corresponds to the JSON property `generatedMemories`
|
|
20050
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MemoryBankCustomizationConfigGenerateMemoriesExampleGeneratedMemory>]
|
|
20051
|
+
attr_accessor :generated_memories
|
|
20052
|
+
|
|
20053
|
+
def initialize(**args)
|
|
20054
|
+
update!(**args)
|
|
20055
|
+
end
|
|
20056
|
+
|
|
20057
|
+
# Update properties of this object
|
|
20058
|
+
def update!(**args)
|
|
20059
|
+
@conversation_source = args[:conversation_source] if args.key?(:conversation_source)
|
|
20060
|
+
@generated_memories = args[:generated_memories] if args.key?(:generated_memories)
|
|
20061
|
+
end
|
|
20062
|
+
end
|
|
20063
|
+
|
|
20064
|
+
# A conversation source for the example. This is similar to `
|
|
20065
|
+
# DirectContentsSource`.
|
|
20066
|
+
class GoogleCloudAiplatformV1MemoryBankCustomizationConfigGenerateMemoriesExampleConversationSource
|
|
20067
|
+
include Google::Apis::Core::Hashable
|
|
20068
|
+
|
|
20069
|
+
# Optional. The input conversation events for the example.
|
|
20070
|
+
# Corresponds to the JSON property `events`
|
|
20071
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MemoryBankCustomizationConfigGenerateMemoriesExampleConversationSourceEvent>]
|
|
20072
|
+
attr_accessor :events
|
|
20073
|
+
|
|
20074
|
+
def initialize(**args)
|
|
20075
|
+
update!(**args)
|
|
20076
|
+
end
|
|
20077
|
+
|
|
20078
|
+
# Update properties of this object
|
|
20079
|
+
def update!(**args)
|
|
20080
|
+
@events = args[:events] if args.key?(:events)
|
|
20081
|
+
end
|
|
20082
|
+
end
|
|
20083
|
+
|
|
20084
|
+
# A single conversation event.
|
|
20085
|
+
class GoogleCloudAiplatformV1MemoryBankCustomizationConfigGenerateMemoriesExampleConversationSourceEvent
|
|
20086
|
+
include Google::Apis::Core::Hashable
|
|
20087
|
+
|
|
20088
|
+
# The structured data content of a message. A Content message contains a `role`
|
|
20089
|
+
# field, which indicates the producer of the content, and a `parts` field, which
|
|
20090
|
+
# contains the multi-part data of the message.
|
|
20091
|
+
# Corresponds to the JSON property `content`
|
|
20092
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Content]
|
|
20093
|
+
attr_accessor :content
|
|
20094
|
+
|
|
20095
|
+
def initialize(**args)
|
|
20096
|
+
update!(**args)
|
|
20097
|
+
end
|
|
20098
|
+
|
|
20099
|
+
# Update properties of this object
|
|
20100
|
+
def update!(**args)
|
|
20101
|
+
@content = args[:content] if args.key?(:content)
|
|
20102
|
+
end
|
|
20103
|
+
end
|
|
20104
|
+
|
|
20105
|
+
# A memory generated by the operation.
|
|
20106
|
+
class GoogleCloudAiplatformV1MemoryBankCustomizationConfigGenerateMemoriesExampleGeneratedMemory
|
|
20107
|
+
include Google::Apis::Core::Hashable
|
|
20108
|
+
|
|
20109
|
+
# Required. The fact to generate a memory from.
|
|
20110
|
+
# Corresponds to the JSON property `fact`
|
|
20111
|
+
# @return [String]
|
|
20112
|
+
attr_accessor :fact
|
|
20113
|
+
|
|
20114
|
+
# Optional. The list of topics that the memory should be associated with. For
|
|
20115
|
+
# example, use `custom_memory_topic_label = "jargon"` if the extracted memory is
|
|
20116
|
+
# an example of memory extraction for the custom topic `jargon`.
|
|
20117
|
+
# Corresponds to the JSON property `topics`
|
|
20118
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MemoryTopicId>]
|
|
20119
|
+
attr_accessor :topics
|
|
20120
|
+
|
|
20121
|
+
def initialize(**args)
|
|
20122
|
+
update!(**args)
|
|
20123
|
+
end
|
|
20124
|
+
|
|
20125
|
+
# Update properties of this object
|
|
20126
|
+
def update!(**args)
|
|
20127
|
+
@fact = args[:fact] if args.key?(:fact)
|
|
20128
|
+
@topics = args[:topics] if args.key?(:topics)
|
|
20129
|
+
end
|
|
20130
|
+
end
|
|
20131
|
+
|
|
20132
|
+
# A topic of information that should be extracted from conversations and stored
|
|
20133
|
+
# as memories.
|
|
20134
|
+
class GoogleCloudAiplatformV1MemoryBankCustomizationConfigMemoryTopic
|
|
20135
|
+
include Google::Apis::Core::Hashable
|
|
20136
|
+
|
|
20137
|
+
# A custom memory topic defined by the developer.
|
|
20138
|
+
# Corresponds to the JSON property `customMemoryTopic`
|
|
20139
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MemoryBankCustomizationConfigMemoryTopicCustomMemoryTopic]
|
|
20140
|
+
attr_accessor :custom_memory_topic
|
|
20141
|
+
|
|
20142
|
+
# A managed memory topic defined by the system.
|
|
20143
|
+
# Corresponds to the JSON property `managedMemoryTopic`
|
|
20144
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MemoryBankCustomizationConfigMemoryTopicManagedMemoryTopic]
|
|
20145
|
+
attr_accessor :managed_memory_topic
|
|
20146
|
+
|
|
20147
|
+
def initialize(**args)
|
|
20148
|
+
update!(**args)
|
|
20149
|
+
end
|
|
20150
|
+
|
|
20151
|
+
# Update properties of this object
|
|
20152
|
+
def update!(**args)
|
|
20153
|
+
@custom_memory_topic = args[:custom_memory_topic] if args.key?(:custom_memory_topic)
|
|
20154
|
+
@managed_memory_topic = args[:managed_memory_topic] if args.key?(:managed_memory_topic)
|
|
20155
|
+
end
|
|
20156
|
+
end
|
|
20157
|
+
|
|
20158
|
+
# A custom memory topic defined by the developer.
|
|
20159
|
+
class GoogleCloudAiplatformV1MemoryBankCustomizationConfigMemoryTopicCustomMemoryTopic
|
|
20160
|
+
include Google::Apis::Core::Hashable
|
|
20161
|
+
|
|
20162
|
+
# Required. Description of the memory topic. This should explain what
|
|
20163
|
+
# information should be extracted for this topic.
|
|
20164
|
+
# Corresponds to the JSON property `description`
|
|
20165
|
+
# @return [String]
|
|
20166
|
+
attr_accessor :description
|
|
20167
|
+
|
|
20168
|
+
# Required. The label of the topic.
|
|
20169
|
+
# Corresponds to the JSON property `label`
|
|
20170
|
+
# @return [String]
|
|
20171
|
+
attr_accessor :label
|
|
20172
|
+
|
|
20173
|
+
def initialize(**args)
|
|
20174
|
+
update!(**args)
|
|
20175
|
+
end
|
|
20176
|
+
|
|
20177
|
+
# Update properties of this object
|
|
20178
|
+
def update!(**args)
|
|
20179
|
+
@description = args[:description] if args.key?(:description)
|
|
20180
|
+
@label = args[:label] if args.key?(:label)
|
|
20181
|
+
end
|
|
20182
|
+
end
|
|
20183
|
+
|
|
20184
|
+
# A managed memory topic defined by the system.
|
|
20185
|
+
class GoogleCloudAiplatformV1MemoryBankCustomizationConfigMemoryTopicManagedMemoryTopic
|
|
20186
|
+
include Google::Apis::Core::Hashable
|
|
20187
|
+
|
|
20188
|
+
# Required. The managed topic.
|
|
20189
|
+
# Corresponds to the JSON property `managedTopicEnum`
|
|
20190
|
+
# @return [String]
|
|
20191
|
+
attr_accessor :managed_topic_enum
|
|
20192
|
+
|
|
20193
|
+
def initialize(**args)
|
|
20194
|
+
update!(**args)
|
|
20195
|
+
end
|
|
20196
|
+
|
|
20197
|
+
# Update properties of this object
|
|
20198
|
+
def update!(**args)
|
|
20199
|
+
@managed_topic_enum = args[:managed_topic_enum] if args.key?(:managed_topic_enum)
|
|
20200
|
+
end
|
|
20201
|
+
end
|
|
20202
|
+
|
|
20203
|
+
# A revision of a Memory.
|
|
20204
|
+
class GoogleCloudAiplatformV1MemoryRevision
|
|
20205
|
+
include Google::Apis::Core::Hashable
|
|
20206
|
+
|
|
20207
|
+
# Output only. Timestamp when this Memory Revision was created.
|
|
20208
|
+
# Corresponds to the JSON property `createTime`
|
|
20209
|
+
# @return [String]
|
|
20210
|
+
attr_accessor :create_time
|
|
20211
|
+
|
|
20212
|
+
# Output only. Timestamp of when this resource is considered expired.
|
|
20213
|
+
# Corresponds to the JSON property `expireTime`
|
|
20214
|
+
# @return [String]
|
|
20215
|
+
attr_accessor :expire_time
|
|
20216
|
+
|
|
20217
|
+
# Output only. The extracted memories from the source content before
|
|
20218
|
+
# consolidation when the memory was updated via GenerateMemories. This
|
|
20219
|
+
# information was used to modify an existing Memory via Consolidation.
|
|
20220
|
+
# Corresponds to the JSON property `extractedMemories`
|
|
20221
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1IntermediateExtractedMemory>]
|
|
20222
|
+
attr_accessor :extracted_memories
|
|
20223
|
+
|
|
20224
|
+
# Output only. The fact of the Memory Revision. This corresponds to the `fact`
|
|
20225
|
+
# field of the parent Memory at the time of revision creation.
|
|
20226
|
+
# Corresponds to the JSON property `fact`
|
|
20227
|
+
# @return [String]
|
|
20228
|
+
attr_accessor :fact
|
|
20229
|
+
|
|
20230
|
+
# Output only. The labels of the Memory Revision. These labels are applied to
|
|
20231
|
+
# the MemoryRevision when it is created based on `GenerateMemoriesRequest.
|
|
20232
|
+
# revision_labels`.
|
|
20233
|
+
# Corresponds to the JSON property `labels`
|
|
20234
|
+
# @return [Hash<String,String>]
|
|
20235
|
+
attr_accessor :labels
|
|
20236
|
+
|
|
20237
|
+
# Identifier. The resource name of the Memory Revision. Format: `projects/`
|
|
20238
|
+
# project`/locations/`location`/reasoningEngines/`reasoning_engine`/memories/`
|
|
20239
|
+
# memory`/revisions/`memory_revision``
|
|
20240
|
+
# Corresponds to the JSON property `name`
|
|
20241
|
+
# @return [String]
|
|
20242
|
+
attr_accessor :name
|
|
20243
|
+
|
|
20244
|
+
def initialize(**args)
|
|
20245
|
+
update!(**args)
|
|
20246
|
+
end
|
|
20247
|
+
|
|
20248
|
+
# Update properties of this object
|
|
20249
|
+
def update!(**args)
|
|
20250
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
|
20251
|
+
@expire_time = args[:expire_time] if args.key?(:expire_time)
|
|
20252
|
+
@extracted_memories = args[:extracted_memories] if args.key?(:extracted_memories)
|
|
20253
|
+
@fact = args[:fact] if args.key?(:fact)
|
|
20254
|
+
@labels = args[:labels] if args.key?(:labels)
|
|
20255
|
+
@name = args[:name] if args.key?(:name)
|
|
20256
|
+
end
|
|
20257
|
+
end
|
|
20258
|
+
|
|
20259
|
+
# A memory topic identifier. This will be used to label a Memory and to restrict
|
|
20260
|
+
# which topics are eligible for generation or retrieval.
|
|
20261
|
+
class GoogleCloudAiplatformV1MemoryTopicId
|
|
20262
|
+
include Google::Apis::Core::Hashable
|
|
20263
|
+
|
|
20264
|
+
# Optional. The custom memory topic label.
|
|
20265
|
+
# Corresponds to the JSON property `customMemoryTopicLabel`
|
|
20266
|
+
# @return [String]
|
|
20267
|
+
attr_accessor :custom_memory_topic_label
|
|
20268
|
+
|
|
20269
|
+
# Optional. The managed memory topic.
|
|
20270
|
+
# Corresponds to the JSON property `managedMemoryTopic`
|
|
20271
|
+
# @return [String]
|
|
20272
|
+
attr_accessor :managed_memory_topic
|
|
20273
|
+
|
|
20274
|
+
def initialize(**args)
|
|
20275
|
+
update!(**args)
|
|
20276
|
+
end
|
|
20277
|
+
|
|
20278
|
+
# Update properties of this object
|
|
20279
|
+
def update!(**args)
|
|
20280
|
+
@custom_memory_topic_label = args[:custom_memory_topic_label] if args.key?(:custom_memory_topic_label)
|
|
20281
|
+
@managed_memory_topic = args[:managed_memory_topic] if args.key?(:managed_memory_topic)
|
|
20282
|
+
end
|
|
20283
|
+
end
|
|
20284
|
+
|
|
19324
20285
|
# Request message for ModelService.MergeVersionAliases.
|
|
19325
20286
|
class GoogleCloudAiplatformV1MergeVersionAliasesRequest
|
|
19326
20287
|
include Google::Apis::Core::Hashable
|
|
@@ -24356,6 +25317,11 @@ module Google
|
|
|
24356
25317
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Blob]
|
|
24357
25318
|
attr_accessor :inline_data
|
|
24358
25319
|
|
|
25320
|
+
# per part media resolution. Media resolution for the input media.
|
|
25321
|
+
# Corresponds to the JSON property `mediaResolution`
|
|
25322
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PartMediaResolution]
|
|
25323
|
+
attr_accessor :media_resolution
|
|
25324
|
+
|
|
24359
25325
|
# Optional. The text content of the part.
|
|
24360
25326
|
# Corresponds to the JSON property `text`
|
|
24361
25327
|
# @return [String]
|
|
@@ -24393,6 +25359,7 @@ module Google
|
|
|
24393
25359
|
@function_call = args[:function_call] if args.key?(:function_call)
|
|
24394
25360
|
@function_response = args[:function_response] if args.key?(:function_response)
|
|
24395
25361
|
@inline_data = args[:inline_data] if args.key?(:inline_data)
|
|
25362
|
+
@media_resolution = args[:media_resolution] if args.key?(:media_resolution)
|
|
24396
25363
|
@text = args[:text] if args.key?(:text)
|
|
24397
25364
|
@thought = args[:thought] if args.key?(:thought)
|
|
24398
25365
|
@thought_signature = args[:thought_signature] if args.key?(:thought_signature)
|
|
@@ -24400,6 +25367,78 @@ module Google
|
|
|
24400
25367
|
end
|
|
24401
25368
|
end
|
|
24402
25369
|
|
|
25370
|
+
# per part media resolution. Media resolution for the input media.
|
|
25371
|
+
class GoogleCloudAiplatformV1PartMediaResolution
|
|
25372
|
+
include Google::Apis::Core::Hashable
|
|
25373
|
+
|
|
25374
|
+
# The tokenization quality used for given media.
|
|
25375
|
+
# Corresponds to the JSON property `level`
|
|
25376
|
+
# @return [String]
|
|
25377
|
+
attr_accessor :level
|
|
25378
|
+
|
|
25379
|
+
def initialize(**args)
|
|
25380
|
+
update!(**args)
|
|
25381
|
+
end
|
|
25382
|
+
|
|
25383
|
+
# Update properties of this object
|
|
25384
|
+
def update!(**args)
|
|
25385
|
+
@level = args[:level] if args.key?(:level)
|
|
25386
|
+
end
|
|
25387
|
+
end
|
|
25388
|
+
|
|
25389
|
+
# Partial argument value of the function call.
|
|
25390
|
+
class GoogleCloudAiplatformV1PartialArg
|
|
25391
|
+
include Google::Apis::Core::Hashable
|
|
25392
|
+
|
|
25393
|
+
# Optional. Represents a boolean value.
|
|
25394
|
+
# Corresponds to the JSON property `boolValue`
|
|
25395
|
+
# @return [Boolean]
|
|
25396
|
+
attr_accessor :bool_value
|
|
25397
|
+
alias_method :bool_value?, :bool_value
|
|
25398
|
+
|
|
25399
|
+
# Required. A JSON Path (RFC 9535) to the argument being streamed. https://
|
|
25400
|
+
# datatracker.ietf.org/doc/html/rfc9535. e.g. "$.foo.bar[0].data".
|
|
25401
|
+
# Corresponds to the JSON property `jsonPath`
|
|
25402
|
+
# @return [String]
|
|
25403
|
+
attr_accessor :json_path
|
|
25404
|
+
|
|
25405
|
+
# Optional. Represents a null value.
|
|
25406
|
+
# Corresponds to the JSON property `nullValue`
|
|
25407
|
+
# @return [String]
|
|
25408
|
+
attr_accessor :null_value
|
|
25409
|
+
|
|
25410
|
+
# Optional. Represents a double value.
|
|
25411
|
+
# Corresponds to the JSON property `numberValue`
|
|
25412
|
+
# @return [Float]
|
|
25413
|
+
attr_accessor :number_value
|
|
25414
|
+
|
|
25415
|
+
# Optional. Represents a string value.
|
|
25416
|
+
# Corresponds to the JSON property `stringValue`
|
|
25417
|
+
# @return [String]
|
|
25418
|
+
attr_accessor :string_value
|
|
25419
|
+
|
|
25420
|
+
# Optional. Whether this is not the last part of the same json_path. If true,
|
|
25421
|
+
# another PartialArg message for the current json_path is expected to follow.
|
|
25422
|
+
# Corresponds to the JSON property `willContinue`
|
|
25423
|
+
# @return [Boolean]
|
|
25424
|
+
attr_accessor :will_continue
|
|
25425
|
+
alias_method :will_continue?, :will_continue
|
|
25426
|
+
|
|
25427
|
+
def initialize(**args)
|
|
25428
|
+
update!(**args)
|
|
25429
|
+
end
|
|
25430
|
+
|
|
25431
|
+
# Update properties of this object
|
|
25432
|
+
def update!(**args)
|
|
25433
|
+
@bool_value = args[:bool_value] if args.key?(:bool_value)
|
|
25434
|
+
@json_path = args[:json_path] if args.key?(:json_path)
|
|
25435
|
+
@null_value = args[:null_value] if args.key?(:null_value)
|
|
25436
|
+
@number_value = args[:number_value] if args.key?(:number_value)
|
|
25437
|
+
@string_value = args[:string_value] if args.key?(:string_value)
|
|
25438
|
+
@will_continue = args[:will_continue] if args.key?(:will_continue)
|
|
25439
|
+
end
|
|
25440
|
+
end
|
|
25441
|
+
|
|
24403
25442
|
# Request message for JobService.PauseModelDeploymentMonitoringJob.
|
|
24404
25443
|
class GoogleCloudAiplatformV1PauseModelDeploymentMonitoringJobRequest
|
|
24405
25444
|
include Google::Apis::Core::Hashable
|
|
@@ -26959,6 +27998,34 @@ module Google
|
|
|
26959
27998
|
end
|
|
26960
27999
|
end
|
|
26961
28000
|
|
|
28001
|
+
# Request message for MemoryBankService.PurgeMemories.
|
|
28002
|
+
class GoogleCloudAiplatformV1PurgeMemoriesRequest
|
|
28003
|
+
include Google::Apis::Core::Hashable
|
|
28004
|
+
|
|
28005
|
+
# Required. The standard list filter to determine which memories to purge. More
|
|
28006
|
+
# detail in [AIP-160](https://google.aip.dev/160).
|
|
28007
|
+
# Corresponds to the JSON property `filter`
|
|
28008
|
+
# @return [String]
|
|
28009
|
+
attr_accessor :filter
|
|
28010
|
+
|
|
28011
|
+
# Optional. If true, the memories will actually be purged. If false, the purge
|
|
28012
|
+
# request will be validated but not executed.
|
|
28013
|
+
# Corresponds to the JSON property `force`
|
|
28014
|
+
# @return [Boolean]
|
|
28015
|
+
attr_accessor :force
|
|
28016
|
+
alias_method :force?, :force
|
|
28017
|
+
|
|
28018
|
+
def initialize(**args)
|
|
28019
|
+
update!(**args)
|
|
28020
|
+
end
|
|
28021
|
+
|
|
28022
|
+
# Update properties of this object
|
|
28023
|
+
def update!(**args)
|
|
28024
|
+
@filter = args[:filter] if args.key?(:filter)
|
|
28025
|
+
@force = args[:force] if args.key?(:force)
|
|
28026
|
+
end
|
|
28027
|
+
end
|
|
28028
|
+
|
|
26962
28029
|
# The spec of a Python packaged code.
|
|
26963
28030
|
class GoogleCloudAiplatformV1PythonPackageSpec
|
|
26964
28031
|
include Google::Apis::Core::Hashable
|
|
@@ -28992,6 +30059,11 @@ module Google
|
|
|
28992
30059
|
class GoogleCloudAiplatformV1ReasoningEngine
|
|
28993
30060
|
include Google::Apis::Core::Hashable
|
|
28994
30061
|
|
|
30062
|
+
# Configuration for how Agent Engine sub-resources should manage context.
|
|
30063
|
+
# Corresponds to the JSON property `contextSpec`
|
|
30064
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ReasoningEngineContextSpec]
|
|
30065
|
+
attr_accessor :context_spec
|
|
30066
|
+
|
|
28995
30067
|
# Output only. Timestamp when this ReasoningEngine was created.
|
|
28996
30068
|
# Corresponds to the JSON property `createTime`
|
|
28997
30069
|
# @return [String]
|
|
@@ -29046,6 +30118,7 @@ module Google
|
|
|
29046
30118
|
|
|
29047
30119
|
# Update properties of this object
|
|
29048
30120
|
def update!(**args)
|
|
30121
|
+
@context_spec = args[:context_spec] if args.key?(:context_spec)
|
|
29049
30122
|
@create_time = args[:create_time] if args.key?(:create_time)
|
|
29050
30123
|
@description = args[:description] if args.key?(:description)
|
|
29051
30124
|
@display_name = args[:display_name] if args.key?(:display_name)
|
|
@@ -29058,6 +30131,185 @@ module Google
|
|
|
29058
30131
|
end
|
|
29059
30132
|
end
|
|
29060
30133
|
|
|
30134
|
+
# Configuration for how Agent Engine sub-resources should manage context.
|
|
30135
|
+
class GoogleCloudAiplatformV1ReasoningEngineContextSpec
|
|
30136
|
+
include Google::Apis::Core::Hashable
|
|
30137
|
+
|
|
30138
|
+
# Specification for a Memory Bank.
|
|
30139
|
+
# Corresponds to the JSON property `memoryBankConfig`
|
|
30140
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ReasoningEngineContextSpecMemoryBankConfig]
|
|
30141
|
+
attr_accessor :memory_bank_config
|
|
30142
|
+
|
|
30143
|
+
def initialize(**args)
|
|
30144
|
+
update!(**args)
|
|
30145
|
+
end
|
|
30146
|
+
|
|
30147
|
+
# Update properties of this object
|
|
30148
|
+
def update!(**args)
|
|
30149
|
+
@memory_bank_config = args[:memory_bank_config] if args.key?(:memory_bank_config)
|
|
30150
|
+
end
|
|
30151
|
+
end
|
|
30152
|
+
|
|
30153
|
+
# Specification for a Memory Bank.
|
|
30154
|
+
class GoogleCloudAiplatformV1ReasoningEngineContextSpecMemoryBankConfig
|
|
30155
|
+
include Google::Apis::Core::Hashable
|
|
30156
|
+
|
|
30157
|
+
# Optional. Configuration for how to customize Memory Bank behavior for a
|
|
30158
|
+
# particular scope.
|
|
30159
|
+
# Corresponds to the JSON property `customizationConfigs`
|
|
30160
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MemoryBankCustomizationConfig>]
|
|
30161
|
+
attr_accessor :customization_configs
|
|
30162
|
+
|
|
30163
|
+
# If true, no memory revisions will be created for any requests to the Memory
|
|
30164
|
+
# Bank.
|
|
30165
|
+
# Corresponds to the JSON property `disableMemoryRevisions`
|
|
30166
|
+
# @return [Boolean]
|
|
30167
|
+
attr_accessor :disable_memory_revisions
|
|
30168
|
+
alias_method :disable_memory_revisions?, :disable_memory_revisions
|
|
30169
|
+
|
|
30170
|
+
# Configuration for how to generate memories.
|
|
30171
|
+
# Corresponds to the JSON property `generationConfig`
|
|
30172
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ReasoningEngineContextSpecMemoryBankConfigGenerationConfig]
|
|
30173
|
+
attr_accessor :generation_config
|
|
30174
|
+
|
|
30175
|
+
# Configuration for how to perform similarity search on memories.
|
|
30176
|
+
# Corresponds to the JSON property `similaritySearchConfig`
|
|
30177
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ReasoningEngineContextSpecMemoryBankConfigSimilaritySearchConfig]
|
|
30178
|
+
attr_accessor :similarity_search_config
|
|
30179
|
+
|
|
30180
|
+
# Configuration for automatically setting the TTL ("time-to-live") of the
|
|
30181
|
+
# memories in the Memory Bank.
|
|
30182
|
+
# Corresponds to the JSON property `ttlConfig`
|
|
30183
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ReasoningEngineContextSpecMemoryBankConfigTtlConfig]
|
|
30184
|
+
attr_accessor :ttl_config
|
|
30185
|
+
|
|
30186
|
+
def initialize(**args)
|
|
30187
|
+
update!(**args)
|
|
30188
|
+
end
|
|
30189
|
+
|
|
30190
|
+
# Update properties of this object
|
|
30191
|
+
def update!(**args)
|
|
30192
|
+
@customization_configs = args[:customization_configs] if args.key?(:customization_configs)
|
|
30193
|
+
@disable_memory_revisions = args[:disable_memory_revisions] if args.key?(:disable_memory_revisions)
|
|
30194
|
+
@generation_config = args[:generation_config] if args.key?(:generation_config)
|
|
30195
|
+
@similarity_search_config = args[:similarity_search_config] if args.key?(:similarity_search_config)
|
|
30196
|
+
@ttl_config = args[:ttl_config] if args.key?(:ttl_config)
|
|
30197
|
+
end
|
|
30198
|
+
end
|
|
30199
|
+
|
|
30200
|
+
# Configuration for how to generate memories.
|
|
30201
|
+
class GoogleCloudAiplatformV1ReasoningEngineContextSpecMemoryBankConfigGenerationConfig
|
|
30202
|
+
include Google::Apis::Core::Hashable
|
|
30203
|
+
|
|
30204
|
+
# Required. The model used to generate memories. Format: `projects/`project`/
|
|
30205
|
+
# locations/`location`/publishers/google/models/`model``.
|
|
30206
|
+
# Corresponds to the JSON property `model`
|
|
30207
|
+
# @return [String]
|
|
30208
|
+
attr_accessor :model
|
|
30209
|
+
|
|
30210
|
+
def initialize(**args)
|
|
30211
|
+
update!(**args)
|
|
30212
|
+
end
|
|
30213
|
+
|
|
30214
|
+
# Update properties of this object
|
|
30215
|
+
def update!(**args)
|
|
30216
|
+
@model = args[:model] if args.key?(:model)
|
|
30217
|
+
end
|
|
30218
|
+
end
|
|
30219
|
+
|
|
30220
|
+
# Configuration for how to perform similarity search on memories.
|
|
30221
|
+
class GoogleCloudAiplatformV1ReasoningEngineContextSpecMemoryBankConfigSimilaritySearchConfig
|
|
30222
|
+
include Google::Apis::Core::Hashable
|
|
30223
|
+
|
|
30224
|
+
# Required. The model used to generate embeddings to lookup similar memories.
|
|
30225
|
+
# Format: `projects/`project`/locations/`location`/publishers/google/models/`
|
|
30226
|
+
# model``.
|
|
30227
|
+
# Corresponds to the JSON property `embeddingModel`
|
|
30228
|
+
# @return [String]
|
|
30229
|
+
attr_accessor :embedding_model
|
|
30230
|
+
|
|
30231
|
+
def initialize(**args)
|
|
30232
|
+
update!(**args)
|
|
30233
|
+
end
|
|
30234
|
+
|
|
30235
|
+
# Update properties of this object
|
|
30236
|
+
def update!(**args)
|
|
30237
|
+
@embedding_model = args[:embedding_model] if args.key?(:embedding_model)
|
|
30238
|
+
end
|
|
30239
|
+
end
|
|
30240
|
+
|
|
30241
|
+
# Configuration for automatically setting the TTL ("time-to-live") of the
|
|
30242
|
+
# memories in the Memory Bank.
|
|
30243
|
+
class GoogleCloudAiplatformV1ReasoningEngineContextSpecMemoryBankConfigTtlConfig
|
|
30244
|
+
include Google::Apis::Core::Hashable
|
|
30245
|
+
|
|
30246
|
+
# Optional. The default TTL duration of the memories in the Memory Bank. This
|
|
30247
|
+
# applies to all operations that create or update a memory.
|
|
30248
|
+
# Corresponds to the JSON property `defaultTtl`
|
|
30249
|
+
# @return [String]
|
|
30250
|
+
attr_accessor :default_ttl
|
|
30251
|
+
|
|
30252
|
+
# Configuration for TTL of the memories in the Memory Bank based on the action
|
|
30253
|
+
# that created or updated the memory.
|
|
30254
|
+
# Corresponds to the JSON property `granularTtlConfig`
|
|
30255
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ReasoningEngineContextSpecMemoryBankConfigTtlConfigGranularTtlConfig]
|
|
30256
|
+
attr_accessor :granular_ttl_config
|
|
30257
|
+
|
|
30258
|
+
# Optional. The default TTL duration of the memory revisions in the Memory Bank.
|
|
30259
|
+
# This applies to all operations that create a memory revision. If not set, a
|
|
30260
|
+
# default TTL of 365 days will be used.
|
|
30261
|
+
# Corresponds to the JSON property `memoryRevisionDefaultTtl`
|
|
30262
|
+
# @return [String]
|
|
30263
|
+
attr_accessor :memory_revision_default_ttl
|
|
30264
|
+
|
|
30265
|
+
def initialize(**args)
|
|
30266
|
+
update!(**args)
|
|
30267
|
+
end
|
|
30268
|
+
|
|
30269
|
+
# Update properties of this object
|
|
30270
|
+
def update!(**args)
|
|
30271
|
+
@default_ttl = args[:default_ttl] if args.key?(:default_ttl)
|
|
30272
|
+
@granular_ttl_config = args[:granular_ttl_config] if args.key?(:granular_ttl_config)
|
|
30273
|
+
@memory_revision_default_ttl = args[:memory_revision_default_ttl] if args.key?(:memory_revision_default_ttl)
|
|
30274
|
+
end
|
|
30275
|
+
end
|
|
30276
|
+
|
|
30277
|
+
# Configuration for TTL of the memories in the Memory Bank based on the action
|
|
30278
|
+
# that created or updated the memory.
|
|
30279
|
+
class GoogleCloudAiplatformV1ReasoningEngineContextSpecMemoryBankConfigTtlConfigGranularTtlConfig
|
|
30280
|
+
include Google::Apis::Core::Hashable
|
|
30281
|
+
|
|
30282
|
+
# Optional. The TTL duration for memories uploaded via CreateMemory.
|
|
30283
|
+
# Corresponds to the JSON property `createTtl`
|
|
30284
|
+
# @return [String]
|
|
30285
|
+
attr_accessor :create_ttl
|
|
30286
|
+
|
|
30287
|
+
# Optional. The TTL duration for memories newly generated via GenerateMemories (
|
|
30288
|
+
# GenerateMemoriesResponse.GeneratedMemory.Action.CREATED).
|
|
30289
|
+
# Corresponds to the JSON property `generateCreatedTtl`
|
|
30290
|
+
# @return [String]
|
|
30291
|
+
attr_accessor :generate_created_ttl
|
|
30292
|
+
|
|
30293
|
+
# Optional. The TTL duration for memories updated via GenerateMemories (
|
|
30294
|
+
# GenerateMemoriesResponse.GeneratedMemory.Action.UPDATED). In the case of an
|
|
30295
|
+
# UPDATE action, the `expire_time` of the existing memory will be updated to the
|
|
30296
|
+
# new value (now + TTL).
|
|
30297
|
+
# Corresponds to the JSON property `generateUpdatedTtl`
|
|
30298
|
+
# @return [String]
|
|
30299
|
+
attr_accessor :generate_updated_ttl
|
|
30300
|
+
|
|
30301
|
+
def initialize(**args)
|
|
30302
|
+
update!(**args)
|
|
30303
|
+
end
|
|
30304
|
+
|
|
30305
|
+
# Update properties of this object
|
|
30306
|
+
def update!(**args)
|
|
30307
|
+
@create_ttl = args[:create_ttl] if args.key?(:create_ttl)
|
|
30308
|
+
@generate_created_ttl = args[:generate_created_ttl] if args.key?(:generate_created_ttl)
|
|
30309
|
+
@generate_updated_ttl = args[:generate_updated_ttl] if args.key?(:generate_updated_ttl)
|
|
30310
|
+
end
|
|
30311
|
+
end
|
|
30312
|
+
|
|
29061
30313
|
# ReasoningEngine configurations
|
|
29062
30314
|
class GoogleCloudAiplatformV1ReasoningEngineSpec
|
|
29063
30315
|
include Google::Apis::Core::Hashable
|
|
@@ -29080,6 +30332,23 @@ module Google
|
|
|
29080
30332
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec]
|
|
29081
30333
|
attr_accessor :deployment_spec
|
|
29082
30334
|
|
|
30335
|
+
# Output only. The identity to use for the Reasoning Engine. It can contain one
|
|
30336
|
+
# of the following values: * service-`project`@gcp-sa-aiplatform-re.googleapis.
|
|
30337
|
+
# com (for SERVICE_AGENT identity type) * `name`@`project`.gserviceaccount.com (
|
|
30338
|
+
# for SERVICE_ACCOUNT identity type) * agents.global.`org`.system.id.goog/
|
|
30339
|
+
# resources/aiplatform/projects/`project`/locations/`location`/reasoningEngines/`
|
|
30340
|
+
# reasoning_engine` (for AGENT_IDENTITY identity type)
|
|
30341
|
+
# Corresponds to the JSON property `effectiveIdentity`
|
|
30342
|
+
# @return [String]
|
|
30343
|
+
attr_accessor :effective_identity
|
|
30344
|
+
|
|
30345
|
+
# Optional. The identity type to use for the Reasoning Engine. If not specified,
|
|
30346
|
+
# the `service_account` field will be used if set, otherwise the default Vertex
|
|
30347
|
+
# AI Reasoning Engine Service Agent in the project will be used.
|
|
30348
|
+
# Corresponds to the JSON property `identityType`
|
|
30349
|
+
# @return [String]
|
|
30350
|
+
attr_accessor :identity_type
|
|
30351
|
+
|
|
29083
30352
|
# User-provided package specification, containing pickled object and package
|
|
29084
30353
|
# requirements.
|
|
29085
30354
|
# Corresponds to the JSON property `packageSpec`
|
|
@@ -29109,6 +30378,8 @@ module Google
|
|
|
29109
30378
|
@agent_framework = args[:agent_framework] if args.key?(:agent_framework)
|
|
29110
30379
|
@class_methods = args[:class_methods] if args.key?(:class_methods)
|
|
29111
30380
|
@deployment_spec = args[:deployment_spec] if args.key?(:deployment_spec)
|
|
30381
|
+
@effective_identity = args[:effective_identity] if args.key?(:effective_identity)
|
|
30382
|
+
@identity_type = args[:identity_type] if args.key?(:identity_type)
|
|
29112
30383
|
@package_spec = args[:package_spec] if args.key?(:package_spec)
|
|
29113
30384
|
@service_account = args[:service_account] if args.key?(:service_account)
|
|
29114
30385
|
@source_code_spec = args[:source_code_spec] if args.key?(:source_code_spec)
|
|
@@ -29227,6 +30498,12 @@ module Google
|
|
|
29227
30498
|
class GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpec
|
|
29228
30499
|
include Google::Apis::Core::Hashable
|
|
29229
30500
|
|
|
30501
|
+
# Specifies source code to be fetched from a Git repository managed through the
|
|
30502
|
+
# Developer Connect service.
|
|
30503
|
+
# Corresponds to the JSON property `developerConnectSource`
|
|
30504
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpecDeveloperConnectSource]
|
|
30505
|
+
attr_accessor :developer_connect_source
|
|
30506
|
+
|
|
29230
30507
|
# Specifies source code provided as a byte stream.
|
|
29231
30508
|
# Corresponds to the JSON property `inlineSource`
|
|
29232
30509
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpecInlineSource]
|
|
@@ -29243,16 +30520,74 @@ module Google
|
|
|
29243
30520
|
|
|
29244
30521
|
# Update properties of this object
|
|
29245
30522
|
def update!(**args)
|
|
30523
|
+
@developer_connect_source = args[:developer_connect_source] if args.key?(:developer_connect_source)
|
|
29246
30524
|
@inline_source = args[:inline_source] if args.key?(:inline_source)
|
|
29247
30525
|
@python_spec = args[:python_spec] if args.key?(:python_spec)
|
|
29248
30526
|
end
|
|
29249
30527
|
end
|
|
29250
30528
|
|
|
30529
|
+
# Specifies the configuration for fetching source code from a Git repository
|
|
30530
|
+
# that is managed by Developer Connect. This includes the repository, revision,
|
|
30531
|
+
# and directory to use.
|
|
30532
|
+
class GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpecDeveloperConnectConfig
|
|
30533
|
+
include Google::Apis::Core::Hashable
|
|
30534
|
+
|
|
30535
|
+
# Required. Directory, relative to the source root, in which to run the build.
|
|
30536
|
+
# Corresponds to the JSON property `dir`
|
|
30537
|
+
# @return [String]
|
|
30538
|
+
attr_accessor :dir
|
|
30539
|
+
|
|
30540
|
+
# Required. The Developer Connect Git repository link, formatted as `projects/*/
|
|
30541
|
+
# locations/*/connections/*/gitRepositoryLink/*`.
|
|
30542
|
+
# Corresponds to the JSON property `gitRepositoryLink`
|
|
30543
|
+
# @return [String]
|
|
30544
|
+
attr_accessor :git_repository_link
|
|
30545
|
+
|
|
30546
|
+
# Required. The revision to fetch from the Git repository such as a branch, a
|
|
30547
|
+
# tag, a commit SHA, or any Git ref.
|
|
30548
|
+
# Corresponds to the JSON property `revision`
|
|
30549
|
+
# @return [String]
|
|
30550
|
+
attr_accessor :revision
|
|
30551
|
+
|
|
30552
|
+
def initialize(**args)
|
|
30553
|
+
update!(**args)
|
|
30554
|
+
end
|
|
30555
|
+
|
|
30556
|
+
# Update properties of this object
|
|
30557
|
+
def update!(**args)
|
|
30558
|
+
@dir = args[:dir] if args.key?(:dir)
|
|
30559
|
+
@git_repository_link = args[:git_repository_link] if args.key?(:git_repository_link)
|
|
30560
|
+
@revision = args[:revision] if args.key?(:revision)
|
|
30561
|
+
end
|
|
30562
|
+
end
|
|
30563
|
+
|
|
30564
|
+
# Specifies source code to be fetched from a Git repository managed through the
|
|
30565
|
+
# Developer Connect service.
|
|
30566
|
+
class GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpecDeveloperConnectSource
|
|
30567
|
+
include Google::Apis::Core::Hashable
|
|
30568
|
+
|
|
30569
|
+
# Specifies the configuration for fetching source code from a Git repository
|
|
30570
|
+
# that is managed by Developer Connect. This includes the repository, revision,
|
|
30571
|
+
# and directory to use.
|
|
30572
|
+
# Corresponds to the JSON property `config`
|
|
30573
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpecDeveloperConnectConfig]
|
|
30574
|
+
attr_accessor :config
|
|
30575
|
+
|
|
30576
|
+
def initialize(**args)
|
|
30577
|
+
update!(**args)
|
|
30578
|
+
end
|
|
30579
|
+
|
|
30580
|
+
# Update properties of this object
|
|
30581
|
+
def update!(**args)
|
|
30582
|
+
@config = args[:config] if args.key?(:config)
|
|
30583
|
+
end
|
|
30584
|
+
end
|
|
30585
|
+
|
|
29251
30586
|
# Specifies source code provided as a byte stream.
|
|
29252
30587
|
class GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpecInlineSource
|
|
29253
30588
|
include Google::Apis::Core::Hashable
|
|
29254
30589
|
|
|
29255
|
-
# Required. Input only. The application source code archive
|
|
30590
|
+
# Required. Input only. The application source code archive. It must be a
|
|
29256
30591
|
# compressed tarball (.tar.gz) file.
|
|
29257
30592
|
# Corresponds to the JSON property `sourceArchive`
|
|
29258
30593
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
@@ -29454,6 +30789,34 @@ module Google
|
|
|
29454
30789
|
end
|
|
29455
30790
|
end
|
|
29456
30791
|
|
|
30792
|
+
# The configuration for the replicated voice to use.
|
|
30793
|
+
class GoogleCloudAiplatformV1ReplicatedVoiceConfig
|
|
30794
|
+
include Google::Apis::Core::Hashable
|
|
30795
|
+
|
|
30796
|
+
# Optional. The mimetype of the voice sample. The only currently supported value
|
|
30797
|
+
# is `audio/wav`. This represents 16-bit signed little-endian wav data, with a
|
|
30798
|
+
# 24kHz sampling rate. `mime_type` will default to `audio/wav` if not set.
|
|
30799
|
+
# Corresponds to the JSON property `mimeType`
|
|
30800
|
+
# @return [String]
|
|
30801
|
+
attr_accessor :mime_type
|
|
30802
|
+
|
|
30803
|
+
# Optional. The sample of the custom voice.
|
|
30804
|
+
# Corresponds to the JSON property `voiceSampleAudio`
|
|
30805
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
30806
|
+
# @return [String]
|
|
30807
|
+
attr_accessor :voice_sample_audio
|
|
30808
|
+
|
|
30809
|
+
def initialize(**args)
|
|
30810
|
+
update!(**args)
|
|
30811
|
+
end
|
|
30812
|
+
|
|
30813
|
+
# Update properties of this object
|
|
30814
|
+
def update!(**args)
|
|
30815
|
+
@mime_type = args[:mime_type] if args.key?(:mime_type)
|
|
30816
|
+
@voice_sample_audio = args[:voice_sample_audio] if args.key?(:voice_sample_audio)
|
|
30817
|
+
end
|
|
30818
|
+
end
|
|
30819
|
+
|
|
29457
30820
|
# A ReservationAffinity can be used to configure a Vertex AI resource (e.g., a
|
|
29458
30821
|
# DeployedModel) to draw its Compute Engine resources from a Shared Reservation,
|
|
29459
30822
|
# or exclusively from on-demand capacity.
|
|
@@ -29893,6 +31256,179 @@ module Google
|
|
|
29893
31256
|
end
|
|
29894
31257
|
end
|
|
29895
31258
|
|
|
31259
|
+
# Request message for MemoryBankService.RetrieveMemories.
|
|
31260
|
+
class GoogleCloudAiplatformV1RetrieveMemoriesRequest
|
|
31261
|
+
include Google::Apis::Core::Hashable
|
|
31262
|
+
|
|
31263
|
+
# Optional. The standard list filter that will be applied to the retrieved
|
|
31264
|
+
# memories. More detail in [AIP-160](https://google.aip.dev/160). Supported
|
|
31265
|
+
# fields: * `fact` * `create_time` * `update_time` * `topics` (i.e. `topics.
|
|
31266
|
+
# custom_memory_topic_label: "example topic" OR topics.managed_memory_topic:
|
|
31267
|
+
# USER_PREFERENCES`)
|
|
31268
|
+
# Corresponds to the JSON property `filter`
|
|
31269
|
+
# @return [String]
|
|
31270
|
+
attr_accessor :filter
|
|
31271
|
+
|
|
31272
|
+
# Required. The scope of the memories to retrieve. A memory must have exactly
|
|
31273
|
+
# the same scope (`Memory.scope`) as the scope provided here to be retrieved (
|
|
31274
|
+
# same keys and values). Order does not matter, but it is case-sensitive.
|
|
31275
|
+
# Corresponds to the JSON property `scope`
|
|
31276
|
+
# @return [Hash<String,String>]
|
|
31277
|
+
attr_accessor :scope
|
|
31278
|
+
|
|
31279
|
+
# Parameters for semantic similarity search based retrieval.
|
|
31280
|
+
# Corresponds to the JSON property `similaritySearchParams`
|
|
31281
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RetrieveMemoriesRequestSimilaritySearchParams]
|
|
31282
|
+
attr_accessor :similarity_search_params
|
|
31283
|
+
|
|
31284
|
+
# Parameters for simple (non-similarity search) retrieval.
|
|
31285
|
+
# Corresponds to the JSON property `simpleRetrievalParams`
|
|
31286
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RetrieveMemoriesRequestSimpleRetrievalParams]
|
|
31287
|
+
attr_accessor :simple_retrieval_params
|
|
31288
|
+
|
|
31289
|
+
def initialize(**args)
|
|
31290
|
+
update!(**args)
|
|
31291
|
+
end
|
|
31292
|
+
|
|
31293
|
+
# Update properties of this object
|
|
31294
|
+
def update!(**args)
|
|
31295
|
+
@filter = args[:filter] if args.key?(:filter)
|
|
31296
|
+
@scope = args[:scope] if args.key?(:scope)
|
|
31297
|
+
@similarity_search_params = args[:similarity_search_params] if args.key?(:similarity_search_params)
|
|
31298
|
+
@simple_retrieval_params = args[:simple_retrieval_params] if args.key?(:simple_retrieval_params)
|
|
31299
|
+
end
|
|
31300
|
+
end
|
|
31301
|
+
|
|
31302
|
+
# Parameters for semantic similarity search based retrieval.
|
|
31303
|
+
class GoogleCloudAiplatformV1RetrieveMemoriesRequestSimilaritySearchParams
|
|
31304
|
+
include Google::Apis::Core::Hashable
|
|
31305
|
+
|
|
31306
|
+
# Required. Query to use for similarity search retrieval. If provided, then the
|
|
31307
|
+
# parent ReasoningEngine must have ReasoningEngineContextSpec.MemoryBankConfig.
|
|
31308
|
+
# SimilaritySearchConfig set.
|
|
31309
|
+
# Corresponds to the JSON property `searchQuery`
|
|
31310
|
+
# @return [String]
|
|
31311
|
+
attr_accessor :search_query
|
|
31312
|
+
|
|
31313
|
+
# Optional. The maximum number of memories to return. The service may return
|
|
31314
|
+
# fewer than this value. If unspecified, at most 3 memories will be returned.
|
|
31315
|
+
# The maximum value is 100; values above 100 will be coerced to 100.
|
|
31316
|
+
# Corresponds to the JSON property `topK`
|
|
31317
|
+
# @return [Fixnum]
|
|
31318
|
+
attr_accessor :top_k
|
|
31319
|
+
|
|
31320
|
+
def initialize(**args)
|
|
31321
|
+
update!(**args)
|
|
31322
|
+
end
|
|
31323
|
+
|
|
31324
|
+
# Update properties of this object
|
|
31325
|
+
def update!(**args)
|
|
31326
|
+
@search_query = args[:search_query] if args.key?(:search_query)
|
|
31327
|
+
@top_k = args[:top_k] if args.key?(:top_k)
|
|
31328
|
+
end
|
|
31329
|
+
end
|
|
31330
|
+
|
|
31331
|
+
# Parameters for simple (non-similarity search) retrieval.
|
|
31332
|
+
class GoogleCloudAiplatformV1RetrieveMemoriesRequestSimpleRetrievalParams
|
|
31333
|
+
include Google::Apis::Core::Hashable
|
|
31334
|
+
|
|
31335
|
+
# Optional. The maximum number of memories to return. The service may return
|
|
31336
|
+
# fewer than this value. If unspecified, at most 3 memories will be returned.
|
|
31337
|
+
# The maximum value is 100; values above 100 will be coerced to 100.
|
|
31338
|
+
# Corresponds to the JSON property `pageSize`
|
|
31339
|
+
# @return [Fixnum]
|
|
31340
|
+
attr_accessor :page_size
|
|
31341
|
+
|
|
31342
|
+
# Optional. A page token, received from a previous `RetrieveMemories` call.
|
|
31343
|
+
# Provide this to retrieve the subsequent page.
|
|
31344
|
+
# Corresponds to the JSON property `pageToken`
|
|
31345
|
+
# @return [String]
|
|
31346
|
+
attr_accessor :page_token
|
|
31347
|
+
|
|
31348
|
+
def initialize(**args)
|
|
31349
|
+
update!(**args)
|
|
31350
|
+
end
|
|
31351
|
+
|
|
31352
|
+
# Update properties of this object
|
|
31353
|
+
def update!(**args)
|
|
31354
|
+
@page_size = args[:page_size] if args.key?(:page_size)
|
|
31355
|
+
@page_token = args[:page_token] if args.key?(:page_token)
|
|
31356
|
+
end
|
|
31357
|
+
end
|
|
31358
|
+
|
|
31359
|
+
# Response message for MemoryBankService.RetrieveMemories.
|
|
31360
|
+
class GoogleCloudAiplatformV1RetrieveMemoriesResponse
|
|
31361
|
+
include Google::Apis::Core::Hashable
|
|
31362
|
+
|
|
31363
|
+
# A token that can be sent as `page_token` to retrieve the next page. If this
|
|
31364
|
+
# field is omitted, there are no subsequent pages. This token is not set if
|
|
31365
|
+
# similarity search was used for retrieval.
|
|
31366
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
31367
|
+
# @return [String]
|
|
31368
|
+
attr_accessor :next_page_token
|
|
31369
|
+
|
|
31370
|
+
# The retrieved memories.
|
|
31371
|
+
# Corresponds to the JSON property `retrievedMemories`
|
|
31372
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RetrieveMemoriesResponseRetrievedMemory>]
|
|
31373
|
+
attr_accessor :retrieved_memories
|
|
31374
|
+
|
|
31375
|
+
def initialize(**args)
|
|
31376
|
+
update!(**args)
|
|
31377
|
+
end
|
|
31378
|
+
|
|
31379
|
+
# Update properties of this object
|
|
31380
|
+
def update!(**args)
|
|
31381
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
31382
|
+
@retrieved_memories = args[:retrieved_memories] if args.key?(:retrieved_memories)
|
|
31383
|
+
end
|
|
31384
|
+
end
|
|
31385
|
+
|
|
31386
|
+
# A retrieved memory.
|
|
31387
|
+
class GoogleCloudAiplatformV1RetrieveMemoriesResponseRetrievedMemory
|
|
31388
|
+
include Google::Apis::Core::Hashable
|
|
31389
|
+
|
|
31390
|
+
# The distance between the query and the retrieved Memory. Smaller values
|
|
31391
|
+
# indicate more similar memories. This is only set if similarity search was used
|
|
31392
|
+
# for retrieval.
|
|
31393
|
+
# Corresponds to the JSON property `distance`
|
|
31394
|
+
# @return [Float]
|
|
31395
|
+
attr_accessor :distance
|
|
31396
|
+
|
|
31397
|
+
# A memory.
|
|
31398
|
+
# Corresponds to the JSON property `memory`
|
|
31399
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Memory]
|
|
31400
|
+
attr_accessor :memory
|
|
31401
|
+
|
|
31402
|
+
def initialize(**args)
|
|
31403
|
+
update!(**args)
|
|
31404
|
+
end
|
|
31405
|
+
|
|
31406
|
+
# Update properties of this object
|
|
31407
|
+
def update!(**args)
|
|
31408
|
+
@distance = args[:distance] if args.key?(:distance)
|
|
31409
|
+
@memory = args[:memory] if args.key?(:memory)
|
|
31410
|
+
end
|
|
31411
|
+
end
|
|
31412
|
+
|
|
31413
|
+
# Request message for MemoryBankService.RollbackMemory.
|
|
31414
|
+
class GoogleCloudAiplatformV1RollbackMemoryRequest
|
|
31415
|
+
include Google::Apis::Core::Hashable
|
|
31416
|
+
|
|
31417
|
+
# Required. The ID of the revision to rollback to.
|
|
31418
|
+
# Corresponds to the JSON property `targetRevisionId`
|
|
31419
|
+
# @return [Fixnum]
|
|
31420
|
+
attr_accessor :target_revision_id
|
|
31421
|
+
|
|
31422
|
+
def initialize(**args)
|
|
31423
|
+
update!(**args)
|
|
31424
|
+
end
|
|
31425
|
+
|
|
31426
|
+
# Update properties of this object
|
|
31427
|
+
def update!(**args)
|
|
31428
|
+
@target_revision_id = args[:target_revision_id] if args.key?(:target_revision_id)
|
|
31429
|
+
end
|
|
31430
|
+
end
|
|
31431
|
+
|
|
29896
31432
|
# Input for rouge metric.
|
|
29897
31433
|
class GoogleCloudAiplatformV1RougeInput
|
|
29898
31434
|
include Google::Apis::Core::Hashable
|
|
@@ -38272,6 +39808,152 @@ module Google
|
|
|
38272
39808
|
end
|
|
38273
39809
|
end
|
|
38274
39810
|
|
|
39811
|
+
# A session contains a set of actions between users and Vertex agents.
|
|
39812
|
+
class GoogleCloudAiplatformV1Session
|
|
39813
|
+
include Google::Apis::Core::Hashable
|
|
39814
|
+
|
|
39815
|
+
# Output only. Timestamp when the session was created.
|
|
39816
|
+
# Corresponds to the JSON property `createTime`
|
|
39817
|
+
# @return [String]
|
|
39818
|
+
attr_accessor :create_time
|
|
39819
|
+
|
|
39820
|
+
# Optional. The display name of the session.
|
|
39821
|
+
# Corresponds to the JSON property `displayName`
|
|
39822
|
+
# @return [String]
|
|
39823
|
+
attr_accessor :display_name
|
|
39824
|
+
|
|
39825
|
+
# Optional. Timestamp of when this session is considered expired. This is *
|
|
39826
|
+
# always* provided on output, regardless of what was sent on input. The minimum
|
|
39827
|
+
# value is 24 hours from the time of creation.
|
|
39828
|
+
# Corresponds to the JSON property `expireTime`
|
|
39829
|
+
# @return [String]
|
|
39830
|
+
attr_accessor :expire_time
|
|
39831
|
+
|
|
39832
|
+
# The labels with user-defined metadata to organize your Sessions. Label keys
|
|
39833
|
+
# and values can be no longer than 64 characters (Unicode codepoints), can only
|
|
39834
|
+
# contain lowercase letters, numeric characters, underscores and dashes.
|
|
39835
|
+
# International characters are allowed. See https://goo.gl/xmQnxf for more
|
|
39836
|
+
# information and examples of labels.
|
|
39837
|
+
# Corresponds to the JSON property `labels`
|
|
39838
|
+
# @return [Hash<String,String>]
|
|
39839
|
+
attr_accessor :labels
|
|
39840
|
+
|
|
39841
|
+
# Identifier. The resource name of the session. Format: 'projects/`project`/
|
|
39842
|
+
# locations/`location`/reasoningEngines/`reasoning_engine`/sessions/`session`'.
|
|
39843
|
+
# Corresponds to the JSON property `name`
|
|
39844
|
+
# @return [String]
|
|
39845
|
+
attr_accessor :name
|
|
39846
|
+
|
|
39847
|
+
# Optional. Session specific memory which stores key conversation points.
|
|
39848
|
+
# Corresponds to the JSON property `sessionState`
|
|
39849
|
+
# @return [Hash<String,Object>]
|
|
39850
|
+
attr_accessor :session_state
|
|
39851
|
+
|
|
39852
|
+
# Optional. Input only. The TTL for this session. The minimum value is 24 hours.
|
|
39853
|
+
# Corresponds to the JSON property `ttl`
|
|
39854
|
+
# @return [String]
|
|
39855
|
+
attr_accessor :ttl
|
|
39856
|
+
|
|
39857
|
+
# Output only. Timestamp when the session was updated.
|
|
39858
|
+
# Corresponds to the JSON property `updateTime`
|
|
39859
|
+
# @return [String]
|
|
39860
|
+
attr_accessor :update_time
|
|
39861
|
+
|
|
39862
|
+
# Required. Immutable. String id provided by the user
|
|
39863
|
+
# Corresponds to the JSON property `userId`
|
|
39864
|
+
# @return [String]
|
|
39865
|
+
attr_accessor :user_id
|
|
39866
|
+
|
|
39867
|
+
def initialize(**args)
|
|
39868
|
+
update!(**args)
|
|
39869
|
+
end
|
|
39870
|
+
|
|
39871
|
+
# Update properties of this object
|
|
39872
|
+
def update!(**args)
|
|
39873
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
|
39874
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
|
39875
|
+
@expire_time = args[:expire_time] if args.key?(:expire_time)
|
|
39876
|
+
@labels = args[:labels] if args.key?(:labels)
|
|
39877
|
+
@name = args[:name] if args.key?(:name)
|
|
39878
|
+
@session_state = args[:session_state] if args.key?(:session_state)
|
|
39879
|
+
@ttl = args[:ttl] if args.key?(:ttl)
|
|
39880
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
|
39881
|
+
@user_id = args[:user_id] if args.key?(:user_id)
|
|
39882
|
+
end
|
|
39883
|
+
end
|
|
39884
|
+
|
|
39885
|
+
# An event represents a message from either the user or agent.
|
|
39886
|
+
class GoogleCloudAiplatformV1SessionEvent
|
|
39887
|
+
include Google::Apis::Core::Hashable
|
|
39888
|
+
|
|
39889
|
+
# Actions are parts of events that are executed by the agent.
|
|
39890
|
+
# Corresponds to the JSON property `actions`
|
|
39891
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EventActions]
|
|
39892
|
+
attr_accessor :actions
|
|
39893
|
+
|
|
39894
|
+
# Required. The name of the agent that sent the event, or user.
|
|
39895
|
+
# Corresponds to the JSON property `author`
|
|
39896
|
+
# @return [String]
|
|
39897
|
+
attr_accessor :author
|
|
39898
|
+
|
|
39899
|
+
# The structured data content of a message. A Content message contains a `role`
|
|
39900
|
+
# field, which indicates the producer of the content, and a `parts` field, which
|
|
39901
|
+
# contains the multi-part data of the message.
|
|
39902
|
+
# Corresponds to the JSON property `content`
|
|
39903
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Content]
|
|
39904
|
+
attr_accessor :content
|
|
39905
|
+
|
|
39906
|
+
# Optional. Error code if the response is an error. Code varies by model.
|
|
39907
|
+
# Corresponds to the JSON property `errorCode`
|
|
39908
|
+
# @return [String]
|
|
39909
|
+
attr_accessor :error_code
|
|
39910
|
+
|
|
39911
|
+
# Optional. Error message if the response is an error.
|
|
39912
|
+
# Corresponds to the JSON property `errorMessage`
|
|
39913
|
+
# @return [String]
|
|
39914
|
+
attr_accessor :error_message
|
|
39915
|
+
|
|
39916
|
+
# Metadata relating to a LLM response event.
|
|
39917
|
+
# Corresponds to the JSON property `eventMetadata`
|
|
39918
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EventMetadata]
|
|
39919
|
+
attr_accessor :event_metadata
|
|
39920
|
+
|
|
39921
|
+
# Required. The invocation id of the event, multiple events can have the same
|
|
39922
|
+
# invocation id.
|
|
39923
|
+
# Corresponds to the JSON property `invocationId`
|
|
39924
|
+
# @return [String]
|
|
39925
|
+
attr_accessor :invocation_id
|
|
39926
|
+
|
|
39927
|
+
# Identifier. The resource name of the event. Format:`projects/`project`/
|
|
39928
|
+
# locations/`location`/reasoningEngines/`reasoning_engine`/sessions/`session`/
|
|
39929
|
+
# events/`event``.
|
|
39930
|
+
# Corresponds to the JSON property `name`
|
|
39931
|
+
# @return [String]
|
|
39932
|
+
attr_accessor :name
|
|
39933
|
+
|
|
39934
|
+
# Required. Timestamp when the event was created on client side.
|
|
39935
|
+
# Corresponds to the JSON property `timestamp`
|
|
39936
|
+
# @return [String]
|
|
39937
|
+
attr_accessor :timestamp
|
|
39938
|
+
|
|
39939
|
+
def initialize(**args)
|
|
39940
|
+
update!(**args)
|
|
39941
|
+
end
|
|
39942
|
+
|
|
39943
|
+
# Update properties of this object
|
|
39944
|
+
def update!(**args)
|
|
39945
|
+
@actions = args[:actions] if args.key?(:actions)
|
|
39946
|
+
@author = args[:author] if args.key?(:author)
|
|
39947
|
+
@content = args[:content] if args.key?(:content)
|
|
39948
|
+
@error_code = args[:error_code] if args.key?(:error_code)
|
|
39949
|
+
@error_message = args[:error_message] if args.key?(:error_message)
|
|
39950
|
+
@event_metadata = args[:event_metadata] if args.key?(:event_metadata)
|
|
39951
|
+
@invocation_id = args[:invocation_id] if args.key?(:invocation_id)
|
|
39952
|
+
@name = args[:name] if args.key?(:name)
|
|
39953
|
+
@timestamp = args[:timestamp] if args.key?(:timestamp)
|
|
39954
|
+
end
|
|
39955
|
+
end
|
|
39956
|
+
|
|
38275
39957
|
# The SharePointSources to pass to ImportRagFiles.
|
|
38276
39958
|
class GoogleCloudAiplatformV1SharePointSources
|
|
38277
39959
|
include Google::Apis::Core::Hashable
|
|
@@ -44341,6 +46023,11 @@ module Google
|
|
|
44341
46023
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PrebuiltVoiceConfig]
|
|
44342
46024
|
attr_accessor :prebuilt_voice_config
|
|
44343
46025
|
|
|
46026
|
+
# The configuration for the replicated voice to use.
|
|
46027
|
+
# Corresponds to the JSON property `replicatedVoiceConfig`
|
|
46028
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ReplicatedVoiceConfig]
|
|
46029
|
+
attr_accessor :replicated_voice_config
|
|
46030
|
+
|
|
44344
46031
|
def initialize(**args)
|
|
44345
46032
|
update!(**args)
|
|
44346
46033
|
end
|
|
@@ -44348,6 +46035,7 @@ module Google
|
|
|
44348
46035
|
# Update properties of this object
|
|
44349
46036
|
def update!(**args)
|
|
44350
46037
|
@prebuilt_voice_config = args[:prebuilt_voice_config] if args.key?(:prebuilt_voice_config)
|
|
46038
|
+
@replicated_voice_config = args[:replicated_voice_config] if args.key?(:replicated_voice_config)
|
|
44351
46039
|
end
|
|
44352
46040
|
end
|
|
44353
46041
|
|
|
@@ -44926,8 +46614,9 @@ module Google
|
|
|
44926
46614
|
attr_accessor :operations
|
|
44927
46615
|
|
|
44928
46616
|
# Unordered list. Unreachable resources. Populated when the request sets `
|
|
44929
|
-
# ListOperationsRequest.return_partial_success` and reads across collections
|
|
44930
|
-
# when attempting to list all resources across all supported
|
|
46617
|
+
# ListOperationsRequest.return_partial_success` and reads across collections.
|
|
46618
|
+
# For example, when attempting to list all resources across all supported
|
|
46619
|
+
# locations.
|
|
44931
46620
|
# Corresponds to the JSON property `unreachable`
|
|
44932
46621
|
# @return [Array<String>]
|
|
44933
46622
|
attr_accessor :unreachable
|