Class: AWSCDK::BedrockAgentCore::CfnEvaluator::LlmAsAJudgeEvaluatorConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BedrockAgentCore::CfnEvaluator::LlmAsAJudgeEvaluatorConfigProperty
- Defined in:
- bedrock_agent_core/cfn_evaluator.rb
Overview
The configuration for LLM-as-a-Judge evaluation.
Instance Attribute Summary collapse
-
#instructions ⇒ String
readonly
The evaluation instructions that guide the language model in assessing agent performance.
-
#model_config ⇒ AWSCDK::IResolvable, AWSCDK::BedrockAgentCore::CfnEvaluator::EvaluatorModelConfigProperty
readonly
The model configuration that specifies which foundation model to use for evaluation.
-
#rating_scale ⇒ AWSCDK::IResolvable, AWSCDK::BedrockAgentCore::CfnEvaluator::RatingScaleProperty
readonly
The rating scale that defines how evaluators should score agent performance.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(instructions:, model_config:, rating_scale:) ⇒ LlmAsAJudgeEvaluatorConfigProperty
constructor
A new instance of LlmAsAJudgeEvaluatorConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(instructions:, model_config:, rating_scale:) ⇒ LlmAsAJudgeEvaluatorConfigProperty
Returns a new instance of LlmAsAJudgeEvaluatorConfigProperty.
914 915 916 917 918 919 920 921 |
# File 'bedrock_agent_core/cfn_evaluator.rb', line 914 def initialize(instructions:, model_config:, rating_scale:) @instructions = instructions Jsii::Type.check_type(@instructions, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "instructions") @model_config = model_config.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnEvaluator::EvaluatorModelConfigProperty.new(**model_config.transform_keys(&:to_sym)) : model_config Jsii::Type.check_type(@model_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmbkV2YWx1YXRvci5FdmFsdWF0b3JNb2RlbENvbmZpZ1Byb3BlcnR5In1dfX0=")), "modelConfig") @rating_scale = .is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnEvaluator::RatingScaleProperty.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(@rating_scale, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmbkV2YWx1YXRvci5SYXRpbmdTY2FsZVByb3BlcnR5In1dfX0=")), "ratingScale") end |
Instance Attribute Details
#instructions ⇒ String (readonly)
The evaluation instructions that guide the language model in assessing agent performance.
927 928 929 |
# File 'bedrock_agent_core/cfn_evaluator.rb', line 927 def instructions @instructions end |
#model_config ⇒ AWSCDK::IResolvable, AWSCDK::BedrockAgentCore::CfnEvaluator::EvaluatorModelConfigProperty (readonly)
The model configuration that specifies which foundation model to use for evaluation.
932 933 934 |
# File 'bedrock_agent_core/cfn_evaluator.rb', line 932 def model_config @model_config end |
#rating_scale ⇒ AWSCDK::IResolvable, AWSCDK::BedrockAgentCore::CfnEvaluator::RatingScaleProperty (readonly)
The rating scale that defines how evaluators should score agent performance.
937 938 939 |
# File 'bedrock_agent_core/cfn_evaluator.rb', line 937 def @rating_scale end |
Class Method Details
.jsii_properties ⇒ Object
939 940 941 942 943 944 945 |
# File 'bedrock_agent_core/cfn_evaluator.rb', line 939 def self.jsii_properties { :instructions => "instructions", :model_config => "modelConfig", :rating_scale => "ratingScale", } end |
Instance Method Details
#to_jsii ⇒ Object
947 948 949 950 951 952 953 954 955 |
# File 'bedrock_agent_core/cfn_evaluator.rb', line 947 def to_jsii result = {} result.merge!({ "instructions" => @instructions, "modelConfig" => @model_config, "ratingScale" => @rating_scale, }) result.compact end |