Class Evaluator.Builder

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

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

    • create

      @Stability(Stable) public static Evaluator.Builder create(software.constructs.Construct scope, String id)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      Returns:
      a new instance of Evaluator.Builder.
    • evaluatorConfig

      @Stability(Stable) public Evaluator.Builder evaluatorConfig(EvaluatorConfig evaluatorConfig)
      The configuration that defines how the evaluator assesses agent performance.

      Use EvaluatorConfig.llmAsAJudge() for model-based evaluation or EvaluatorConfig.codeBased() for Lambda-based evaluation.

      Parameters:
      evaluatorConfig - The configuration that defines how the evaluator assesses agent performance. This parameter is required.
      Returns:
      this
    • evaluatorName

      @Stability(Stable) public Evaluator.Builder evaluatorName(String evaluatorName)
      The name of the evaluator.

      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.

      Parameters:
      evaluatorName - The name of the evaluator. This parameter is required.
      Returns:
      this
    • level

      @Stability(Stable) public Evaluator.Builder level(EvaluationLevel level)
      The level at which the evaluator assesses agent performance.

      Determines what granularity of data the evaluator operates on: tool call, trace (single request-response), or session (full conversation).

      Parameters:
      level - The level at which the evaluator assesses agent performance. This parameter is required.
      Returns:
      this
    • description

      @Stability(Stable) public Evaluator.Builder description(String description)
      The description of the evaluator.

      Default: - No description

      Parameters:
      description - The description of the evaluator. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public Evaluator.Builder tags(Map<String,String> tags)
      Tags for the evaluator.

      A list of key:value pairs of tags to apply to this Evaluator resource.

      Default: - No tags

      Parameters:
      tags - Tags for the evaluator. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public Evaluator build()
      Specified by:
      build in interface software.amazon.jsii.Builder<Evaluator>
      Returns:
      a newly built instance of Evaluator.