Class: AWSCDK::BedrockAgentCore::CfnEvaluator::EvaluatorConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BedrockAgentCore::CfnEvaluator::EvaluatorConfigProperty
- Defined in:
- bedrock_agent_core/cfn_evaluator.rb
Overview
The configuration that defines how an evaluator assesses agent performance.
Instance Attribute Summary collapse
-
#code_based ⇒ AWSCDK::IResolvable, ...
readonly
The configuration for code-based evaluation using a Lambda function.
-
#llm_as_a_judge ⇒ AWSCDK::IResolvable, ...
readonly
The configuration for LLM-as-a-Judge evaluation.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(code_based: nil, llm_as_a_judge: nil) ⇒ EvaluatorConfigProperty
constructor
A new instance of EvaluatorConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(code_based: nil, llm_as_a_judge: nil) ⇒ EvaluatorConfigProperty
Returns a new instance of EvaluatorConfigProperty.
741 742 743 744 745 746 |
# File 'bedrock_agent_core/cfn_evaluator.rb', line 741 def initialize(code_based: nil, llm_as_a_judge: nil) @code_based = code_based.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnEvaluator::CodeBasedEvaluatorConfigProperty.new(**code_based.transform_keys(&:to_sym)) : code_based Jsii::Type.check_type(@code_based, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmbkV2YWx1YXRvci5Db2RlQmFzZWRFdmFsdWF0b3JDb25maWdQcm9wZXJ0eSJ9XX19")), "codeBased") unless @code_based.nil? @llm_as_a_judge = llm_as_a_judge.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnEvaluator::LlmAsAJudgeEvaluatorConfigProperty.new(**llm_as_a_judge.transform_keys(&:to_sym)) : llm_as_a_judge Jsii::Type.check_type(@llm_as_a_judge, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmbkV2YWx1YXRvci5MbG1Bc0FKdWRnZUV2YWx1YXRvckNvbmZpZ1Byb3BlcnR5In1dfX0=")), "llmAsAJudge") unless @llm_as_a_judge.nil? end |
Instance Attribute Details
#code_based ⇒ AWSCDK::IResolvable, ... (readonly)
The configuration for code-based evaluation using a Lambda function.
752 753 754 |
# File 'bedrock_agent_core/cfn_evaluator.rb', line 752 def code_based @code_based end |
#llm_as_a_judge ⇒ AWSCDK::IResolvable, ... (readonly)
The configuration for LLM-as-a-Judge evaluation.
757 758 759 |
# File 'bedrock_agent_core/cfn_evaluator.rb', line 757 def llm_as_a_judge @llm_as_a_judge end |
Class Method Details
.jsii_properties ⇒ Object
759 760 761 762 763 764 |
# File 'bedrock_agent_core/cfn_evaluator.rb', line 759 def self.jsii_properties { :code_based => "codeBased", :llm_as_a_judge => "llmAsAJudge", } end |
Instance Method Details
#to_jsii ⇒ Object
766 767 768 769 770 771 772 773 |
# File 'bedrock_agent_core/cfn_evaluator.rb', line 766 def to_jsii result = {} result.merge!({ "codeBased" => @code_based, "llmAsAJudge" => @llm_as_a_judge, }) result.compact end |