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 Summary
Modifier and TypeMethodDescriptionbuild()static Evaluator.Builderdescription(String description) The description of the evaluator.evaluatorConfig(EvaluatorConfig evaluatorConfig) The configuration that defines how the evaluator assesses agent performance.evaluatorName(String evaluatorName) The name of the evaluator.level(EvaluationLevel level) The level at which the evaluator assesses agent performance.Tags for the 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
The configuration that defines how the evaluator assesses agent performance.Use
EvaluatorConfig.llmAsAJudge()for model-based evaluation orEvaluatorConfig.codeBased()for Lambda-based evaluation.- Parameters:
evaluatorConfig- The configuration that defines how the evaluator assesses agent performance. This parameter is required.- Returns:
this
-
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
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
The description of the evaluator.Default: - No description
- Parameters:
description- The description of the evaluator. This parameter is required.- Returns:
this
-
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
-