google-apis-aiplatform_v1 0.74.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.
@@ -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
- # and unmanaged_container_model must be set. The model resource name may contain
2127
- # version id or version alias to specify the version. Example: `projects/`
2128
- # project`/locations/`location`/models/`model`@2` or `projects/`project`/
2129
- # locations/`location`/models/`model`@golden` if no version is specified, the
2130
- # default version will be deployed. The model resource could also be a publisher
2131
- # model. Example: `publishers/`publisher`/models/`model`` or `projects/`project`/
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
 
@@ -14897,6 +15056,12 @@ module Google
14897
15056
  # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Content>]
14898
15057
  attr_accessor :contents
14899
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
+
14900
15065
  # The spec for a pre-defined metric.
14901
15066
  # Corresponds to the JSON property `predefinedRubricGenerationSpec`
14902
15067
  # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PredefinedMetricSpec]
@@ -14915,6 +15080,7 @@ module Google
14915
15080
  def update!(**args)
14916
15081
  @agent_config = args[:agent_config] if args.key?(:agent_config)
14917
15082
  @contents = args[:contents] if args.key?(:contents)
15083
+ @location = args[:location] if args.key?(:location)
14918
15084
  @predefined_rubric_generation_spec = args[:predefined_rubric_generation_spec] if args.key?(:predefined_rubric_generation_spec)
14919
15085
  @rubric_generation_spec = args[:rubric_generation_spec] if args.key?(:rubric_generation_spec)
14920
15086
  end
@@ -14939,6 +15105,211 @@ module Google
14939
15105
  end
14940
15106
  end
14941
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
+
14942
15313
  # Request message for DataFoundryService.GenerateSyntheticData.
14943
15314
  class GoogleCloudAiplatformV1GenerateSyntheticDataRequest
14944
15315
  include Google::Apis::Core::Hashable
@@ -17395,6 +17766,25 @@ module Google
17395
17766
  end
17396
17767
  end
17397
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
+
17398
17788
  # Request message for PredictionService.Invoke.
17399
17789
  class GoogleCloudAiplatformV1InvokeRequest
17400
17790
  include Google::Apis::Core::Hashable
@@ -18017,6 +18407,32 @@ module Google
18017
18407
  end
18018
18408
  end
18019
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
+
18020
18436
  # Response message for MetadataService.ListExecutions.
18021
18437
  class GoogleCloudAiplatformV1ListExecutionsResponse
18022
18438
  include Google::Apis::Core::Hashable
@@ -18281,6 +18697,58 @@ module Google
18281
18697
  end
18282
18698
  end
18283
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
+
18284
18752
  # Response message for MetadataService.ListMetadataSchemas.
18285
18753
  class GoogleCloudAiplatformV1ListMetadataSchemasResponse
18286
18754
  include Google::Apis::Core::Hashable
@@ -18837,6 +19305,32 @@ module Google
18837
19305
  end
18838
19306
  end
18839
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
+
18840
19334
  # Response message for SpecialistPoolService.ListSpecialistPools.
18841
19335
  class GoogleCloudAiplatformV1ListSpecialistPoolsResponse
18842
19336
  include Google::Apis::Core::Hashable
@@ -19224,7 +19718,20 @@ module Google
19224
19718
  class GoogleCloudAiplatformV1MachineSpec
19225
19719
  include Google::Apis::Core::Hashable
19226
19720
 
19227
- # 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.
19228
19735
  # Corresponds to the JSON property `acceleratorCount`
19229
19736
  # @return [Fixnum]
19230
19737
  attr_accessor :accelerator_count
@@ -19235,6 +19742,19 @@ module Google
19235
19742
  # @return [String]
19236
19743
  attr_accessor :accelerator_type
19237
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
+
19238
19758
  # Immutable. The type of the machine. See the [list of machine types supported
19239
19759
  # for prediction](https://cloud.google.com/vertex-ai/docs/predictions/configure-
19240
19760
  # compute#machine-types) See the [list of machine types supported for custom
@@ -19267,6 +19787,7 @@ module Google
19267
19787
  def update!(**args)
19268
19788
  @accelerator_count = args[:accelerator_count] if args.key?(:accelerator_count)
19269
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)
19270
19791
  @machine_type = args[:machine_type] if args.key?(:machine_type)
19271
19792
  @reservation_affinity = args[:reservation_affinity] if args.key?(:reservation_affinity)
19272
19793
  @tpu_topology = args[:tpu_topology] if args.key?(:tpu_topology)
@@ -19358,10 +19879,126 @@ module Google
19358
19879
  end
19359
19880
  end
19360
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
+
19361
19989
  # Configuration for organizing memories for a particular scope.
19362
19990
  class GoogleCloudAiplatformV1MemoryBankCustomizationConfig
19363
19991
  include Google::Apis::Core::Hashable
19364
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
+
19365
20002
  # Optional. Examples of how to generate memories for a particular scope.
19366
20003
  # Corresponds to the JSON property `generateMemoriesExamples`
19367
20004
  # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MemoryBankCustomizationConfigGenerateMemoriesExample>]
@@ -19389,6 +20026,7 @@ module Google
19389
20026
 
19390
20027
  # Update properties of this object
19391
20028
  def update!(**args)
20029
+ @enable_third_person_memories = args[:enable_third_person_memories] if args.key?(:enable_third_person_memories)
19392
20030
  @generate_memories_examples = args[:generate_memories_examples] if args.key?(:generate_memories_examples)
19393
20031
  @memory_topics = args[:memory_topics] if args.key?(:memory_topics)
19394
20032
  @scope_keys = args[:scope_keys] if args.key?(:scope_keys)
@@ -19562,6 +20200,62 @@ module Google
19562
20200
  end
19563
20201
  end
19564
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
+
19565
20259
  # A memory topic identifier. This will be used to label a Memory and to restrict
19566
20260
  # which topics are eligible for generation or retrieval.
19567
20261
  class GoogleCloudAiplatformV1MemoryTopicId
@@ -27304,6 +27998,34 @@ module Google
27304
27998
  end
27305
27999
  end
27306
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
+
27307
28029
  # The spec of a Python packaged code.
27308
28030
  class GoogleCloudAiplatformV1PythonPackageSpec
27309
28031
  include Google::Apis::Core::Hashable
@@ -29610,6 +30332,23 @@ module Google
29610
30332
  # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec]
29611
30333
  attr_accessor :deployment_spec
29612
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
+
29613
30352
  # User-provided package specification, containing pickled object and package
29614
30353
  # requirements.
29615
30354
  # Corresponds to the JSON property `packageSpec`
@@ -29639,6 +30378,8 @@ module Google
29639
30378
  @agent_framework = args[:agent_framework] if args.key?(:agent_framework)
29640
30379
  @class_methods = args[:class_methods] if args.key?(:class_methods)
29641
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)
29642
30383
  @package_spec = args[:package_spec] if args.key?(:package_spec)
29643
30384
  @service_account = args[:service_account] if args.key?(:service_account)
29644
30385
  @source_code_spec = args[:source_code_spec] if args.key?(:source_code_spec)
@@ -29757,6 +30498,12 @@ module Google
29757
30498
  class GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpec
29758
30499
  include Google::Apis::Core::Hashable
29759
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
+
29760
30507
  # Specifies source code provided as a byte stream.
29761
30508
  # Corresponds to the JSON property `inlineSource`
29762
30509
  # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpecInlineSource]
@@ -29773,16 +30520,74 @@ module Google
29773
30520
 
29774
30521
  # Update properties of this object
29775
30522
  def update!(**args)
30523
+ @developer_connect_source = args[:developer_connect_source] if args.key?(:developer_connect_source)
29776
30524
  @inline_source = args[:inline_source] if args.key?(:inline_source)
29777
30525
  @python_spec = args[:python_spec] if args.key?(:python_spec)
29778
30526
  end
29779
30527
  end
29780
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
+
29781
30586
  # Specifies source code provided as a byte stream.
29782
30587
  class GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpecInlineSource
29783
30588
  include Google::Apis::Core::Hashable
29784
30589
 
29785
- # Required. Input only. The application source code archive, provided as a
30590
+ # Required. Input only. The application source code archive. It must be a
29786
30591
  # compressed tarball (.tar.gz) file.
29787
30592
  # Corresponds to the JSON property `sourceArchive`
29788
30593
  # NOTE: Values are automatically base64 encoded/decoded in the client library.
@@ -29988,9 +30793,9 @@ module Google
29988
30793
  class GoogleCloudAiplatformV1ReplicatedVoiceConfig
29989
30794
  include Google::Apis::Core::Hashable
29990
30795
 
29991
- # Optional. The mimetype of the voice sample. Currently only mime_type=audio/pcm
29992
- # is supported, which is raw mono 16-bit signed little-endian pcm data, with 24k
29993
- # sampling rate.
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.
29994
30799
  # Corresponds to the JSON property `mimeType`
29995
30800
  # @return [String]
29996
30801
  attr_accessor :mime_type
@@ -30451,6 +31256,179 @@ module Google
30451
31256
  end
30452
31257
  end
30453
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
+
30454
31432
  # Input for rouge metric.
30455
31433
  class GoogleCloudAiplatformV1RougeInput
30456
31434
  include Google::Apis::Core::Hashable
@@ -38830,6 +39808,152 @@ module Google
38830
39808
  end
38831
39809
  end
38832
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
+
38833
39957
  # The SharePointSources to pass to ImportRagFiles.
38834
39958
  class GoogleCloudAiplatformV1SharePointSources
38835
39959
  include Google::Apis::Core::Hashable