Package dev.dokimos.core
Class EvalResult.Builder
java.lang.Object
dev.dokimos.core.EvalResult.Builder
- Enclosing class:
EvalResult
Builder for constructing evaluation results.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the evaluator name.- Parameters:
name- the evaluator name- Returns:
- this builder
-
score
Sets the numeric score.- Parameters:
score- the score value- Returns:
- this builder
-
threshold
Sets the success threshold.- Parameters:
threshold- the threshold value- Returns:
- this builder
-
reason
Sets the reason or explanation.- Parameters:
reason- the reason text- Returns:
- this builder
-
metadata
Sets the metadata.- Parameters:
metadata- the metadata map- Returns:
- this builder
-
build
Builds the result.- Returns:
- a new evaluation result
-