feat: add voice task success scorer - #232
Draft
kev (kevchoi) wants to merge 1 commit into
Draft
kev (kevchoi) wants to merge 1 commit into
kev (kevchoi) wants to merge 1 commit into
Conversation
Braintrust eval report
|
kev (kevchoi)
force-pushed
the
kevchoi/20261002-voice-task-success-sdk
branch
3 times, most recently
from
October 2, 2026 22:37
bca422d to
9a9e057
Compare
kev (kevchoi)
force-pushed
the
kevchoi/20261002-voice-task-success-sdk
branch
from
October 2, 2026 22:55
9a9e057 to
e2e2d83
Compare
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
kev (kevchoi)
force-pushed
the
kevchoi/20261002-voice-task-success-sdk
branch
from
October 2, 2026 23:42
e2e2d83 to
b0598fe
Compare
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.
Summary
Adds
VoiceTaskSuccess, an LLM judge for whether a voice agent completed the caller's request, judged from the whole call (instructions, tool calls, tool results).templates/voice_task_success.yaml: A/B/C rubric over{{thread_with_system}}.VoiceTaskSuccess: picks the conversation from athread_with_systemargument, elsetrace.getThread()/trace.get_thread(). With no conversation it returns a null score without calling the model. Otherwise it passes the messages to the template as a JSON string, so tool calls and results are included.js/manifest.tsentry, so it's available as a built-in scorer.SCORERS.md,README.md,AGENTS.md.Testing
tsc --noEmit(one pre-existing error injs/render-messages.test.ts), vitest, pre-commit. Tests that need an OpenAI key fail the same way onmain.thread_with_system, trace, no conversation (null), empty trace (null), and.partial.JSON.stringifyand Pythonjson.dumpsproduce identical text for the same conversation. The judge cites tool names and arguments (atransferof $1000 to Bob when the caller asked for $10 to Alice scores 0).🤖 Generated with Claude Code