feat(examples): add EvalHub adapter for running arksim evals#183
Open
itsarbit wants to merge 2 commits into
Open
feat(examples): add EvalHub adapter for running arksim evals#183itsarbit wants to merge 2 commits into
itsarbit wants to merge 2 commits into
Conversation
Runs arksim's multi-turn agent simulation and evaluation as an EvalHub benchmark provider (local-mode proof of concept). EvalHub points at a target agent endpoint; the adapter drives it with simulated users, scores the transcripts, and reports aggregate metrics to EvalHub plus the transcripts and HTML report to MLflow. Includes the FrameworkAdapter, a pure JobSpec<->arksim mapping module, local runner, sample job spec, provider template, Containerfile, and tests for the mapping and adapter wiring. Verified end-to-end against OpenAI and a local MLflow server.
Add a dedicated 'Eval platform integrations' section to the docs and a README pointer (EvalHub hosts arksim as a provider, so it isn't a framework connector). Convert the example README to the house Files table and enrich the sample scenarios to match sibling style.
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a proof-of-concept adapter that runs arksim's multi-turn agent simulation
and evaluation as an EvalHub benchmark provider,
under
examples/integrations/evalhub/.EvalHub points at a target agent endpoint; the adapter drives it with simulated
users across scenarios, scores the transcripts, and reports aggregate metrics to
EvalHub plus the transcripts and HTML report to MLflow.
How it maps
JobSpec.model.url/.namechat_completionsora2a)JobSpec.model.auth.secret_ref->/var/run/secrets/model/api-keyJobSpec.parameters(freeform JSON)ArksimJobParameters)overall_agent_score,goal_completion_score,turn_success_ratio,num_conversationssimulation.json,evaluation.json,final_report.htmlWhat's included
arksim_evalhub/mapping.py- pure EvalHub<->arksim transforms (no I/O), unit-tested.arksim_evalhub/adapter.py-ArksimAdapter(FrameworkAdapter), credential resolution, the sim+eval run, andmain().main.py/run_local.py- container and local entrypoints.job.example.json,provider.yaml,Containerfile,requirements.txt,README.md.Verified
ruffcheck + format clean; the fulltests/unitsuite is unaffected.Out of scope (follow-ups)
provider.yamlschema) - needs a live EvalHub deployment.ca_certfor custom-CA target endpoints.Note on credentials
Despite the EvalHub model-authentication docs, the SDK only auto-attaches the
ServiceAccount token to control-plane callbacks. The adapter reads the model
api-key itself (
read_model_auth_key("api-key")) and attaches it to the agent'soutbound requests. Worth confirming with the EvalHub team.