Package com.tnsai.evaluation.benchmark
Class BenchmarkRunner
java.lang.Object
com.tnsai.evaluation.benchmark.BenchmarkRunner
Runs benchmark datasets against an agent execution function,
collecting evaluation results from registered evaluators.
Usage
BenchmarkRunner runner = BenchmarkRunner.builder()
.evaluator(new ResponseQualityEvaluator())
.evaluator(new ToolSelectionEvaluator())
.agentFunction(input -> agentExecute(input))
.build();
BenchmarkResult result = runner.run(dataset);
- Since:
- 0.1.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordOutput from agent execution for a test case.static final class -
Method Summary
Modifier and TypeMethodDescriptionstatic BenchmarkRunner.Builderbuilder()run(TestDataset dataset) Runs all test cases in the dataset and collects results.
-
Method Details
-
run
Runs all test cases in the dataset and collects results. -
builder
-