Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CompactSessionRequest

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

Overview

Request message for SessionService.CompactSession.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1CompactSessionRequest

Returns a new instance of GoogleCloudAiplatformV1beta1CompactSessionRequest.



12623
12624
12625
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 12623

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

Instance Attribute Details

#compactionGoogle::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CompactionConfig

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



12621
12622
12623
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 12621

def compaction
  @compaction
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12628
12629
12630
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 12628

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