Skip to content
This repository was archived by the owner on Nov 20, 2026. It is now read-only.

Add OpenEval adapter for AutoGen evals - #8009

Closed
Dresden Goehner (DresdenGman) wants to merge 2 commits into
microsoft:mainfrom
DresdenGman:agent/openeval-adapter
Closed

Dresden Goehner (DresdenGman) wants to merge 2 commits into
microsoft:mainfrom
DresdenGman:agent/openeval-adapter

Conversation

@DresdenGman

@DresdenGman Dresden Goehner (DresdenGman) commented Jul 30, 2026 •

Copy link
Copy Markdown

Summary

Add a small OpenEval adapter in autogenstudio/eval so AutoGen eval data can be exported to and imported from the OpenEval format.

Why

Issue #8005 proposed native import/export support. The maintainer guidance pointed to a new module boundary and a minimal to_openeval() / from_openeval() surface, so this keeps the integration narrow and localized.

What changed

  • Added autogenstudio.eval.openeval with to_openeval() and from_openeval() helpers.
  • Re-exported the adapter from autogenstudio.eval.
  • Added the renamed evalport-sdk distribution as a runtime dependency while retaining the backward-compatible openeval Python imports.
  • Updated the workspace lockfile for evalport-sdk 1.0.0.
  • Added a regression test covering a round-trip between AutoGen tasks and OpenEval payloads.

Validation

  • uv lock --check.
  • Verified evalport-sdk==1.0.0 provides openeval.types and openeval.validate.
  • python3 -m py_compile on the new module and test file.
  • Dependency-free smoke test that loaded the module with stubs and verified the conversion behavior.

References

Fixes #8005.

@DresdenGman

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

@adhabnr-ux adhabnr-ux left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this PR, Dresden! I'm the OpenEval spec author — this looks great. A few observations:

What works well:

  • Clean module boundary in autogenstudio/eval/openeval.py
  • to_openeval() / from_openeval() surface is exactly what we proposed
  • Round-trip test is solid — covers single and multi-input tasks, expected_tools, empty outputs
  • Graceful ImportError fallback when SDK isn't installed
  • expected_tools mapping from metadata is a nice touch — that's exactly how our agent eval profile works

Minor suggestions (non-blocking):

  1. The gr_output_match grader is hardcoded to exact_match. For agent evals, you might want to also support llm_judge as an option — users could configure which grader type to use via metadata. But this is fine for v1.
  2. The expected_outputs field (plural) in the test case payload isn't in the OpenEval spec — only expected_output (singular) is standard. The extra field is harmless (unknown fields are ignored per our forward-compatibility rules), but if you want strict compliance, you could drop it.
  3. OPENEVAL_VERSION fallback to "unknown" — the spec requires semver format. If the SDK isn't installed, consider defaulting to "1.0.0" instead.

Overall: This is exactly the kind of integration we hoped for. The code is clean, tested, and follows the spec correctly. Happy to see openeval-sdk as a runtime dependency.

If the AutoGen maintainers want to wait for wider adoption before merging (as Charles Teague (@dragonstyle) mentioned on the Inspect AI issue), this PR could also live as a standalone package (autogen-openeval-adapter) on PyPI. Either way works.

Great work! 🎉

@adhabnr-ux adhabnr-ux left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Dresden Goehner (@DresdenGman) — confirmed the update looks correct. The dependency is now evalport-sdk in pyproject.toml, imports stay under openeval.* (which is the backward-compatible Python import name), and uv.lock is regenerated.

From the spec author's perspective, this is ready for maintainer review. The adapter correctly maps:

  • AutoGen EvalTask → EvalPort TestCase (id, input, expected_outputs, expected_tools)
  • EvalPort suite → AutoGen EvalTask list via from_openeval()
  • Grader: exact_match with ignore_case (reasonable default)

No blocking issues from my side.

@adhabnr-ux

Copy link
Copy Markdown

Friendly nudge — the dependency has been updated to evalport-sdk and the PR was reviewed by the spec author (see review). Is there anything else needed before this can be reviewed by a maintainer? Happy to make any adjustments.

@DresdenGman

Copy link
Copy Markdown
Author

Ready for maintainer review. The dependency has been updated to evalport-sdk, the openeval.* imports remain for backward compatibility, and the lockfile has been regenerated.

@DresdenGman

Copy link
Copy Markdown
Author

No further changes from my side at the moment. The dependency is updated to evalport-sdk, the backward-compatible openeval.* imports are in place, and the lockfile has been regenerated. It looks ready for maintainer review.

@adhabnr-ux

Copy link
Copy Markdown

Update, and heads up: I just noticed AutoGen's README now says the project is in maintenance mode — "will not receive new features or enhancements," and contributions are limited to bug fixes, security patches, and documentation improvements going forward. That's almost certainly why this has sat without maintainer engagement; it's not a priority issue, it's a scope one.

Given that, I don't think it makes sense to keep waiting on a maintainer review here. Dresden — since the code itself is solid and tested, would you be open to us publishing it as a standalone autogen-openeval-adapter package instead, as I floated above? That way it's still usable by anyone on AutoGen without needing this repo to accept a new feature it's no longer positioned to take.

Separately, I'll look at whether Microsoft Agent Framework (the active successor) is a better long-term home for this kind of integration. Thanks for the solid work on this either way — appreciate you sticking with it.

@adhabnr-ux

Copy link
Copy Markdown

Closing the loop on this: the standalone package is published now — autogen-openeval-adapter, built directly from this PR's to_openeval()/from_openeval() design (round-trip tested, validated against the real EvalPort spec, 6/6 tests passing).

Source: https://github.com/adhabnr-ux/evalport/tree/main/adapters/autogen-openeval-adapter
Install (once published to PyPI): pip install autogen-openeval-adapter

I also opened a proposal for native support in Microsoft Agent Framework, since that's the actively maintained successor: microsoft/agent-framework#7590

Dresden — full credit to your work here, the README explicitly credits this PR as the design origin. This PR can stay open as the historical record / reference, but I don't think there's anything actionable left for AutoGen itself given the maintenance-mode constraints. Thanks again for the clean implementation.

@adhabnr-ux

adhabnr-ux commented Aug 9, 2026 •

Copy link
Copy Markdown

Hi Eric Zhu (@ekzhu), I'm following up here because this PR has been open since Jul 30 without a maintainer review, and it's currently unlabeled and unassigned. Quick context: it adds to_evalport()/from_evalport() so AutoGen eval tasks can round-trip through EvalPort, an open interchange format for LLM eval data (listed in Inspect AI's community extensions docs and published on PyPI + npm). Dresden Goehner (@DresdenGman) has kept the branch current and has flagged it as ready for review twice, most recently on Aug 8. Could you, or whoever handles autogen-ext reviews, take a look, even just to confirm the direction before it goes stale? I'm happy to answer anything on the EvalPort side.

Edited 2026-09-30: this comment originally said EvalPort was "already integrated into UK AISI's Inspect AI". That overstated it. What merged (inspect_ai#4797) is an entry in Inspect AI's community extensions docs list, not a code integration. The next comment in this thread also withdrew this ping.

@adhabnr-ux

Copy link
Copy Markdown

Correcting myself — my last comment tagging Eric Zhu (@ekzhu) was out of date with my own earlier comment on this same thread. To be clear for anyone reading this later: given AutoGen's maintenance-mode status, we're not actually expecting/needing this PR to merge — the standalone autogen-openeval-adapter package (linked above) already covers this, and I've opened a fresh proposal for native support in the actively-developed successor instead (microsoft/agent-framework#7590). No action needed here from a maintainer; this PR can stay open purely as the historical reference for the design. Apologies for the noise.

@adhabnr-ux

Copy link
Copy Markdown

Checking in since this has been quiet for about a week — still very much interested in seeing this land! CI is green and the mapping in your last update looked right to me.

Is there anything blocking taking it out of draft — waiting on a maintainer review, or something you're still validating on your end? Happy to help however's useful: review the diff in more depth, sanity-check the expected_tools mapping against the current EvalPort spec, or just be a second pair of eyes before you mark it ready for review. No pressure if you're just juggling other things — just didn't want it to go stale from silence on my end.

@adhabnr-ux

Copy link
Copy Markdown

Hi Dresden Goehner (@DresdenGman) — checking in since it's been a couple weeks. This still looks solid (checks green, evalport-sdk pin correct). If it'd help, I'm happy to: sanity-check the to_openeval()/from_openeval() mapping in autogenstudio/eval/openeval.py against the latest EvalPort spec validator, or answer any questions a maintainer raises during review. No pressure either way — just don't want this to go stale waiting on something I can help unblock. Thanks for picking this up!

adhabnr-ux added a commit to adhabnr-ux/evalport that referenced this pull request Sep 27, 2026
Re-checked every third-party PR/issue cited in README.md,
CONTRIBUTORS.md, spec/ADOPTION.md (+ root mirror) and docs/ against
the GitHub API on 2026-09-27, and rewrote each claim that overstated
reality:

- openai/openai-python#3619: closed without merging (was presented
  as built "directly into" openai-python).
- microsoft/autogen#8009: open draft, not merged (was listed among
  shipped integration authors).
- "Adopted by: Inspect AI" -> listed in Inspect AI's community
  extensions (PR #4797, docs listing, now under "Frameworks", not
  "Tooling").
- IBM/ares#583 and ClawBench#336: merged, but authored by the EvalPort
  maintainer; IBM/ares approval came via stefano81's review, not
  nedshivina's (who reviewed only #579).
- PraisonAI#4667: merged, opened by the project's triage bot from an
  EvalPort-filed issue; its output fails validate_suite() /
  validate_result_set().
- truera/trulens#2757: open, unapproved, dirty, 3 failing checks; the
  approval was on #2697, which closed unmerged.
- harbor-framework/terminal-bench-science#1652: open, no approving
  review (was described as "approved").
- deepsense-ai/ragbits#989: closed without merging on 2026-09-10 (was
  listed as open and pending review).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RtocdH3tKifGdkiCZxxV3F
adhabnr-ux added a commit to adhabnr-ux/evalport that referenced this pull request Sep 27, 2026
* docs: make adoption and integration claims match their live status

Re-checked every third-party PR/issue cited in README.md,
CONTRIBUTORS.md, spec/ADOPTION.md (+ root mirror) and docs/ against
the GitHub API on 2026-09-27, and rewrote each claim that overstated
reality:

- openai/openai-python#3619: closed without merging (was presented
  as built "directly into" openai-python).
- microsoft/autogen#8009: open draft, not merged (was listed among
  shipped integration authors).
- "Adopted by: Inspect AI" -> listed in Inspect AI's community
  extensions (PR #4797, docs listing, now under "Frameworks", not
  "Tooling").
- IBM/ares#583 and ClawBench#336: merged, but authored by the EvalPort
  maintainer; IBM/ares approval came via stefano81's review, not
  nedshivina's (who reviewed only #579).
- PraisonAI#4667: merged, opened by the project's triage bot from an
  EvalPort-filed issue; its output fails validate_suite() /
  validate_result_set().
- truera/trulens#2757: open, unapproved, dirty, 3 failing checks; the
  approval was on #2697, which closed unmerged.
- harbor-framework/terminal-bench-science#1652: open, no approving
  review (was described as "approved").
- deepsense-ai/ragbits#989: closed without merging on 2026-09-10 (was
  listed as open and pending review).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RtocdH3tKifGdkiCZxxV3F

* docs(critique): state upstream adoption precisely, with authorship

The 2026-09-16 correction in CRITIQUE.md counted "four merged upstream
PRs" and 54 adapters as validation of the political-adoption
mitigation, and described TruLens #2757 as having "18/18 tests
passing". Re-checked live on 2026-09-27:

- 65 adapters now in adapters/ (all maintained in this repo).
- Inspect AI #4797 is a docs listing; IBM/ares #583 and ClawBench #336
  were authored by the EvalPort maintainer; PraisonAI #4667 was
  generated by that project's bot from an EvalPort issue and its
  output fails validate_suite()/validate_result_set().
- TruLens #2757 is open, unapproved, dirty, with failing cla and two
  CI checks; the approval was on #2697, which closed unmerged. Its PR
  body reports 17 tests, not 18.

The summary-table status moves from "Mitigated" to "Partly mitigated"
to match. The root CRITIQUE.md mirror is updated byte-identically.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RtocdH3tKifGdkiCZxxV3F

* docs(spec): correct the TruLens status in the SPEC.md header

The Status line said the TruLens module "has been reviewed and approved
by a TruLens maintainer but is not yet merged (blocked on CI/rename)".
Re-checked live on 2026-09-27: the approval was given on
truera/trulens#2697, which was closed without merging (merged: false).
Its successor #2757 is open, review_decision REVIEW_REQUIRED,
mergeable_state dirty, with failing cla, PR Validation Eval and
py311-static checks. The rename was already done in #2757, so it is no
longer a blocker. Only that clause changes. The root SPEC.md mirror is
updated byte-identically.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RtocdH3tKifGdkiCZxxV3F

* docs(spec): sync root SPEC.md mirror with spec/SPEC.md

The previous commit updated only spec/SPEC.md, although its message
said the root mirror was included. This commit applies the same
one-clause TruLens status correction to the root SPEC.md, so the two
files are byte-identical again as the validate-schemas mirror check
requires.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RtocdH3tKifGdkiCZxxV3F

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
@DresdenGman

Copy link
Copy Markdown
Author

Closing the loop on my end: I am leaving this PR as a draft on purpose. AutoGen has since moved from maintenance mode to archived, and new features are out of scope for this repository, so there is nothing I am asking the maintainers to review or merge here.

For anyone who lands here looking for this integration: the adapter design from this PR (to_openeval() / from_openeval() in autogenstudio/eval) is available as the standalone autogen-openeval-adapter package published by adhabnr-ux, and native support in the successor project is proposed in microsoft/agent-framework#7590.

Thanks adhabnr-ux for the spec review and for carrying the integration forward. Happy to close this PR instead if a maintainer prefers that.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Proposal] EvalPort Import/Export Support

2 participants