Class: Google::Apis::AiplatformV1::LearningGenaiRootControlDecodingRecord

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

Holds one control decoding record.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LearningGenaiRootControlDecodingRecord

Returns a new instance of LearningGenaiRootControlDecodingRecord.



31565
31566
31567
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31565

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

Instance Attribute Details

#prefixesString

Prefixes feeded into scorer. Corresponds to the JSON property prefixes

Returns:

  • (String)


31547
31548
31549
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31547

def prefixes
  @prefixes
end

#scoresArray<Google::Apis::AiplatformV1::LearningGenaiRootControlDecodingRecordPolicyScore>

Per policy scores returned from Scorer. Expect to have the same number of scores as in thresholds. Corresponds to the JSON property scores



31553
31554
31555
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31553

def scores
  @scores
end

#suffiexesString

Suffixes feeded into scorer. Corresponds to the JSON property suffiexes

Returns:

  • (String)


31558
31559
31560
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31558

def suffiexes
  @suffiexes
end

#thresholdsArray<Google::Apis::AiplatformV1::LearningGenaiRootControlDecodingConfigThreshold>

Per policy thresholds from user config. Corresponds to the JSON property thresholds



31563
31564
31565
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31563

def thresholds
  @thresholds
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



31570
31571
31572
31573
31574
31575
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31570

def update!(**args)
  @prefixes = args[:prefixes] if args.key?(:prefixes)
  @scores = args[:scores] if args.key?(:scores)
  @suffiexes = args[:suffiexes] if args.key?(:suffiexes)
  @thresholds = args[:thresholds] if args.key?(:thresholds)
end