Interface EvaluateResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,BedrockAgentCoreResponse.Builder,Buildable,CopyableBuilder<EvaluateResponse.Builder,,EvaluateResponse> SdkBuilder<EvaluateResponse.Builder,,EvaluateResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
EvaluateResponse
-
Method Summary
Modifier and TypeMethodDescriptionevaluationResults(Collection<EvaluationResultContent> evaluationResults) The detailed evaluation results containing scores, explanations, and metadata.evaluationResults(Consumer<EvaluationResultContent.Builder>... evaluationResults) The detailed evaluation results containing scores, explanations, and metadata.evaluationResults(EvaluationResultContent... evaluationResults) The detailed evaluation results containing scores, explanations, and metadata.Methods inherited from interface software.amazon.awssdk.services.bedrockagentcore.model.BedrockAgentCoreResponse.Builder
build, responseMetadata, responseMetadataMethods 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, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
evaluationResults
The detailed evaluation results containing scores, explanations, and metadata. Includes the evaluator information, numerical or categorical ratings based on the evaluator's rating scale, and token usage statistics for the evaluation process.
- Parameters:
evaluationResults- The detailed evaluation results containing scores, explanations, and metadata. Includes the evaluator information, numerical or categorical ratings based on the evaluator's rating scale, and token usage statistics for the evaluation process.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evaluationResults
The detailed evaluation results containing scores, explanations, and metadata. Includes the evaluator information, numerical or categorical ratings based on the evaluator's rating scale, and token usage statistics for the evaluation process.
- Parameters:
evaluationResults- The detailed evaluation results containing scores, explanations, and metadata. Includes the evaluator information, numerical or categorical ratings based on the evaluator's rating scale, and token usage statistics for the evaluation process.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evaluationResults
EvaluateResponse.Builder evaluationResults(Consumer<EvaluationResultContent.Builder>... evaluationResults) The detailed evaluation results containing scores, explanations, and metadata. Includes the evaluator information, numerical or categorical ratings based on the evaluator's rating scale, and token usage statistics for the evaluation process.
This is a convenience method that creates an instance of theEvaluationResultContent.Builderavoiding the need to create one manually viaEvaluationResultContent.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toevaluationResults(List<EvaluationResultContent>).- Parameters:
evaluationResults- a consumer that will call methods onEvaluationResultContent.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-