#2856·smolagents

EvalPort: portable interchange for smolagents_benchmark results

Author: adhabnr-uxCreated Sep 27, 2026Updated Sep 27, 2026

Hi smolagents maintainers,

I went through examples/smolagents_benchmark/run.py — answer_single_question() builds an annotated_example record per task (question, answer, true_answer, source, intermediate_steps, token_counts, start/end time) written to a .jsonl per model/task/benchmark. That's already shaped like a per-test-case eval result — it's just smolagents' own bespoke schema, so a GAIA/MATH/SimpleQA run here can't be compared against another framework's benchmark output without a hand-written converter.

I maintain EvalPort, a small JSON-Schema interchange spec (TestCase/Suite/Grader/Result/ResultSet) for portable eval data. The mapping is direct: question/true_answer → TestCase input/expected_output, answer → actual_output, a match against true_answer → GraderResult.passed, and token_counts/intermediate_steps/source fold into metadata.

I'd propose a small, standalone to_evalport() helper for this benchmark script — zero footprint on smolagents core, consistent with your "core ships primitives, not integrations" guidance. Filing as an issue first per your CONTRIBUTING guide rather than showing up with a PR. Happy to sketch one if useful.

Spec: https://github.com/adhabnr-ux/evalport/blob/main/SPEC.md

— Sahi, independent contributor (not affiliated with Hugging Face / smolagents)