Class: AWSCDK::BedrockAgentCore::CategoricalRatingOption
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BedrockAgentCore::CategoricalRatingOption
- Defined in:
- bedrock_agent_core/categorical_rating_option.rb
Overview
A categorical rating scale option for custom evaluators.
Categorical scales define discrete labels for scoring agent performance.
Instance Attribute Summary collapse
-
#definition ⇒ String
readonly
The description that explains what this rating represents.
-
#label ⇒ String
readonly
The label for this rating option.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(definition:, label:) ⇒ CategoricalRatingOption
constructor
A new instance of CategoricalRatingOption.
- #to_jsii ⇒ Object
Constructor Details
#initialize(definition:, label:) ⇒ CategoricalRatingOption
Returns a new instance of CategoricalRatingOption.
11 12 13 14 15 16 |
# File 'bedrock_agent_core/categorical_rating_option.rb', line 11 def initialize(definition:, label:) @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") end |
Instance Attribute Details
#definition ⇒ String (readonly)
The description that explains what this rating represents.
23 24 25 |
# File 'bedrock_agent_core/categorical_rating_option.rb', line 23 def definition @definition end |
#label ⇒ String (readonly)
The label for this rating option.
29 30 31 |
# File 'bedrock_agent_core/categorical_rating_option.rb', line 29 def label @label end |
Class Method Details
.jsii_properties ⇒ Object
31 32 33 34 35 36 |
# File 'bedrock_agent_core/categorical_rating_option.rb', line 31 def self.jsii_properties { :definition => "definition", :label => "label", } end |
Instance Method Details
#to_jsii ⇒ Object
38 39 40 41 42 43 44 45 |
# File 'bedrock_agent_core/categorical_rating_option.rb', line 38 def to_jsii result = {} result.merge!({ "definition" => @definition, "label" => @label, }) result.compact end |