Class EvaluationAssertions

java.lang.Object
io.micronaut.langchain4j.test.EvaluationAssertions

public final class EvaluationAssertions extends Object
Assertions of evaluation results.
Since:
2.4.0
  • Method Details

    • assertPasses

      public static void assertPasses(EvaluationResult result)
      Asserts that an evaluation passed, reporting the feedback of the evaluator otherwise.
      Parameters:
      result - The result of the evaluation
    • assertPasses

      public static void assertPasses(EvaluationSample sample, EvaluationResult result)
      Asserts that an evaluation of a sample passed, reporting the sample and the feedback of the evaluator otherwise.
      Parameters:
      sample - The sample
      result - The result of the evaluation