Package akka.javasdk.testkit.eval


package akka.javasdk.testkit.eval
Evaluation of an agent inside a TestKitSupport test. Cases run against the running service and are scored on the reply and on the tool calls the runtime traced.

An EvalCase has the command sent to the agent and the evaluators the reply and the tool calls are checked with. The command is the user message as a String, or the command handler's own type. The built-in evaluators are in Evaluators. The test prepares the mocked tools before the run. Cases are written in Java, or derived from recorded production interactions by EvalCaseParser. A derived case carries the recorded tool calls and expects the recorded behavior as a baseline; the runner loads the recorded results into the test's stubs through the ToolBindings given to it.

ExperimentRunner calls the agent in a fresh session per case. Without a Gate every case must pass, which suits a mocked model. With a real model gate the batch on rates. Tool and model evidence is read from the runtime trace through TelemetryReader.

Criteria the built-in expectations cannot express, such as tone or completeness, go to a model through Judge.

SupportAgentEvalTest in the akka-javasdk-tests module is a complete example.