Interface EvaluateResponse.Builder

  • Method Details

    • evaluationResults

      EvaluateResponse.Builder evaluationResults(Collection<EvaluationResultContent> 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(EvaluationResultContent... 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 the EvaluationResultContent.Builder avoiding the need to create one manually via EvaluationResultContent.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to evaluationResults(List<EvaluationResultContent>).

      Parameters:
      evaluationResults - a consumer that will call methods on EvaluationResultContent.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: