Repository navigation
Conversation
This branch has not been deployed
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.
What this adds
DrexClassifier, an opt-in scorer in both Python and TypeScript that asks a Drex decision model whether an output meets a criterion. Drex answers typed questions (yes/no/unclear, multiple choice, or a 0-100 score) and returns probabilities, so the pass threshold can be chosen after the run, in Braintrust, instead of before it. Each score's metadata keeps the probabilities.I work at Nace, which makes Drex. This is an independent scorer: it does not change any existing scorer, template or default.
How it works
POST <base>/v1/systemone(httpx or urllib in Python, globalfetchin TypeScript). No new runtime dependency.NACE_API_KEYis read from the environment;NACE_BASE_URLis optional for self-hosted Drex. The default model isdrex-max.examples/drex/, and the scorer is listed inSCORERS.mdandREADME.md.Other changes in this diff
js/version.tsis new so the TypeScript client can reportautoevals/<version>the way the Python client already does throughversion.py..github/scripts/check_version_sync.py,docs/PUBLISHING.md,AGENTS.mdand the publish workflow's instruction text now say thatpackage.json,py/autoevals/version.pyandjs/version.tsmust match. Happy to split this out if you prefer.Validation
uv run --extra dev --extra scipy pytest py/autoevals/test_drex.py: 65 passed, 3 skipped (live tests, which needNACE_API_KEY).pnpm exec vitest run js/drex.test.ts: 56 passed, 3 skipped (live tests).python3 .github/scripts/check_version_sync.py: versions in sync (0.4.1).tsc --noEmitreports one error injs/render-messages.test.ts, a file this PR does not touch.pre-commit.Agent review
main.🤖 Generated with Claude Code