Class EvaluatorRatingScale
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.bedrockagentcore.EvaluatorRatingScale
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.129.0 (build eaca441)",
date="2026-05-19T08:18:44.383Z")
@Stability(Stable)
public class EvaluatorRatingScale
extends software.amazon.jsii.JsiiObject
Represents a rating scale for custom LLM-as-a-Judge evaluators.
Rating scales define how the evaluator scores agent performance. Use either categorical (discrete labels) or numerical (labeled numeric values) scales.
Example:
// Categorical rating scale
EvaluatorRatingScale categorical = EvaluatorRatingScale.categorical(List.of(CategoricalRatingOption.builder().label("Good").definition("The response fully addresses the query.").build(), CategoricalRatingOption.builder().label("Bad").definition("The response fails to address the query.").build()));
// Numerical rating scale
EvaluatorRatingScale numerical = EvaluatorRatingScale.numerical(List.of(NumericalRatingOption.builder().label("Poor").definition("Inadequate response.").value(1).build(), NumericalRatingOption.builder().label("Good").definition("Adequate response.").value(3).build(), NumericalRatingOption.builder().label("Excellent").definition("Outstanding response.").value(5).build()));
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEvaluatorRatingScale(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedEvaluatorRatingScale(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionstatic EvaluatorRatingScalecategorical(List<? extends CategoricalRatingOption> options) Creates a categorical rating scale.static EvaluatorRatingScalenumerical(List<? extends NumericalRatingOption> options) Creates a numerical rating scale.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
EvaluatorRatingScale
protected EvaluatorRatingScale(software.amazon.jsii.JsiiObjectRef objRef) -
EvaluatorRatingScale
protected EvaluatorRatingScale(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
-
Method Details
-
categorical
@Stability(Stable) @NotNull public static EvaluatorRatingScale categorical(@NotNull List<? extends CategoricalRatingOption> options) Creates a categorical rating scale.Categorical scales define discrete labels for scoring, such as "Good" / "Bad" or "Pass" / "Fail".
- Parameters:
options-- The categorical rating options (at least 1 required).
-
numerical
@Stability(Stable) @NotNull public static EvaluatorRatingScale numerical(@NotNull List<? extends NumericalRatingOption> options) Creates a numerical rating scale.Numerical scales define labeled numeric values for scoring, such as 1 (Poor) through 5 (Excellent).
- Parameters:
options-- The numerical rating options (at least 1 required).
-