Class EvaluatorProps.Builder

java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.EvaluatorProps.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<EvaluatorProps>
Enclosing interface:
EvaluatorProps

@Stability(Stable) public static final class EvaluatorProps.Builder extends Object implements software.amazon.jsii.Builder<EvaluatorProps>
A builder for EvaluatorProps
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • evaluatorConfig

      @Stability(Stable) public EvaluatorProps.Builder evaluatorConfig(EvaluatorConfig evaluatorConfig)
      Parameters:
      evaluatorConfig - The configuration that defines how the evaluator assesses agent performance. This parameter is required. Use EvaluatorConfig.llmAsAJudge() for model-based evaluation or EvaluatorConfig.codeBased() for Lambda-based evaluation.
      Returns:
      this
    • evaluatorName

      @Stability(Stable) public EvaluatorProps.Builder evaluatorName(String evaluatorName)
      Parameters:
      evaluatorName - The name of the evaluator. This parameter is required. Must be unique within your account. Valid characters are a-z, A-Z, 0-9, _ (underscore). Must start with a letter and can be up to 48 characters long.
      Returns:
      this
    • level

      @Stability(Stable) public EvaluatorProps.Builder level(EvaluationLevel level)
      Sets the value of EvaluatorProps.getLevel()
      Parameters:
      level - The level at which the evaluator assesses agent performance. This parameter is required. Determines what granularity of data the evaluator operates on: tool call, trace (single request-response), or session (full conversation).
      Returns:
      this
    • description

      @Stability(Stable) public EvaluatorProps.Builder description(String description)
      Parameters:
      description - The description of the evaluator.
      Returns:
      this
    • tags

      @Stability(Stable) public EvaluatorProps.Builder tags(Map<String,String> tags)
      Sets the value of EvaluatorProps.getTags()
      Parameters:
      tags - Tags for the evaluator. A list of key:value pairs of tags to apply to this Evaluator resource.
      Returns:
      this
    • build

      @Stability(Stable) public EvaluatorProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<EvaluatorProps>
      Returns:
      a new instance of EvaluatorProps
      Throws:
      NullPointerException - if any required attribute was not provided