fix[evals] remove braintrust api key requirement (#2145)
Merged
MI
6mo ago+215+215+012345678901234567890123456789-11-11-01234567890123456789
why
Evals should be able to run without the braintrust dependency
what changed
- Added
hasBraintrustApiKey()and madetracedSpan()a passthrough when no key. AISdkClientWrappedfalls back to the plainaiSDK whenbraintrustwrapping isn’t available; introduced aWrappedAItype and lazy load keyed onBRAINTRUST_API_KEY.
test plan
- Added tests for key-present/absent paths and updated
core-runnertest to set a dummy key; fixes for test stability and build.
Summary by cubic
Make Braintrust optional for evals. Evals run without BRAINTRUST_API_KEY and skip sending logs; behavior is unchanged when a key is set.
- Bug Fixes
- Added
hasBraintrustApiKey()and madetracedSpan()a passthrough when no key. - Runner now passes
noSendLogs: truetoEvaland skipsflush()without a key; sends logs and flushes when present. AISdkClientWrappedfalls back to the plainaiSDK whenbraintrustwrapping isn’t available; introduced aWrappedAItype and lazy load keyed onBRAINTRUST_API_KEY.- Added tests for key-present/absent paths and updated
core-runnertest to set a dummy key; fixes for test stability and build.
- Added