Interface NumericalRatingOption

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
NumericalRatingOption.Jsii$Proxy

@Generated(value="jsii-pacmak/1.129.0 (build eaca441)", date="2026-05-19T08:18:44.468Z") @Stability(Stable) public interface NumericalRatingOption extends software.amazon.jsii.JsiiSerializable
A numerical rating scale option for custom evaluators.

Numerical scales define labeled numeric values for scoring agent performance.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.bedrockagentcore.*;
 NumericalRatingOption numericalRatingOption = NumericalRatingOption.builder()
         .definition("definition")
         .label("label")
         .value(123)
         .build();
 
  • Method Details

    • getDefinition

      @Stability(Stable) @NotNull String getDefinition()
      The description that explains what this numerical rating represents.

      Example:

       "The response is comprehensive, accurate, and well-structured.";
       
    • getLabel

      @Stability(Stable) @NotNull String getLabel()
      The label for this rating option.

      Example:

       "Excellent";
       
    • getValue

      @Stability(Stable) @NotNull Number getValue()
      The numerical value for this rating scale option.

      Example:

       5;
       
    • builder

      @Stability(Stable) static NumericalRatingOption.Builder builder()
      Returns:
      a NumericalRatingOption.Builder of NumericalRatingOption