Class TaskCompletionEvaluator.Builder
java.lang.Object
dev.dokimos.core.evaluators.agents.TaskCompletionEvaluator.Builder
- Enclosing class:
TaskCompletionEvaluator
Builder for constructing the evaluator.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the evaluator.constraintsKey(String constraintsKey) Sets the metadata key for product constraints.Sets the inputs key for the dialog.evaluationParams(List<EvalTestCaseParam> params) Sets which test case parameters to validate.Sets the judge LLM for evaluating task completion.Sets the evaluator name.Sets the metadata key for the task list.threshold(double threshold) Sets the minimum score threshold for success.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the evaluator name.- Parameters:
name- the evaluator name- Returns:
- this builder
-
threshold
Sets the minimum score threshold for success.- Parameters:
threshold- the threshold value- Returns:
- this builder
-
evaluationParams
Sets which test case parameters to validate.- Parameters:
params- the parameters- Returns:
- this builder
-
judge
Sets the judge LLM for evaluating task completion.- Parameters:
judge- the judge LLM- Returns:
- this builder
-
tasksKey
Sets the metadata key for the task list.- Parameters:
tasksKey- the key- Returns:
- this builder
-
constraintsKey
Sets the metadata key for product constraints.- Parameters:
constraintsKey- the key- Returns:
- this builder
-
dialogKey
Sets the inputs key for the dialog.- Parameters:
dialogKey- the key- Returns:
- this builder
-
build
Builds the evaluator.- Returns:
- a new evaluator
- Throws:
IllegalStateException- if judge is not set
-