Repository navigation
ci: add Braintrust evals GitHub Action workflow - #149
Conversation
Adds evaluation workflow that runs on PRs to main and test branches. Uses braintrustdata/eval-action@v1 with Node.js runtime. Requires BRAINTRUST_API_KEY secret to be configured in repository settings. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Braintrust eval reportCatalog Opportunity Analysis Evaluation (HEAD-1769034686)
Catalog Songs Count Evaluation (HEAD-1769034687)
First Week Album Sales Evaluation (HEAD-1769034686)
Memory & Storage Tools Evaluation (HEAD-1769034686)
Monthly Listeners Tracking Evaluation (HEAD-1769034686)
Search Web Tool Evaluation (HEAD-1769034686)
Social Scraping Evaluation (HEAD-1769034686)
Spotify Followers Evaluation (HEAD-1769034686)
Spotify Tools Evaluation (HEAD-1769034686)
TikTok Analytics Questions Evaluation (HEAD-1769034687)
|
- Copy evals/ directory with 10 evaluation scripts - Copy lib/evals/ with helper functions and scorers - Add braintrust and autoevals dependencies - Add eval script to package.json Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add lib/consts.ts re-export file for Recoup-Chat compatibility - Add lib/catalog/ files for catalog data fetching and formatting - Add lib/spotify/getSpotifyFollowers.ts for Spotify follower evals - Add EVAL_ACCOUNT_ID, EVAL_ACCESS_TOKEN, EVAL_ARTISTS to lib/const.ts Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Change accessToken to authToken (matching ChatRequestBody type) - Add required orgId: null property Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Required for lib/const.ts module loading during eval compilation. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Match Recoup-Chat pattern for consistency. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add @composio/core and @composio/vercel to --external-packages (fixes createRequire(import.meta.url) bundler error) - Add COMPOSIO_API_KEY, OPENAI_API_KEY, AI_GATEWAY_API_KEY env vars Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The braintrustdata/eval-action doesn't support --external-packages flag. Running pnpm eval directly uses the package.json script with the flag. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Use dynamic imports for @composio/core and @composio/vercel - This avoids the createRequire(import.meta.url) error during bundling - Update all callers to await getComposioClient() - Revert to using braintrustdata/eval-action@v1 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Set paths: "evals/" to tell action where to find eval files - Set package_manager: pnpm Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Handle cases where COMPOSIO_API_KEY is missing or @composio packages fail to load (bundler incompatibility with createRequire). Returns empty ToolSet instead of throwing, allowing evals to run without Composio tools. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The @composio packages use createRequire(import.meta.url) which is incompatible with Braintrust's bundler. By not setting COMPOSIO_API_KEY, getComposioTools returns {} immediately without attempting to import the incompatible packages. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Summary
mainandtestbranchesbraintrustdata/eval-action@v1with Node.js runtimeSetup Required
Add
BRAINTRUST_API_KEYto repository secrets in GitHub Settings:BRAINTRUST_API_KEYTest plan
BRAINTRUST_API_KEYsecret to repository🤖 Generated with Claude Code