Repository navigation
feat(voice): add managed Python voice eval helpers - #1179
Draft
Alex Z (CLowbrow) wants to merge 1 commit into
Draft
Alex Z (CLowbrow) wants to merge 1 commit into
Alex Z (CLowbrow) wants to merge 1 commit into
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.
Adds
braintrust.voiceso an eval supplies its agent and caller instead of implementing REST setup, WebSocket audio, playback acknowledgements, interruption epochs, or tracing serialization.voice_task(...)plugs intoEval/EvalAsync;run_voice_call(...)supports custom tasks. A connector forwards a serializable call context to a local or remote agent and awaits the completed result:The agent-side helper activates the eval parent before pipeline construction and returns the application result, caller-only transcript, and recording references after finalization. Native Pipecat and LiveKit transports handle media and shutdown; the LiveKit receiver also reports agent failures back to the eval. Inline callers and saved references are supported. Call credentials are excluded from SDK logs and malformed-result errors.
Backend dependency
Requires the companion session API and data plane feature version 149. Deploy that backend capability before releasing these helpers. Existing disabled voice services remain disabled.
Validation
make fixupfound pre-existing import-order issues in six maintenance scripts; incidental edits to those files were excluded.Usage examples are included in
py/src/braintrust/voice/README.md.