Class: AWSCDK::BedrockAgentCore::CfnEvaluator::RatingScaleProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BedrockAgentCore::CfnEvaluator::RatingScaleProperty
- Defined in:
- bedrock_agent_core/cfn_evaluator.rb
Overview
The rating scale that defines how evaluators should score agent performance.
Instance Attribute Summary collapse
- #categorical ⇒ AWSCDK::IResolvable, ... readonly
- #numerical ⇒ AWSCDK::IResolvable, ... readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(categorical: nil, numerical: nil) ⇒ RatingScaleProperty
constructor
A new instance of RatingScaleProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(categorical: nil, numerical: nil) ⇒ RatingScaleProperty
Returns a new instance of RatingScaleProperty.
1019 1020 1021 1022 1023 1024 |
# File 'bedrock_agent_core/cfn_evaluator.rb', line 1019 def initialize(categorical: nil, numerical: nil) @categorical = categorical Jsii::Type.check_type(@categorical, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9ja2FnZW50Y29yZS5DZm5FdmFsdWF0b3IuQ2F0ZWdvcmljYWxTY2FsZURlZmluaXRpb25Qcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "categorical") unless @categorical.nil? @numerical = numerical Jsii::Type.check_type(@numerical, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9ja2FnZW50Y29yZS5DZm5FdmFsdWF0b3IuTnVtZXJpY2FsU2NhbGVEZWZpbml0aW9uUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "numerical") unless @numerical.nil? end |
Instance Attribute Details
#categorical ⇒ AWSCDK::IResolvable, ... (readonly)
1028 1029 1030 |
# File 'bedrock_agent_core/cfn_evaluator.rb', line 1028 def categorical @categorical end |
#numerical ⇒ AWSCDK::IResolvable, ... (readonly)
1031 1032 1033 |
# File 'bedrock_agent_core/cfn_evaluator.rb', line 1031 def numerical @numerical end |
Class Method Details
.jsii_properties ⇒ Object
1033 1034 1035 1036 1037 1038 |
# File 'bedrock_agent_core/cfn_evaluator.rb', line 1033 def self.jsii_properties { :categorical => "categorical", :numerical => "numerical", } end |
Instance Method Details
#to_jsii ⇒ Object
1040 1041 1042 1043 1044 1045 1046 1047 |
# File 'bedrock_agent_core/cfn_evaluator.rb', line 1040 def to_jsii result = {} result.merge!({ "categorical" => @categorical, "numerical" => @numerical, }) result.compact end |