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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofEvaluatorProps.getDescription()evaluatorConfig(EvaluatorConfig evaluatorConfig) Sets the value ofEvaluatorProps.getEvaluatorConfig()evaluatorName(String evaluatorName) Sets the value ofEvaluatorProps.getEvaluatorName()level(EvaluationLevel level) Sets the value ofEvaluatorProps.getLevel()Sets the value ofEvaluatorProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
evaluatorConfig
Sets the value ofEvaluatorProps.getEvaluatorConfig()- Parameters:
evaluatorConfig- The configuration that defines how the evaluator assesses agent performance. This parameter is required. UseEvaluatorConfig.llmAsAJudge()for model-based evaluation orEvaluatorConfig.codeBased()for Lambda-based evaluation.- Returns:
this
-
evaluatorName
Sets the value ofEvaluatorProps.getEvaluatorName()- 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
Sets the value ofEvaluatorProps.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
Sets the value ofEvaluatorProps.getDescription()- Parameters:
description- The description of the evaluator.- Returns:
this
-
tags
Sets the value ofEvaluatorProps.getTags()- Parameters:
tags- Tags for the evaluator. A list of key:value pairs of tags to apply to this Evaluator resource.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<EvaluatorProps>- Returns:
- a new instance of
EvaluatorProps - Throws:
NullPointerException- if any required attribute was not provided
-