agent-eval-contract 0.2.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,107 @@
1
+ Metadata-Version: 2.4
2
+ Name: agent-eval-contract
3
+ Version: 0.2.0
4
+ Summary: Pydantic contracts and JSON Schemas for portable agent evaluation records.
5
+ Author: Jakye Amos
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/jakyeamos/agent-eval-contract
8
+ Project-URL: Repository, https://github.com/jakyeamos/agent-eval-contract
9
+ Project-URL: Issues, https://github.com/jakyeamos/agent-eval-contract/issues
10
+ Keywords: agents,ai-evaluation,evals,harness,json-schema,pydantic
11
+ Classifier: Development Status :: 3 - Alpha
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3.12
15
+ Classifier: Programming Language :: Python :: 3.13
16
+ Classifier: Programming Language :: Python :: 3.14
17
+ Classifier: Topic :: Software Development :: Quality Assurance
18
+ Classifier: Topic :: Software Development :: Testing
19
+ Classifier: Typing :: Typed
20
+ Requires-Python: >=3.12
21
+ Description-Content-Type: text/markdown
22
+ License-File: LICENSE
23
+ Requires-Dist: pydantic<3,>=2
24
+ Dynamic: license-file
25
+
26
+ # Agent Eval Contract
27
+
28
+ Pydantic contracts and JSON Schemas for portable agent evaluation records.
29
+
30
+ 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.
31
+
32
+ ## Install
33
+
34
+ ```bash
35
+ pip install agent-eval-contract
36
+ ```
37
+
38
+ For local development from this repo:
39
+
40
+ ```bash
41
+ uv sync --dev
42
+ ```
43
+
44
+ ## Validate A Record
45
+
46
+ ```python
47
+ from agent_eval_contract import validate_eval_run
48
+
49
+ run = validate_eval_run(
50
+ {
51
+ "run_id": "run-login-flow-001",
52
+ "task_id": "task-login-flow-001",
53
+ "harness": "pytest",
54
+ "model": "gpt-5",
55
+ "mode": "autonomous",
56
+ "context_profile": "repo_only",
57
+ "final_status": "success",
58
+ "checks": ["pytest tests/test_auth_redirect.py -q"],
59
+ }
60
+ )
61
+
62
+ print(run.model_dump(mode="json"))
63
+ ```
64
+
65
+ Validation returns typed Pydantic model instances. Invalid records raise `pydantic.ValidationError` with structured field errors.
66
+
67
+ ## CLI
68
+
69
+ ```bash
70
+ agent-eval-contract validate --kind run --file examples/eval_run.json
71
+ agent-eval-contract schemas --output-dir /tmp/agent-eval-contract-schemas
72
+ agent-eval-contract fixtures --output-dir /tmp/agent-eval-contract-fixtures
73
+ agent-eval-contract normalize --harness terminal-bench --file examples/terminal_bench_result.json --task-id task-login-flow-001 --model gpt-5
74
+ agent-eval-contract normalize --harness swe-bench --file examples/swe_bench_result.json
75
+ ```
76
+
77
+ The legacy `agent-eval-contract-fixtures` command still writes fixture bundles for one release.
78
+
79
+ ## What It Provides
80
+
81
+ - Pydantic models for eval tasks, runs, scores, failures, external results, normalized runs, and fixture manifests
82
+ - runtime validators that return typed model instances
83
+ - JSON Schema export for all public models
84
+ - bundled sample records and markdown templates
85
+ - Terminal-Bench and SWE-bench oriented normalization helpers
86
+ - a small CLI for validation, schema export, fixture generation, and normalization
87
+
88
+ ## Contract Vocabulary
89
+
90
+ The public core uses generic vocabulary only. Project-specific concepts should live in `metadata` or a separate adapter package.
91
+
92
+ - `context_profile`: `repo_only`, `provided_context`, `clean_room`, `tool_augmented`, `full_workspace`
93
+ - `source`: `manual`, `ci`, `benchmark`, `production_trace`, `synthetic`
94
+ - `mode`: `interactive`, `autonomous`, `shadow`, `replay`, `benchmark`
95
+ - `final_status`: `success`, `partial`, `failed`, `abandoned`, `error`
96
+
97
+ See [docs/contract.md](docs/contract.md), [docs/field-reference.md](docs/field-reference.md), and [docs/adapters.md](docs/adapters.md) for the model contract and adapter guidance.
98
+
99
+ ## Development
100
+
101
+ ```bash
102
+ uv run ruff check agent_eval_contract tests
103
+ uv run ruff format --check agent_eval_contract tests
104
+ uv run basedpyright agent_eval_contract tests
105
+ uv run pytest -q
106
+ uv build --out-dir /tmp/agent-eval-contract-dist
107
+ ```
@@ -0,0 +1,25 @@
1
+ agent_eval_contract/__init__.py,sha256=T7N3nI4rS-QopECHv5ETC15udtykMAELbwgAo2_3Kho,2617
2
+ agent_eval_contract/clean_room.py,sha256=_YJethwAQcw-kxNxPR96YaWKonOZ7nHh_dNvpWRCtC0,686
3
+ agent_eval_contract/cli.py,sha256=AHWNaK1dq4rTt6II00_vFsnfySAM-G4RdtusSPy6SG4,3742
4
+ agent_eval_contract/external.py,sha256=SRK8EDJvOWLaG5SSkEc8EGb5htITU4ez0Fhq54ugxxg,7033
5
+ agent_eval_contract/fixture_runner.py,sha256=UvfWd7g2uCI8AdRbeCS2ypDzvDbjypaG48Jdxx4eD0k,2838
6
+ agent_eval_contract/models.py,sha256=wsxu9E0o-41kxzMdRZvUrR12MucWtR2QHo_OMW8KLF8,5441
7
+ agent_eval_contract/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
8
+ agent_eval_contract/release.py,sha256=ma4nASgM9dp4uwIyRYr0rVGSyd9O4ZcMu3nCM8EL2FQ,2118
9
+ agent_eval_contract/release_metadata.json,sha256=GT7mAmwxRsQw8DBXYN7KSPZcfsdgOV_NjBTUuCCAa4Y,1189
10
+ agent_eval_contract/samples.py,sha256=O-cDq6y34BsO5Kc8xYuPiaS4DO24OugHUj2HzUljjaw,2861
11
+ agent_eval_contract/schema_export.py,sha256=d--Eb4zHWFK5LopsqqJcEKdOU5EO9TgC5k2yd_-0AF0,1076
12
+ agent_eval_contract/schemas.py,sha256=lWGcMALDzWv8Byd4H_tZgOlsCwRi5sds1W0kkOWRK5k,893
13
+ agent_eval_contract/templates.py,sha256=r37AwsLX2HfFPljx0yagZswy3kRK5I-C4mqEL03U_i8,3210
14
+ agent_eval_contract/validators.py,sha256=tgQ4IS39T7h1-kvGy1l7VcLH_nYnocCs9I5WIJ2o16M,4015
15
+ agent_eval_contract/samples/eval_failure.json,sha256=Bimd0LwT14zaJQ1NXq24oaAN6jzJvCgX70zz_lq5oTg,691
16
+ agent_eval_contract/samples/eval_run.json,sha256=7yX8ZOyKFSPtVaKtscmXfndZb2GzBJDBhyEO3Lqpj_E,664
17
+ agent_eval_contract/samples/eval_score.json,sha256=eQOxXLugT5nG9Xip3atPcdRcOgmJ5UjjsWAkzVz_IF8,371
18
+ agent_eval_contract/samples/eval_task.json,sha256=BKsBwGOufAXvDVTjuCF8h2i2CEhTSCL3at9aSC7jQXU,693
19
+ agent_eval_contract/samples/external_result_normalization.json,sha256=CcA9-ewXpaVs1qPhY_N6k5yn03DukgkPogs3l0GuLBs,860
20
+ agent_eval_contract-0.2.0.dist-info/licenses/LICENSE,sha256=RodEmwx_oPFIr3EfIiApJ3-87ze5JZnSjzM4BGHhnfQ,1067
21
+ agent_eval_contract-0.2.0.dist-info/METADATA,sha256=2xQ6vCsrqwA51y15dkSJbppN0TQdiXta_kCoC38XZn4,4089
22
+ agent_eval_contract-0.2.0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
23
+ agent_eval_contract-0.2.0.dist-info/entry_points.txt,sha256=YAG3pntEb5Nxq9vCD3OkEzOYitjNjLK9ibCJ8lJ9aLA,140
24
+ agent_eval_contract-0.2.0.dist-info/top_level.txt,sha256=RjxE1iMAN1BgJY98BExHskv0wx_FhdIiyhGZhatTNRE,20
25
+ agent_eval_contract-0.2.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (82.0.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,3 @@
1
+ [console_scripts]
2
+ agent-eval-contract = agent_eval_contract.cli:main
3
+ agent-eval-contract-fixtures = agent_eval_contract.fixture_runner:main
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Jakye Amos
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ agent_eval_contract