Class ToolCallValidityEvaluator.Builder
java.lang.Object
dev.dokimos.core.evaluators.agents.ToolCallValidityEvaluator.Builder
- Enclosing class:
ToolCallValidityEvaluator
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 the evaluator name.strictMode(boolean strictMode) Enables strict mode which fails on any unexpected parameter.threshold(double threshold) Sets the minimum score threshold for success.toolCallsKey(String toolCallsKey) Sets the key used to retrieve tool calls from actualOutputs.Sets the key used to retrieve tool definitions from metadata.
-
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
-
toolCallsKey
Sets the key used to retrieve tool calls from actualOutputs.- Parameters:
toolCallsKey- the key- Returns:
- this builder
-
toolsKey
Sets the key used to retrieve tool definitions from metadata.- Parameters:
toolsKey- the key- Returns:
- this builder
-
strictMode
Enables strict mode which fails on any unexpected parameter.- Parameters:
strictMode- true to enable strict mode- Returns:
- this builder
-
build
Builds the evaluator.- Returns:
- a new evaluator
-