Class: Google::Apis::AiplatformV1::LearningGenaiRootRoutingDecisionMetadataScoreBased
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::LearningGenaiRootRoutingDecisionMetadataScoreBased
- 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
If we are routing using scored based configuration, then the metadata about that is available in this proto.
Instance Attribute Summary collapse
-
#matched_rule ⇒ Google::Apis::AiplatformV1::LearningGenaiRootScoreBasedRoutingConfigRule
The rule that was matched.
-
#score ⇒ Google::Apis::AiplatformV1::LearningGenaiRootScore
The score that was generated by the router i.e.
-
#used_default_fallback ⇒ Boolean
(also: #used_default_fallback?)
No rules were matched & therefore used the default fallback.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LearningGenaiRootRoutingDecisionMetadataScoreBased
constructor
A new instance of LearningGenaiRootRoutingDecisionMetadataScoreBased.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LearningGenaiRootRoutingDecisionMetadataScoreBased
Returns a new instance of LearningGenaiRootRoutingDecisionMetadataScoreBased.
29753 29754 29755 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 29753 def initialize(**args) update!(**args) end |
Instance Attribute Details
#matched_rule ⇒ Google::Apis::AiplatformV1::LearningGenaiRootScoreBasedRoutingConfigRule
The rule that was matched.
Corresponds to the JSON property matchedRule
29740 29741 29742 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 29740 def matched_rule @matched_rule end |
#score ⇒ Google::Apis::AiplatformV1::LearningGenaiRootScore
The score that was generated by the router i.e. the model.
Corresponds to the JSON property score
29745 29746 29747 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 29745 def score @score end |
#used_default_fallback ⇒ Boolean Also known as: used_default_fallback?
No rules were matched & therefore used the default fallback.
Corresponds to the JSON property usedDefaultFallback
29750 29751 29752 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 29750 def used_default_fallback @used_default_fallback end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
29758 29759 29760 29761 29762 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 29758 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 |