Class ToolErrorEvaluator
java.lang.Object
dev.dokimos.core.BaseEvaluator
dev.dokimos.core.evaluators.agents.ToolErrorEvaluator
- All Implemented Interfaces:
Evaluator
Detects tool execution failures by inspecting
ToolCall.result().
This is a deterministic, glass-box evaluator (no LLM). A tool call is considered failed when any of the configured detectors fire:
- the result is
nullor blank (whentreatBlankAsError, the default); - the result is a JSON object with a non-null top-level
"error"field (whendetectJsonErrorField, the default); - a custom
Predicatesupplied viaToolErrorEvaluator.Builder.errorDetector(Predicate)matches.
1.0, consistent with the other agent evaluators.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for constructing the evaluator. -
Method Summary
Modifier and TypeMethodDescriptionstatic ToolErrorEvaluator.Builderbuilder()Creates a new builder for constructing the evaluator.Methods inherited from class dev.dokimos.core.BaseEvaluator
evaluate, evaluateAsync, evaluateAsync, name, threshold
-
Method Details
-
builder
Creates a new builder for constructing the evaluator.- Returns:
- a new builder
-