The official Python SDK for Eval Protocol (EP.) EP is an open protocol that standardizes how developers author evals for large language model (LLM) applications.
Project description
Eval Protocol (EP)
Stop guessing which AI model to use. Build a data-driven model leaderboard.
With hundreds of models and configs, you need objective data to choose the right one for your use case. EP helps you evaluate real traces, compare models, and visualize results locally.
🚀 Features
- Pytest authoring:
@evaluation_testdecorator to configure evaluations - Robust rollouts: Handles flaky LLM APIs and parallel execution
- Integrations: Works with Langfuse, LangSmith, Braintrust, Responses API
- Agent support: LangGraph and Pydantic AI
- MCP RL envs: Build reinforcement learning environments with MCP
- Built-in benchmarks: AIME, tau-bench
- LLM judge: Stack-rank models using pairwise Arena-Hard-Auto
- Local UI: Pivot/table views for real-time analysis
⚡ Quickstart (no labels needed)
Install with your tracing platform extras and set API keys:
pip install 'eval-protocol[langfuse]'
# Model API keys (set what you need)
export OPENAI_API_KEY=...
export FIREWORKS_API_KEY=...
export GEMINI_API_KEY=...
# Platform keys
export LANGFUSE_PUBLIC_KEY=...
export LANGFUSE_SECRET_KEY=...
export LANGFUSE_HOST=https://your-deployment.com # optional
Minimal evaluation using the built-in AHA judge:
from datetime import datetime
import pytest
from eval_protocol import (
evaluation_test,
aha_judge,
EvaluationRow,
SingleTurnRolloutProcessor,
DynamicDataLoader,
create_langfuse_adapter,
)
def langfuse_data_generator() -> list[EvaluationRow]:
adapter = create_langfuse_adapter()
return adapter.get_evaluation_rows(
to_timestamp=datetime.utcnow(),
limit=20,
sample_size=5,
)
@pytest.mark.parametrize(
"completion_params",
[
{"model": "openai/gpt-4.1"},
{"model": "fireworks_ai/accounts/fireworks/models/gpt-oss-120b"},
],
)
@evaluation_test(
data_loaders=DynamicDataLoader(generators=[langfuse_data_generator]),
rollout_processor=SingleTurnRolloutProcessor(),
)
async def test_llm_judge(row: EvaluationRow) -> EvaluationRow:
return await aha_judge(row)
Run it:
pytest -q -s
The pytest output includes local links for a leaderboard and row-level traces (pivot/table) at http://localhost:8000.
Installation
This library requires Python >= 3.10.
pip
pip install eval-protocol
uv (recommended)
# Install uv (if needed)
curl -LsSf https://astral.sh/uv/install.sh | sh
# Add to your project
uv add eval-protocol
📚 Resources
- Documentation – Guides and API reference
- Discord – Community
- GitHub – Source and examples
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file eval_protocol-0.2.80.dev2.tar.gz.
File metadata
- Download URL: eval_protocol-0.2.80.dev2.tar.gz
- Upload date:
- Size: 2.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
341757c03d940fda08c57d0c8452efe90dc1f2c80e5aca5b10cbf50051423c63
|
|
| MD5 |
16bb2d4b6ab550c6212719959a032385
|
|
| BLAKE2b-256 |
fde497fb543f919abaf6f87f4d62763873d8bf12485177b0d0a23b9de7fc16de
|
Provenance
The following attestation bundles were made for eval_protocol-0.2.80.dev2.tar.gz:
Publisher:
release.yml on eval-protocol/python-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
eval_protocol-0.2.80.dev2.tar.gz -
Subject digest:
341757c03d940fda08c57d0c8452efe90dc1f2c80e5aca5b10cbf50051423c63 - Sigstore transparency entry: 669008502
- Sigstore integration time:
-
Permalink:
eval-protocol/python-sdk@68c7a2df7942ab27516e2d6c12300cc824c999ed -
Branch / Tag:
refs/tags/v0.2.80-dev2 - Owner: https://github.com/eval-protocol
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@68c7a2df7942ab27516e2d6c12300cc824c999ed -
Trigger Event:
push
-
Statement type:
File details
Details for the file eval_protocol-0.2.80.dev2-py3-none-any.whl.
File metadata
- Download URL: eval_protocol-0.2.80.dev2-py3-none-any.whl
- Upload date:
- Size: 2.0 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
410b0c5aabb283aad9df6bdc4e485a98559ee1e6a3a774f06687b756a1edf38d
|
|
| MD5 |
8971047c1e24ee96bae1e0062385b683
|
|
| BLAKE2b-256 |
a9592ed1c807e98426528dfc7b15a2795d10ed746edcdf6e35a0351b74a64c80
|
Provenance
The following attestation bundles were made for eval_protocol-0.2.80.dev2-py3-none-any.whl:
Publisher:
release.yml on eval-protocol/python-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
eval_protocol-0.2.80.dev2-py3-none-any.whl -
Subject digest:
410b0c5aabb283aad9df6bdc4e485a98559ee1e6a3a774f06687b756a1edf38d - Sigstore transparency entry: 669008504
- Sigstore integration time:
-
Permalink:
eval-protocol/python-sdk@68c7a2df7942ab27516e2d6c12300cc824c999ed -
Branch / Tag:
refs/tags/v0.2.80-dev2 - Owner: https://github.com/eval-protocol
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@68c7a2df7942ab27516e2d6c12300cc824c999ed -
Trigger Event:
push
-
Statement type: