Skip to content

fix: eval parameters omit null description - #613

Merged
Abhijeet Prasad (AbhiPrasad) merged 3 commits into
mainfrom
fix-eval-parameters-omit-null-description
Jul 29, 2026
Merged

fix: eval parameters omit null description#613
Abhijeet Prasad (AbhiPrasad) merged 3 commits into
mainfrom
fix-eval-parameters-omit-null-description

Conversation

@stretpjc

@stretpjc Pedro Mora (stretpjc) commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

resolves https://linear.app/braintrustdata/issue/SDK-92/remote-eval-params-with-no-description-serialize-description-null

Summary

Remote eval dev mode (braintrust eval <file> --dev) hid all evals in the playground UI when any eval declared a parameter without a description.

All three branches of serialize_eval_parameters (prompt, model, data) emitted "description": null when unset. The playground's zod schema only accepts a string or an absent key, and it validates the whole /list response in one
safeParse — so one description-less parameter hid every eval on the endpoint.

Fix: include description only when it's not None, same as default already is. #508 fixed this pattern for prompt defaults; description was missed.

Test

With proposed change the remote eval is detected:
Screenshot 2026-07-22 at 2 13 25 PM

Same remote eval running in 0.30.1 is not detected:
image

@stretpjc

Copy link
Copy Markdown
Contributor Author

@AbhiPrasad Abhijeet Prasad (AbhiPrasad) changed the title Fix eval parameters omit null description fix: eval parameters omit null description Jul 29, 2026
@AbhiPrasad
Abhijeet Prasad (AbhiPrasad) force-pushed the fix-eval-parameters-omit-null-description branch from 0ea256a to 6b0c0ce Compare July 29, 2026 14:52
@AbhiPrasad
Abhijeet Prasad (AbhiPrasad) merged commit 6efda04 into main Jul 29, 2026
82 checks passed
@AbhiPrasad
Abhijeet Prasad (AbhiPrasad) deleted the fix-eval-parameters-omit-null-description branch July 29, 2026 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants