Record Class EvaluationResult
java.lang.Object
java.lang.Record
io.micronaut.langchain4j.evaluation.EvaluationResult
- Record Components:
passing- Whether the evaluation passedfeedback- Short feedback from the evaluator
-
Constructor Summary
ConstructorsConstructorDescriptionEvaluationResult(boolean passing, @NonNull String feedback) Creates an instance of aEvaluationResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static @NonNull EvaluationResultCreates a failing result with the given feedback.@NonNull Stringfeedback()Returns the value of thefeedbackrecord component.final inthashCode()Returns a hash code value for this object.static @NonNull EvaluationResultCreates a passing result with the given feedback.booleanpassing()Returns the value of thepassingrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EvaluationResult
-
-
Method Details
-
pass
Creates a passing result with the given feedback.- Parameters:
feedback- The feedback- Returns:
- The result
- Since:
- 2.1.1
-
fail
Creates a failing result with the given feedback.- Parameters:
feedback- The feedback- Returns:
- The result
- Since:
- 2.1.1
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
passing
-
feedback
-