Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CompactSessionRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/aiplatform_v1/classes.rb,
lib/google/apis/aiplatform_v1/representations.rb,
lib/google/apis/aiplatform_v1/representations.rb

Overview

Request message for SessionService.CompactSession.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1CompactSessionRequest

Returns a new instance of GoogleCloudAiplatformV1CompactSessionRequest.



5400
5401
5402
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 5400

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#compactionGoogle::Apis::AiplatformV1::GoogleCloudAiplatformV1CompactionConfig

Configuration for session compaction. Compaction has two independent categories that may be enabled individually or together. When both are enabled they run as a stackable pipeline (deterministic event editing first, then summarization if the session is still above the target). At least one category must be enabled; a config with neither is rejected (enforced server-side). This message is standalone so it can be reused across surfaces (e.g. on the compact request today, and on session creation for a future reactive trigger). Corresponds to the JSON property compaction



5398
5399
5400
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 5398

def compaction
  @compaction
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5405
5406
5407
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 5405

def update!(**args)
  @compaction = args[:compaction] if args.key?(:compaction)
end