Interface EvaluatorConfig.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<EvaluatorConfig.Builder,,EvaluatorConfig> SdkBuilder<EvaluatorConfig.Builder,,EvaluatorConfig> SdkPojo
- Enclosing class:
EvaluatorConfig
@Mutable
@NotThreadSafe
public static interface EvaluatorConfig.Builder
extends SdkPojo, CopyableBuilder<EvaluatorConfig.Builder,EvaluatorConfig>
-
Method Summary
Modifier and TypeMethodDescriptiondefault EvaluatorConfig.BuilderllmAsAJudge(Consumer<LlmAsAJudgeEvaluatorConfig.Builder> llmAsAJudge) The LLM-as-a-Judge configuration that uses a language model to evaluate agent performance based on custom instructions and rating scales.llmAsAJudge(LlmAsAJudgeEvaluatorConfig llmAsAJudge) The LLM-as-a-Judge configuration that uses a language model to evaluate agent performance based on custom instructions and rating scales.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
llmAsAJudge
The LLM-as-a-Judge configuration that uses a language model to evaluate agent performance based on custom instructions and rating scales.
- Parameters:
llmAsAJudge- The LLM-as-a-Judge configuration that uses a language model to evaluate agent performance based on custom instructions and rating scales.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
llmAsAJudge
default EvaluatorConfig.Builder llmAsAJudge(Consumer<LlmAsAJudgeEvaluatorConfig.Builder> llmAsAJudge) The LLM-as-a-Judge configuration that uses a language model to evaluate agent performance based on custom instructions and rating scales.
This is a convenience method that creates an instance of theLlmAsAJudgeEvaluatorConfig.Builderavoiding the need to create one manually viaLlmAsAJudgeEvaluatorConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tollmAsAJudge(LlmAsAJudgeEvaluatorConfig).- Parameters:
llmAsAJudge- a consumer that will call methods onLlmAsAJudgeEvaluatorConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-