Class: AWSCDK::BedrockAgentCore::NumericalRatingOption
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BedrockAgentCore::NumericalRatingOption
- Defined in:
- bedrock_agent_core/numerical_rating_option.rb
Overview
A numerical rating scale option for custom evaluators.
Numerical scales define labeled numeric values for scoring agent performance.
Instance Attribute Summary collapse
-
#definition ⇒ String
readonly
The description that explains what this numerical rating represents.
-
#label ⇒ String
readonly
The label for this rating option.
-
#value ⇒ Numeric
readonly
The numerical value for this rating scale option.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(definition:, label:, value:) ⇒ NumericalRatingOption
constructor
A new instance of NumericalRatingOption.
- #to_jsii ⇒ Object
Constructor Details
#initialize(definition:, label:, value:) ⇒ NumericalRatingOption
Returns a new instance of NumericalRatingOption.
12 13 14 15 16 17 18 19 |
# File 'bedrock_agent_core/numerical_rating_option.rb', line 12 def initialize(definition:, label:, value:) @definition = definition Jsii::Type.check_type(@definition, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "definition") @label = label Jsii::Type.check_type(@label, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "label") @value = value Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "value") end |
Instance Attribute Details
#definition ⇒ String (readonly)
The description that explains what this numerical rating represents.
26 27 28 |
# File 'bedrock_agent_core/numerical_rating_option.rb', line 26 def definition @definition end |
#label ⇒ String (readonly)
The label for this rating option.
32 33 34 |
# File 'bedrock_agent_core/numerical_rating_option.rb', line 32 def label @label end |
#value ⇒ Numeric (readonly)
The numerical value for this rating scale option.
38 39 40 |
# File 'bedrock_agent_core/numerical_rating_option.rb', line 38 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
40 41 42 43 44 45 46 |
# File 'bedrock_agent_core/numerical_rating_option.rb', line 40 def self.jsii_properties { :definition => "definition", :label => "label", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
48 49 50 51 52 53 54 55 56 |
# File 'bedrock_agent_core/numerical_rating_option.rb', line 48 def to_jsii result = {} result.merge!({ "definition" => @definition, "label" => @label, "value" => @value, }) result.compact end |