Class PlanAdherenceEvaluator.Builder
java.lang.Object
dev.dokimos.core.evaluators.agents.PlanAdherenceEvaluator.Builder
- Enclosing class:
PlanAdherenceEvaluator
Builder for constructing the evaluator.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the evaluator.evaluationParams(List<EvalTestCaseParam> params) Sets which test case parameters to validate.Sets an optional judge LLM for the adherence check.Sets the evaluator name.reasoningStepsKey(String reasoningStepsKey) Sets the actualOutputs key for the plan (reasoning steps).threshold(double threshold) Sets the minimum score threshold for success.toolCallsKey(String toolCallsKey) Sets the actualOutputs key for the tool calls.
-
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
-
reasoningStepsKey
Sets the actualOutputs key for the plan (reasoning steps).- Parameters:
reasoningStepsKey- the key- Returns:
- this builder
-
toolCallsKey
Sets the actualOutputs key for the tool calls.- Parameters:
toolCallsKey- the key- Returns:
- this builder
-
judge
Sets an optional judge LLM for the adherence check. Without a judge, only the rule-basedplan_presentcheck runs.- Parameters:
judge- the judge LLM- Returns:
- this builder
-
build
Builds the evaluator.- Returns:
- a new evaluator
-