Package akka.javasdk.testkit.eval
Interface Evaluator
- All Known Implementing Classes:
Evaluators.ForbiddenTools,Evaluators.JudgeEvaluator,Evaluators.LatencyBudget,Evaluators.ModelCallBudget,Evaluators.ReplyContains,Evaluators.ReplyDoesNotMatch,Evaluators.ReplyLacks,Evaluators.ReplyLacksLuhnNumber,Evaluators.ReplyLacksPaymentCard,Evaluators.ReplyMatches,Evaluators.TokenBudget,Evaluators.ToolArgument,Evaluators.ToolCallBudget,Evaluators.ToolOrder,Evaluators.ToolResult,Evaluators.Tools
public interface Evaluator
One check over one case's evidence. The built-ins are in
Evaluators. A custom one is a
named class annotated with EvalLabel that implements this interface. Give it to an EvalCase, or to ExperimentCases.evaluator(akka.javasdk.testkit.eval.Evaluator) to run on every case.
An evaluator reads only the interaction. It never calls the service.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordWhat an evaluator found on one turn. -
Method Summary
Modifier and TypeMethodDescriptionevaluate(EvalCase<?> evalCase, Interaction interaction) Checks one turn.
-
Method Details
-
evaluate
Checks one turn. Inconclusive when the evidence this check needs is absent or does not support a verdict.- Parameters:
evalCase- the case that produced the interactioninteraction- the reply and the traced evidence
-