Observed since 20 Oct, 21:52 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Pydantic contracts and JSON Schemas for portable agent evaluation records.
Pydantic contracts and JSON Schemas for portable agent evaluation records.
Use this package when you are experimenting with agents, harnesses, CI checks, or benchmark runners and need a stable record shape for tasks, runs, scores, failures, and normalized external results. It does not run evaluations, call model providers, store dashboards, or orchestrate agents. It gives those tools a shared contract.
pip install agent-eval-contract
For local development from this repo:
uv sync --dev
from agent_eval_contract import validate_eval_run
run = validate_eval_run(
{
"run_id": "run-login-flow-001",
"task_id": "task-login-flow-001",
"harness": "pytest",
"model": "gpt-5",
"mode": "autonomous",
"context_profile": "repo_only",
"final_status": "success",
"checks": ["pytest tests/test_auth_redirect.py -q"],
}
)
print(run.model_dump(mode="json"))
Validation returns typed Pydantic model instances. Invalid records raise pydantic.ValidationError with structured field errors.
agent-eval-contract validate --kind run --file examples/eval_run.json
agent-eval-contract schemas --output-dir /tmp/agent-eval-contract-schemas
agent-eval-contract fixtures --output-dir /tmp/agent-eval-contract-fixtures
agent-eval-contract normalize --harness terminal-bench --file examples/terminal_bench_result.json --task-id task-login-flow-001 --model gpt-5
agent-eval-contract normalize --harness swe-bench --file examples/swe_bench_result.json
The legacy agent-eval-contract-fixtures command still writes fixture bundles for one release.
The public core uses generic vocabulary only. Project-specific concepts should live in metadata or a separate adapter package.
context_profile: repo_only, provided_context, clean_room, tool_augmented, full_workspacesource: manual, ci, benchmark, production_trace, syntheticmode: interactive, autonomous, shadow, replay, benchmarkfinal_status: success, partial, failed, abandoned, errorSee docs/contract.md, docs/field-reference.md, and docs/adapters.md for the model contract and adapter guidance.
uv run ruff check agent_eval_contract tests
uv run ruff format --check agent_eval_contract tests
uv run basedpyright agent_eval_contract tests
uv run pytest -q
uv build --out-dir /tmp/agent-eval-contract-dist
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.2.0 | 4 Jul 2026 | 1 |
This describes our collected data; it is not a security assessment.
Shared repository data · GitHub
Observed since 20 Oct, 21:52 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:c6ee49ca2af69376a3de6afcd3f7e4d1ff51459e3d9bbd292be7333bab9755a0