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.



31496
31497
31498
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31496

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

Instance Attribute Details

#prefixesString

Prefixes feeded into scorer. Corresponds to the JSON property prefixes

Returns:

  • (String)


31478
31479
31480
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31478

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



31484
31485
31486
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31484

def scores
  @scores
end

#suffiexesString

Suffixes feeded into scorer. Corresponds to the JSON property suffiexes

Returns:

  • (String)


31489
31490
31491
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31489

def suffiexes
  @suffiexes
end

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

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



31494
31495
31496
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31494

def thresholds
  @thresholds
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



31501
31502
31503
31504
31505
31506
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31501

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