Class EvaluationAssertions
java.lang.Object
io.micronaut.langchain4j.test.EvaluationAssertions
Assertions of
evaluation results.- Since:
- 2.4.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidassertPasses(EvaluationResult result) Asserts that an evaluation passed, reporting the feedback of the evaluator otherwise.static voidassertPasses(EvaluationSample sample, EvaluationResult result) Asserts that an evaluation of a sample passed, reporting the sample and the feedback of the evaluator otherwise.
-
Method Details
-
assertPasses
Asserts that an evaluation passed, reporting the feedback of the evaluator otherwise.- Parameters:
result- The result of the evaluation
-
assertPasses
Asserts that an evaluation of a sample passed, reporting the sample and the feedback of the evaluator otherwise.- Parameters:
sample- The sampleresult- The result of the evaluation
-