
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
@agentskit/eval-braintrust
Advanced tools
Braintrust scoring pipeline for AgentsKit. Quality + robustness scorers, CI regression alerts, and dataset upload helpers.
@agentskit/eval-braintrustBraintrust scoring pipeline for AgentsKit. Ships 8 scorers in two families and a thin runner that uploads results to a Braintrust experiment.
@agentskit/eval-braintrust connects AgentsKit evals to Braintrust so teams can score behavior, track regressions, and keep quality visible in CI.
Docs: package guide · agent handoff
npm install @agentskit/eval-braintrust braintrust
braintrust is loaded lazily — install it alongside.
import {
runBraintrustEval,
qualityFamily,
robustnessFamily,
} from '@agentskit/eval-braintrust'
const result = await runBraintrustEval({
cases: [
{ input: 'What is the capital of France?', output: '', expected: 'Paris' },
],
agent: async input => {
const r = await myAgent.run(input)
return { output: r.text, metadata: { toolCalls: r.toolCalls } }
},
scorers: [...qualityFamily.scorers, ...robustnessFamily.scorers],
options: {
projectName: 'agentskit-showcase',
experimentName: `pr-${process.env.GITHUB_PR_NUMBER ?? 'local'}`,
},
})
console.log(result.summary)
console.log(result.url) // public Braintrust experiment URL
If BRAINTRUST_API_KEY is missing or the SDK is not installed, the runner still computes scores locally and returns them — useful for local iteration without uploads.
import { detectRegressions, formatAlertsMarkdown } from '@agentskit/eval-braintrust/ci'
const alerts = detectRegressions(baselineSummary, currentSummary, { default: 0.05 })
process.stdout.write(formatAlertsMarkdown(alerts))
if (alerts.length > 0) process.exit(1)
Wire into a GitHub Actions step that posts the comment on the PR.
import type { Scorer } from '@agentskit/eval-braintrust'
const verbosityPenalty: Scorer = ({ output }) => ({
name: 'verbosity_penalty',
score: output.length < 1000 ? 1 : Math.max(0, 1 - (output.length - 1000) / 5000),
})
Pass it alongside the bundled scorers in runBraintrustEval({ scorers: [...] }).
Scorers are pure functions returning a [0, 1] score. They never call out to model APIs themselves — that lives in the agent under test. This keeps scorers fast, deterministic in unit tests, and trivially portable across runtimes.
Robustness scorers read fields from the case metadata (e.g. parseError, hitlTriggered, fallbackFired) that the agent's wrapper is expected to populate. The contract is documented per scorer in src/scorers/.
MIT
FAQs
Braintrust scoring pipeline for AgentsKit. Quality + robustness scorers, CI regression alerts, and dataset upload helpers.
The npm package @agentskit/eval-braintrust receives a total of 7 weekly downloads. As such, @agentskit/eval-braintrust popularity was classified as not popular.
We found that @agentskit/eval-braintrust demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.