feat(eval): add classifier support#143
Merged
Merged
Conversation
Abhijeet Prasad (AbhiPrasad)
approved these changes
Jun 2, 2026
Adds a Classifier interface mirroring Scorer that returns categorical labels (id + optional label + optional metadata) instead of numeric scores, with multi-label support. Implements the cross-SDK classifiers spec: spans use type=classifier/purpose=scorer, errors are non-fatal and aggregated into classifier_errors on the eval span's metadata, and classifiers run concurrently with each other and with scorers within each case. Adds a required-validation that at least one of Scorers or Classifiers must be provided. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Mirror the existing classifier gating so runs that only configure classifiers don't pay for an empty scorer goroutine. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Inline the one-item helper at the 5 callsites — the explicit
Classifications{{ID: ...}} literal is clear enough on its own.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Stephen Belanger (Qard)
force-pushed
the
classifiers
branch
from
June 3, 2026 17:11
447178e to
df3f110
Compare
Stephen Belanger (Qard)
enabled auto-merge (squash)
June 3, 2026 17:12
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.
Summary
Ports the classifiers feature from the Ruby SDK (braintrustdata/braintrust-sdk-ruby#154) into the Go SDK, implementing the cross-SDK classifiers spec.
Test plan
🤖 Generated with Claude Code