agentgauge-eval 0.1.0__tar.gz
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.
- agentgauge_eval-0.1.0/.githooks/commit-msg +3 -0
- agentgauge_eval-0.1.0/.github/ISSUE_TEMPLATE/bug.yml +29 -0
- agentgauge_eval-0.1.0/.github/ISSUE_TEMPLATE/feature.yml +25 -0
- agentgauge_eval-0.1.0/.github/PULL_REQUEST_TEMPLATE.md +7 -0
- agentgauge_eval-0.1.0/.github/workflows/ci.yml +48 -0
- agentgauge_eval-0.1.0/.github/workflows/publish.yml +48 -0
- agentgauge_eval-0.1.0/.github/workflows/release-please.yml +21 -0
- agentgauge_eval-0.1.0/.gitignore +25 -0
- agentgauge_eval-0.1.0/.pre-commit-config.yaml +12 -0
- agentgauge_eval-0.1.0/.release-please-manifest.json +1 -0
- agentgauge_eval-0.1.0/CHANGELOG.md +65 -0
- agentgauge_eval-0.1.0/CODE_OF_CONDUCT.md +38 -0
- agentgauge_eval-0.1.0/CONTRIBUTING.md +29 -0
- agentgauge_eval-0.1.0/LICENSE +202 -0
- agentgauge_eval-0.1.0/PKG-INFO +114 -0
- agentgauge_eval-0.1.0/README.md +98 -0
- agentgauge_eval-0.1.0/SECURITY.md +11 -0
- agentgauge_eval-0.1.0/docs/adr/0001-record-architecture-decisions.md +19 -0
- agentgauge_eval-0.1.0/docs/adr/0002-provider-interface.md +36 -0
- agentgauge_eval-0.1.0/docs/adr/0003-scorer-interface-and-registry.md +27 -0
- agentgauge_eval-0.1.0/docs/adr/0004-deterministic-scorer-semantics.md +26 -0
- agentgauge_eval-0.1.0/docs/adr/0005-runner-semantics.md +28 -0
- agentgauge_eval-0.1.0/docs/adr/0006-run-storage.md +29 -0
- agentgauge_eval-0.1.0/docs/adr/0007-cli-and-suite-provider-config.md +28 -0
- agentgauge_eval-0.1.0/examples/basic/suite.yaml +33 -0
- agentgauge_eval-0.1.0/pyproject.toml +64 -0
- agentgauge_eval-0.1.0/release-please-config.json +13 -0
- agentgauge_eval-0.1.0/src/agentgauge/__init__.py +3 -0
- agentgauge_eval-0.1.0/src/agentgauge/__main__.py +3 -0
- agentgauge_eval-0.1.0/src/agentgauge/cli/__init__.py +5 -0
- agentgauge_eval-0.1.0/src/agentgauge/cli/app.py +171 -0
- agentgauge_eval-0.1.0/src/agentgauge/cli/render.py +140 -0
- agentgauge_eval-0.1.0/src/agentgauge/core/__init__.py +36 -0
- agentgauge_eval-0.1.0/src/agentgauge/core/loader.py +109 -0
- agentgauge_eval-0.1.0/src/agentgauge/core/models.py +220 -0
- agentgauge_eval-0.1.0/src/agentgauge/providers/__init__.py +16 -0
- agentgauge_eval-0.1.0/src/agentgauge/providers/base.py +36 -0
- agentgauge_eval-0.1.0/src/agentgauge/providers/factory.py +47 -0
- agentgauge_eval-0.1.0/src/agentgauge/providers/fake.py +92 -0
- agentgauge_eval-0.1.0/src/agentgauge/providers/openai_compat.py +253 -0
- agentgauge_eval-0.1.0/src/agentgauge/py.typed +0 -0
- agentgauge_eval-0.1.0/src/agentgauge/runner/__init__.py +5 -0
- agentgauge_eval-0.1.0/src/agentgauge/runner/runner.py +103 -0
- agentgauge_eval-0.1.0/src/agentgauge/scorers/__init__.py +31 -0
- agentgauge_eval-0.1.0/src/agentgauge/scorers/base.py +27 -0
- agentgauge_eval-0.1.0/src/agentgauge/scorers/deterministic.py +188 -0
- agentgauge_eval-0.1.0/src/agentgauge/scorers/registry.py +53 -0
- agentgauge_eval-0.1.0/src/agentgauge/scorers/schema.py +200 -0
- agentgauge_eval-0.1.0/src/agentgauge/storage/__init__.py +6 -0
- agentgauge_eval-0.1.0/src/agentgauge/storage/migrations.py +83 -0
- agentgauge_eval-0.1.0/src/agentgauge/storage/store.py +183 -0
- agentgauge_eval-0.1.0/tests/fixtures/suites/invalid_case.jsonl +2 -0
- agentgauge_eval-0.1.0/tests/fixtures/suites/invalid_field.yaml +6 -0
- agentgauge_eval-0.1.0/tests/fixtures/suites/invalid_json.jsonl +2 -0
- agentgauge_eval-0.1.0/tests/fixtures/suites/invalid_syntax.yaml +4 -0
- agentgauge_eval-0.1.0/tests/fixtures/suites/invalid_tool_message.yaml +6 -0
- agentgauge_eval-0.1.0/tests/fixtures/suites/invalid_toplevel.yaml +3 -0
- agentgauge_eval-0.1.0/tests/fixtures/suites/invalid_type.yaml +4 -0
- agentgauge_eval-0.1.0/tests/fixtures/suites/messages.yaml +10 -0
- agentgauge_eval-0.1.0/tests/fixtures/suites/not_a_mapping.yaml +1 -0
- agentgauge_eval-0.1.0/tests/fixtures/suites/scorer_params.yaml +10 -0
- agentgauge_eval-0.1.0/tests/fixtures/suites/tool_conversation.yaml +20 -0
- agentgauge_eval-0.1.0/tests/fixtures/suites/valid.jsonl +3 -0
- agentgauge_eval-0.1.0/tests/fixtures/suites/valid.yaml +12 -0
- agentgauge_eval-0.1.0/tests/fixtures/suites/with_provider.yaml +10 -0
- agentgauge_eval-0.1.0/tests/integration/test_basic_example.py +56 -0
- agentgauge_eval-0.1.0/tests/integration/test_readme.py +82 -0
- agentgauge_eval-0.1.0/tests/unit/cli/test_app.py +30 -0
- agentgauge_eval-0.1.0/tests/unit/cli/test_render.py +132 -0
- agentgauge_eval-0.1.0/tests/unit/cli/test_run.py +292 -0
- agentgauge_eval-0.1.0/tests/unit/conftest.py +16 -0
- agentgauge_eval-0.1.0/tests/unit/core/test_loader.py +114 -0
- agentgauge_eval-0.1.0/tests/unit/core/test_models.py +252 -0
- agentgauge_eval-0.1.0/tests/unit/providers/test_factory.py +98 -0
- agentgauge_eval-0.1.0/tests/unit/providers/test_fake.py +130 -0
- agentgauge_eval-0.1.0/tests/unit/providers/test_openai_compat.py +422 -0
- agentgauge_eval-0.1.0/tests/unit/runner/test_runner.py +238 -0
- agentgauge_eval-0.1.0/tests/unit/scorers/test_deterministic.py +269 -0
- agentgauge_eval-0.1.0/tests/unit/scorers/test_registry.py +75 -0
- agentgauge_eval-0.1.0/tests/unit/scorers/test_schema.py +174 -0
- agentgauge_eval-0.1.0/tests/unit/storage/test_migrations.py +87 -0
- agentgauge_eval-0.1.0/tests/unit/storage/test_store.py +288 -0
- agentgauge_eval-0.1.0/tests/unit/test_version.py +5 -0
- agentgauge_eval-0.1.0/uv.lock +722 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
name: Bug
|
|
2
|
+
description: Report something that is broken
|
|
3
|
+
title: "fix: "
|
|
4
|
+
labels: ["type:fix"]
|
|
5
|
+
body:
|
|
6
|
+
- type: textarea
|
|
7
|
+
id: what
|
|
8
|
+
attributes:
|
|
9
|
+
label: What happened
|
|
10
|
+
description: Actual versus expected behavior.
|
|
11
|
+
validations:
|
|
12
|
+
required: true
|
|
13
|
+
- type: textarea
|
|
14
|
+
id: repro
|
|
15
|
+
attributes:
|
|
16
|
+
label: Steps to reproduce
|
|
17
|
+
validations:
|
|
18
|
+
required: true
|
|
19
|
+
- type: input
|
|
20
|
+
id: version
|
|
21
|
+
attributes:
|
|
22
|
+
label: agentgauge version
|
|
23
|
+
validations:
|
|
24
|
+
required: true
|
|
25
|
+
- type: textarea
|
|
26
|
+
id: env
|
|
27
|
+
attributes:
|
|
28
|
+
label: Environment
|
|
29
|
+
description: OS, Python version, provider.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
name: Feature
|
|
2
|
+
description: Propose a new feature or enhancement
|
|
3
|
+
title: "feat: "
|
|
4
|
+
labels: ["type:feat"]
|
|
5
|
+
body:
|
|
6
|
+
- type: textarea
|
|
7
|
+
id: summary
|
|
8
|
+
attributes:
|
|
9
|
+
label: Summary
|
|
10
|
+
description: What should be built and why?
|
|
11
|
+
validations:
|
|
12
|
+
required: true
|
|
13
|
+
- type: textarea
|
|
14
|
+
id: acceptance
|
|
15
|
+
attributes:
|
|
16
|
+
label: Acceptance criteria
|
|
17
|
+
description: A checklist of conditions that must hold when this is done.
|
|
18
|
+
placeholder: "- [ ] ..."
|
|
19
|
+
validations:
|
|
20
|
+
required: true
|
|
21
|
+
- type: textarea
|
|
22
|
+
id: notes
|
|
23
|
+
attributes:
|
|
24
|
+
label: Notes
|
|
25
|
+
description: Design notes, alternatives considered, related issues.
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
name: ci
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
test:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
strategy:
|
|
12
|
+
fail-fast: false
|
|
13
|
+
matrix:
|
|
14
|
+
python-version: ["3.12", "3.13"]
|
|
15
|
+
steps:
|
|
16
|
+
- uses: actions/checkout@v4
|
|
17
|
+
with:
|
|
18
|
+
fetch-depth: 0
|
|
19
|
+
- uses: astral-sh/setup-uv@v5
|
|
20
|
+
with:
|
|
21
|
+
enable-cache: true
|
|
22
|
+
- name: Install Python
|
|
23
|
+
run: uv python install ${{ matrix.python-version }}
|
|
24
|
+
- name: Sync dependencies
|
|
25
|
+
run: uv sync --python ${{ matrix.python-version }}
|
|
26
|
+
- name: Ruff lint
|
|
27
|
+
run: uv run ruff check .
|
|
28
|
+
- name: Ruff format
|
|
29
|
+
run: uv run ruff format --check .
|
|
30
|
+
- name: Pyright
|
|
31
|
+
run: uv run pyright
|
|
32
|
+
- name: Pytest
|
|
33
|
+
run: uv run pytest --cov-report=xml
|
|
34
|
+
- name: Check for tool trailers in commit messages
|
|
35
|
+
if: github.event_name == 'pull_request' && matrix.python-version == '3.12'
|
|
36
|
+
run: |
|
|
37
|
+
if git log --format=%B origin/${{ github.base_ref }}..HEAD | grep -iE '^(co-authored-by:.*(claude|anthropic)|claude-session:)|generated with .*claude'; then
|
|
38
|
+
echo "Commit messages must not carry tool attribution." >&2
|
|
39
|
+
exit 1
|
|
40
|
+
fi
|
|
41
|
+
|
|
42
|
+
ci:
|
|
43
|
+
if: always()
|
|
44
|
+
needs: test
|
|
45
|
+
runs-on: ubuntu-latest
|
|
46
|
+
steps:
|
|
47
|
+
- name: Require all matrix jobs to pass
|
|
48
|
+
run: test "${{ needs.test.result }}" = "success"
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
name: publish
|
|
2
|
+
|
|
3
|
+
# Runs when release-please publishes a GitHub release. Uploads to PyPI with
|
|
4
|
+
# trusted publishing (OIDC), so no API token is stored anywhere.
|
|
5
|
+
on:
|
|
6
|
+
release:
|
|
7
|
+
types: [published]
|
|
8
|
+
|
|
9
|
+
permissions:
|
|
10
|
+
contents: read
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
build:
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
steps:
|
|
16
|
+
- uses: actions/checkout@v4
|
|
17
|
+
- uses: astral-sh/setup-uv@v5
|
|
18
|
+
- name: Build sdist and wheel
|
|
19
|
+
run: uv build
|
|
20
|
+
- name: Check the built version matches the release tag
|
|
21
|
+
run: |
|
|
22
|
+
tag="${GITHUB_REF_NAME#v}"
|
|
23
|
+
wheel="$(basename dist/*.whl)"
|
|
24
|
+
version="$(echo "$wheel" | cut -d- -f2)"
|
|
25
|
+
if [ "$tag" != "$version" ]; then
|
|
26
|
+
echo "Release tag $GITHUB_REF_NAME does not match built version $version" >&2
|
|
27
|
+
exit 1
|
|
28
|
+
fi
|
|
29
|
+
- uses: actions/upload-artifact@v4
|
|
30
|
+
with:
|
|
31
|
+
name: dist
|
|
32
|
+
path: dist/
|
|
33
|
+
if-no-files-found: error
|
|
34
|
+
|
|
35
|
+
publish:
|
|
36
|
+
needs: build
|
|
37
|
+
runs-on: ubuntu-latest
|
|
38
|
+
environment:
|
|
39
|
+
name: pypi
|
|
40
|
+
url: https://pypi.org/project/agentgauge-eval/
|
|
41
|
+
permissions:
|
|
42
|
+
id-token: write # required for trusted publishing
|
|
43
|
+
steps:
|
|
44
|
+
- uses: actions/download-artifact@v4
|
|
45
|
+
with:
|
|
46
|
+
name: dist
|
|
47
|
+
path: dist/
|
|
48
|
+
- uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
name: release-please
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
|
|
7
|
+
permissions:
|
|
8
|
+
contents: write
|
|
9
|
+
pull-requests: write
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
release-please:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
steps:
|
|
15
|
+
- uses: googleapis/release-please-action@v4
|
|
16
|
+
with:
|
|
17
|
+
# A PAT is needed so the release PR triggers CI; PRs opened with
|
|
18
|
+
# GITHUB_TOKEN do not start workflows.
|
|
19
|
+
token: ${{ secrets.RELEASE_PLEASE_TOKEN || secrets.GITHUB_TOKEN }}
|
|
20
|
+
config-file: release-please-config.json
|
|
21
|
+
manifest-file: .release-please-manifest.json
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Python
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*.egg-info/
|
|
5
|
+
build/
|
|
6
|
+
dist/
|
|
7
|
+
.venv/
|
|
8
|
+
.pytest_cache/
|
|
9
|
+
.ruff_cache/
|
|
10
|
+
.pyright/
|
|
11
|
+
.mypy_cache/
|
|
12
|
+
.coverage
|
|
13
|
+
coverage.xml
|
|
14
|
+
htmlcov/
|
|
15
|
+
*.sqlite
|
|
16
|
+
*.db
|
|
17
|
+
|
|
18
|
+
# Local agent and planning files
|
|
19
|
+
CLAUDE.md
|
|
20
|
+
CLAUDE.local.md
|
|
21
|
+
.claude/
|
|
22
|
+
PLAYBOOK.md
|
|
23
|
+
|
|
24
|
+
# agentgauge run database
|
|
25
|
+
.agentgauge/
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
repos:
|
|
2
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
3
|
+
rev: v0.17.3
|
|
4
|
+
hooks:
|
|
5
|
+
- id: ruff
|
|
6
|
+
args: [--fix]
|
|
7
|
+
- id: ruff-format
|
|
8
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
9
|
+
rev: v5.0.0
|
|
10
|
+
hooks:
|
|
11
|
+
- id: end-of-file-fixer
|
|
12
|
+
- id: trailing-whitespace
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{".":"0.1.0"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [0.1.0](https://github.com/AliNaveed01/agentgauge/compare/v0.0.1...v0.1.0) (2026-11-04)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **cli:** add run command ([#10](https://github.com/AliNaveed01/agentgauge/issues/10)) ([b82b0a3](https://github.com/AliNaveed01/agentgauge/commit/b82b0a30d66f4d88368901fb0da35b59161039d7))
|
|
9
|
+
* **cli:** add runs list command ([#10](https://github.com/AliNaveed01/agentgauge/issues/10)) ([9b77fc2](https://github.com/AliNaveed01/agentgauge/commit/9b77fc2a1a044c688241bac93fe535af4a3c02cb))
|
|
10
|
+
* **cli:** add runs show command ([#10](https://github.com/AliNaveed01/agentgauge/issues/10)) ([7619801](https://github.com/AliNaveed01/agentgauge/commit/76198017ae97e894f96e66f3dd08b1059aa3ba89))
|
|
11
|
+
* **cli:** add typer app and agentgauge entry point ([#10](https://github.com/AliNaveed01/agentgauge/issues/10)) ([cd1b4bc](https://github.com/AliNaveed01/agentgauge/commit/cd1b4bc616024b8296e3b3e9b8a85c2f85d5cb9d))
|
|
12
|
+
* **cli:** render runs and run lists as Rich tables ([#10](https://github.com/AliNaveed01/agentgauge/issues/10)) ([e20030d](https://github.com/AliNaveed01/agentgauge/commit/e20030d544416cff369c0904fec782c1d8170fa6))
|
|
13
|
+
* **core:** add CaseResult.passed ([#8](https://github.com/AliNaveed01/agentgauge/issues/8)) ([8ef4ce7](https://github.com/AliNaveed01/agentgauge/commit/8ef4ce73d958323bf5bb0f3dc00f36b96132ec98))
|
|
14
|
+
* **core:** add chat request, tool and params models ([60827aa](https://github.com/AliNaveed01/agentgauge/commit/60827aa48c84adc8d64180758fe82815b03603bf))
|
|
15
|
+
* **core:** add frozen domain models ([5c3fb2b](https://github.com/AliNaveed01/agentgauge/commit/5c3fb2b1f5be55e2fb6ed8b7052c286e50ad3520))
|
|
16
|
+
* **core:** add optional provider config to Suite ([#10](https://github.com/AliNaveed01/agentgauge/issues/10)) ([47c0463](https://github.com/AliNaveed01/agentgauge/commit/47c0463f8657e690f2d827ea06d035a5a127adbd))
|
|
17
|
+
* **core:** add ScorerSpec and accept it in Suite scorers ([#6](https://github.com/AliNaveed01/agentgauge/issues/6)) ([897f7e8](https://github.com/AliNaveed01/agentgauge/commit/897f7e87b413cda7a7b66d2b6b1261f10550a6d7))
|
|
18
|
+
* **core:** add tool_calls to Message with role validation ([93a62a7](https://github.com/AliNaveed01/agentgauge/commit/93a62a7cd9f90046f03ebf78b2bdd5310a88dba8))
|
|
19
|
+
* **core:** add YAML and JSONL suite loader ([73bac6e](https://github.com/AliNaveed01/agentgauge/commit/73bac6eb5d77d11e72ca39dad33103b8068e6888))
|
|
20
|
+
* **core:** record latency and cost on CaseResult ([#8](https://github.com/AliNaveed01/agentgauge/issues/8)) ([3fccd33](https://github.com/AliNaveed01/agentgauge/commit/3fccd3345b10795372fb004b0b8485d0870d3f4a))
|
|
21
|
+
* **providers:** add deterministic FakeProvider ([771e00b](https://github.com/AliNaveed01/agentgauge/commit/771e00b40a10d1801ab4c799c04dd4b1e3efe3ff))
|
|
22
|
+
* **providers:** add OpenAI-compatible adapter ([6a665a3](https://github.com/AliNaveed01/agentgauge/commit/6a665a399132fab5f33e21463e494380402d3a28))
|
|
23
|
+
* **providers:** add Provider protocol ([b001189](https://github.com/AliNaveed01/agentgauge/commit/b001189c800fece73b3e20bebbb97b7a1c880c85))
|
|
24
|
+
* **providers:** add ProviderError ([5222745](https://github.com/AliNaveed01/agentgauge/commit/5222745622b82af73d881ad0b382086b89c63e5a))
|
|
25
|
+
* **providers:** build providers from config ([#10](https://github.com/AliNaveed01/agentgauge/issues/10)) ([4e03a3b](https://github.com/AliNaveed01/agentgauge/commit/4e03a3b0b6d5e18df2925da05416a1121d3a3caf))
|
|
26
|
+
* **providers:** count tool calls in fake prompt tokens ([e33ac6c](https://github.com/AliNaveed01/agentgauge/commit/e33ac6c1b3558619f083ec47829d6cf6ac1ef808))
|
|
27
|
+
* **runner:** add run_suite to execute and score a suite ([#8](https://github.com/AliNaveed01/agentgauge/issues/8)) ([bbfeeb9](https://github.com/AliNaveed01/agentgauge/commit/bbfeeb9356c72e5fec9e6b773f871a283cbc389f))
|
|
28
|
+
* **runner:** bound in-flight cases with a concurrency limit ([#8](https://github.com/AliNaveed01/agentgauge/issues/8)) ([0df1200](https://github.com/AliNaveed01/agentgauge/commit/0df12005ea95a582ea186e29907de88941abcac2))
|
|
29
|
+
* **runner:** record case failures without aborting the run ([#8](https://github.com/AliNaveed01/agentgauge/issues/8)) ([5a617b1](https://github.com/AliNaveed01/agentgauge/commit/5a617b1dd2ec9b3d4d11513e0d33b4c9a8f9ee20))
|
|
30
|
+
* **scorers:** add contains scorer ([#7](https://github.com/AliNaveed01/agentgauge/issues/7)) ([0a28614](https://github.com/AliNaveed01/agentgauge/commit/0a286148e9f913875dd589cdd921c9e2f85c5baf))
|
|
31
|
+
* **scorers:** add exact_match scorer ([#7](https://github.com/AliNaveed01/agentgauge/issues/7)) ([8c3ffac](https://github.com/AliNaveed01/agentgauge/commit/8c3ffac9ca29d7b84006d484bbe2df4a4b70e6bf))
|
|
32
|
+
* **scorers:** add JSON Schema subset validator ([#7](https://github.com/AliNaveed01/agentgauge/issues/7)) ([21bfa95](https://github.com/AliNaveed01/agentgauge/commit/21bfa957ef4dfb847fcb0b50549405215db081f9))
|
|
33
|
+
* **scorers:** add json_schema scorer ([#7](https://github.com/AliNaveed01/agentgauge/issues/7)) ([f2f0be8](https://github.com/AliNaveed01/agentgauge/commit/f2f0be8f8f4dca1697a89dd27e9159b8cdb07257))
|
|
34
|
+
* **scorers:** add name-based scorer registry ([#6](https://github.com/AliNaveed01/agentgauge/issues/6)) ([3941775](https://github.com/AliNaveed01/agentgauge/commit/3941775186524841b962b03b890c40bee500e626))
|
|
35
|
+
* **scorers:** add numeric_tolerance scorer ([#7](https://github.com/AliNaveed01/agentgauge/issues/7)) ([6614c29](https://github.com/AliNaveed01/agentgauge/commit/6614c293c96c001d39d051b02bcdc0d79bd9c006))
|
|
36
|
+
* **scorers:** add regex scorer ([#7](https://github.com/AliNaveed01/agentgauge/issues/7)) ([de5ffde](https://github.com/AliNaveed01/agentgauge/commit/de5ffde0a0207a8930ff1a842de219bd9374ae0c))
|
|
37
|
+
* **scorers:** add Scorer protocol ([#6](https://github.com/AliNaveed01/agentgauge/issues/6)) ([9c56bb2](https://github.com/AliNaveed01/agentgauge/commit/9c56bb2fa4f9e51e53ec739d48810e54ac19e7f0))
|
|
38
|
+
* **storage:** add get_run with unique id prefix lookup ([#9](https://github.com/AliNaveed01/agentgauge/issues/9)) ([305b0b6](https://github.com/AliNaveed01/agentgauge/commit/305b0b674b18d098fc17d290ec6e323f501f242d))
|
|
39
|
+
* **storage:** add initial runs and case_results schema ([#9](https://github.com/AliNaveed01/agentgauge/issues/9)) ([541797d](https://github.com/AliNaveed01/agentgauge/commit/541797dc2c0d3af1c047ff3ebe9f849dc2eb4bfb))
|
|
40
|
+
* **storage:** add list_runs with outcome summaries ([#9](https://github.com/AliNaveed01/agentgauge/issues/9)) ([49f5317](https://github.com/AliNaveed01/agentgauge/commit/49f53177a7ad679bd9a75b5b6273a8ea6320a901))
|
|
41
|
+
* **storage:** add RunStore with save_run ([#9](https://github.com/AliNaveed01/agentgauge/issues/9)) ([62eaae6](https://github.com/AliNaveed01/agentgauge/commit/62eaae61e3417e9c8713a13f1b9ba993616c248b))
|
|
42
|
+
* **storage:** add schema migration runner ([#9](https://github.com/AliNaveed01/agentgauge/issues/9)) ([353d8f8](https://github.com/AliNaveed01/agentgauge/commit/353d8f869eb7df665ed1e82df51acf4ec77d935b))
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
### Bug Fixes
|
|
46
|
+
|
|
47
|
+
* **storage:** close the connection when opening the store fails ([#9](https://github.com/AliNaveed01/agentgauge/issues/9)) ([18cd2f5](https://github.com/AliNaveed01/agentgauge/commit/18cd2f5e2f52d89bce205be28126ba6b8dcbb525))
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
### Documentation
|
|
51
|
+
|
|
52
|
+
* add ADR 0001 on recording decisions ([31c6c51](https://github.com/AliNaveed01/agentgauge/commit/31c6c51ebc6525a91aecd5c06e82cd096ee3ace8))
|
|
53
|
+
* add ADR 0002 on the provider interface ([d8a990c](https://github.com/AliNaveed01/agentgauge/commit/d8a990c0dc2304c8ed306e33f3124ae5190ef1bb))
|
|
54
|
+
* add ADR 0003 on scorer interface and registry ([#6](https://github.com/AliNaveed01/agentgauge/issues/6)) ([7d21894](https://github.com/AliNaveed01/agentgauge/commit/7d21894c3f55bf22e22be4daa6a4e5a33306680f))
|
|
55
|
+
* add ADR 0004 on deterministic scorer semantics ([#7](https://github.com/AliNaveed01/agentgauge/issues/7)) ([9448f8b](https://github.com/AliNaveed01/agentgauge/commit/9448f8bb3d3084cb0157cecbfcb29eb4325c6bd9))
|
|
56
|
+
* add ADR 0005 on runner semantics ([#8](https://github.com/AliNaveed01/agentgauge/issues/8)) ([60eaad7](https://github.com/AliNaveed01/agentgauge/commit/60eaad7b2ebef9a4337ac5ec269b5879147292c0))
|
|
57
|
+
* add ADR 0006 on run storage ([#9](https://github.com/AliNaveed01/agentgauge/issues/9)) ([c9a07dd](https://github.com/AliNaveed01/agentgauge/commit/c9a07dd8427bdd5fc469737b0c1ae2551ac420cf))
|
|
58
|
+
* add ADR 0007 on CLI behaviour and suite provider config ([#10](https://github.com/AliNaveed01/agentgauge/issues/10)) ([43755e8](https://github.com/AliNaveed01/agentgauge/commit/43755e800fad1ffde7594db398bd9ea33bb5e135))
|
|
59
|
+
* add code of conduct ([7e9a57d](https://github.com/AliNaveed01/agentgauge/commit/7e9a57d4ec67eb99215abc958426167248226c12))
|
|
60
|
+
* add contributing guide ([cf2fdf0](https://github.com/AliNaveed01/agentgauge/commit/cf2fdf014b67c24973172ad258a8e607692600ce))
|
|
61
|
+
* add issue and pull request templates ([d88521a](https://github.com/AliNaveed01/agentgauge/commit/d88521a99e12634db03753ee3f0a46aa20afb888))
|
|
62
|
+
* add security policy ([3f8e1d9](https://github.com/AliNaveed01/agentgauge/commit/3f8e1d9003988b3c476abcfead2e0d423e5842a9))
|
|
63
|
+
* **examples:** add basic example suite on the fake provider ([#11](https://github.com/AliNaveed01/agentgauge/issues/11)) ([7d3ddf3](https://github.com/AliNaveed01/agentgauge/commit/7d3ddf323c44bb8e143e6fe14173482d21b70ced))
|
|
64
|
+
* update ADR 0002 for tool-call messages ([7044009](https://github.com/AliNaveed01/agentgauge/commit/704400928cebaf82e1cba3214b5cc12ab4c2818a))
|
|
65
|
+
* write README quickstart and suite guide ([#11](https://github.com/AliNaveed01/agentgauge/issues/11)) ([9e12c2f](https://github.com/AliNaveed01/agentgauge/commit/9e12c2fbd77065391accd62570d2c18d3e6eab94))
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
|
2
|
+
|
|
3
|
+
## Our Pledge
|
|
4
|
+
|
|
5
|
+
We as members, contributors, and maintainers pledge to make participation in this project a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
|
|
6
|
+
|
|
7
|
+
## Our Standards
|
|
8
|
+
|
|
9
|
+
Examples of behavior that contributes to a positive environment:
|
|
10
|
+
|
|
11
|
+
- Demonstrating empathy and kindness toward other people
|
|
12
|
+
- Being respectful of differing opinions, viewpoints, and experiences
|
|
13
|
+
- Giving and gracefully accepting constructive feedback
|
|
14
|
+
- Focusing on what is best for the community
|
|
15
|
+
|
|
16
|
+
Examples of unacceptable behavior:
|
|
17
|
+
|
|
18
|
+
- The use of sexualized language or imagery, and sexual attention or advances of any kind
|
|
19
|
+
- Trolling, insulting or derogatory comments, and personal or political attacks
|
|
20
|
+
- Public or private harassment
|
|
21
|
+
- Publishing others' private information without their explicit permission
|
|
22
|
+
- Other conduct which could reasonably be considered inappropriate in a professional setting
|
|
23
|
+
|
|
24
|
+
## Enforcement Responsibilities
|
|
25
|
+
|
|
26
|
+
Maintainers are responsible for clarifying and enforcing these standards and will take appropriate and fair corrective action in response to any behavior they deem inappropriate, threatening, offensive, or harmful.
|
|
27
|
+
|
|
28
|
+
## Scope
|
|
29
|
+
|
|
30
|
+
This Code of Conduct applies within all project spaces, and also when an individual is officially representing the project in public spaces.
|
|
31
|
+
|
|
32
|
+
## Enforcement
|
|
33
|
+
|
|
34
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the maintainers through a private GitHub security advisory or by contacting the repository owner via their GitHub profile. All complaints will be reviewed and investigated promptly and fairly.
|
|
35
|
+
|
|
36
|
+
## Attribution
|
|
37
|
+
|
|
38
|
+
This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org), version 2.1.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
Workflow is trunk-based: one issue, one short-lived branch, one PR, rebase-merged into a protected `main`.
|
|
4
|
+
|
|
5
|
+
## Setup
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
uv sync
|
|
9
|
+
git config core.hooksPath .githooks
|
|
10
|
+
uv run pre-commit install
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Conventions
|
|
14
|
+
|
|
15
|
+
| Area | Rule |
|
|
16
|
+
| --- | --- |
|
|
17
|
+
| Branches | `feat/<issue#>-<slug>`, `fix/…`, `chore/…`, `docs/…`, `test/…`, `ci/…`. Branch from latest `main` and keep it alive under 2 days |
|
|
18
|
+
| Commits | Conventional Commits (`feat(runner): add async concurrency limit`). One logical change each, typically 3–8 per PR. Imperative, under 72 chars |
|
|
19
|
+
| PRs | Title in Conventional Commit format, body says `Closes #N`, plus what changed, how it was tested and any trade-offs. Under ~400 changed lines |
|
|
20
|
+
| Merge | Rebase-merge only. No squash, no merge commits. Delete the branch after merge |
|
|
21
|
+
| Quality gate | ruff (lint + format), pyright strict on `src/`, pytest with ≥85% coverage on new code. All green before merge |
|
|
22
|
+
| Releases | release-please reads commit types, then bumps semver, writes the CHANGELOG and tags the release |
|
|
23
|
+
| Decisions | Any non-obvious design choice gets an ADR in `docs/adr/NNNN-title.md` |
|
|
24
|
+
|
|
25
|
+
## Before you push
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
uv run ruff check --fix . && uv run ruff format . && uv run pyright && uv run pytest
|
|
29
|
+
```
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|