Class: Google::Apis::AiplatformV1beta1::LearningGenaiRootScoreBasedRoutingConfigRule

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LearningGenaiRootScoreBasedRoutingConfigRule

Returns a new instance of LearningGenaiRootScoreBasedRoutingConfigRule.



33282
33283
33284
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 33282

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

Instance Attribute Details

#equal_or_greater_thanGoogle::Apis::AiplatformV1beta1::LearningGenaiRootScore

NOTE: Hardest examples have smaller values in their routing scores. Corresponds to the JSON property equalOrGreaterThan



33268
33269
33270
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 33268

def equal_or_greater_than
  @equal_or_greater_than
end

#less_thanGoogle::Apis::AiplatformV1beta1::LearningGenaiRootScore

Corresponds to the JSON property lessThan



33273
33274
33275
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 33273

def less_than
  @less_than
end

#model_config_idString

This model_config_id points to ModelConfig::id which allows us to find the ModelConfig to route to. This is part of the banks specified in the ModelBankConfig. Corresponds to the JSON property modelConfigId

Returns:

  • (String)


33280
33281
33282
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 33280

def model_config_id
  @model_config_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



33287
33288
33289
33290
33291
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 33287

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