Class: Google::Apis::AiplatformV1beta1::LearningGenaiRootRoutingDecisionMetadataScoreBased

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

If we are routing using scored based configuration, then the metadata about that is available in this proto.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LearningGenaiRootRoutingDecisionMetadataScoreBased

Returns a new instance of LearningGenaiRootRoutingDecisionMetadataScoreBased.



33096
33097
33098
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 33096

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

Instance Attribute Details

#matched_ruleGoogle::Apis::AiplatformV1beta1::LearningGenaiRootScoreBasedRoutingConfigRule

The rule that was matched. Corresponds to the JSON property matchedRule



33083
33084
33085
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 33083

def matched_rule
  @matched_rule
end

#scoreGoogle::Apis::AiplatformV1beta1::LearningGenaiRootScore

The score that was generated by the router i.e. the model. Corresponds to the JSON property score



33088
33089
33090
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 33088

def score
  @score
end

#used_default_fallbackBoolean Also known as: used_default_fallback?

No rules were matched & therefore used the default fallback. Corresponds to the JSON property usedDefaultFallback

Returns:

  • (Boolean)


33093
33094
33095
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 33093

def used_default_fallback
  @used_default_fallback
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



33101
33102
33103
33104
33105
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 33101

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