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 Classes
    Modifier and Type
    Interface
    Description
    static final record 
    What an evaluator found on one turn.
  • Method Summary

    Modifier and Type
    Method
    Description
    evaluate(EvalCase<?> evalCase, Interaction interaction)
    Checks one turn.
  • Method Details

    • evaluate

      Evaluator.EvalResult evaluate(EvalCase<?> evalCase, Interaction interaction)
      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 interaction
      interaction - the reply and the traced evidence