@tangle-network/agent-bench 2.0.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/README.md +24 -2
- package/dist/adapters.d.ts +3 -3
- package/dist/adapters.js +3 -5
- package/dist/adapters.js.map +1 -1
- package/dist/benchmarks/_harness.d.ts +4 -4
- package/dist/benchmarks/_harness.js +5 -2
- package/dist/benchmarks/_harness.js.map +1 -1
- package/dist/benchmarks/aec-bench.d.ts +2 -2
- package/dist/benchmarks/aec-bench.js +49 -42
- package/dist/benchmarks/aec-bench.js.map +1 -1
- package/dist/benchmarks/agentbench.d.ts +2 -2
- package/dist/benchmarks/agentbench.js +41 -34
- package/dist/benchmarks/agentbench.js.map +1 -1
- package/dist/benchmarks/appworld.d.ts +4 -4
- package/dist/benchmarks/appworld.js +67 -53
- package/dist/benchmarks/appworld.js.map +1 -1
- package/dist/benchmarks/bfcl.d.ts +2 -2
- package/dist/benchmarks/bfcl.js +52 -44
- package/dist/benchmarks/bfcl.js.map +1 -1
- package/dist/benchmarks/cad-design.d.ts +2 -2
- package/dist/benchmarks/cad-design.js +53 -44
- package/dist/benchmarks/cad-design.js.map +1 -1
- package/dist/benchmarks/cadbench.d.ts +2 -2
- package/dist/benchmarks/cadbench.js +1 -1
- package/dist/benchmarks/cadgenbench.d.ts +2 -2
- package/dist/benchmarks/cadgenbench.js +1 -1
- package/dist/benchmarks/commit0.d.ts +2 -2
- package/dist/benchmarks/commit0.js +38 -31
- package/dist/benchmarks/commit0.js.map +1 -1
- package/dist/benchmarks/crag.d.ts +2 -2
- package/dist/benchmarks/crag.js +37 -32
- package/dist/benchmarks/crag.js.map +1 -1
- package/dist/benchmarks/dabstep.d.ts +2 -2
- package/dist/benchmarks/dabstep.js +41 -34
- package/dist/benchmarks/dabstep.js.map +1 -1
- package/dist/benchmarks/finresearchbench.d.ts +4 -4
- package/dist/benchmarks/finresearchbench.js +61 -48
- package/dist/benchmarks/finresearchbench.js.map +1 -1
- package/dist/benchmarks/finsearchcomp.d.ts +3 -3
- package/dist/benchmarks/finsearchcomp.js +54 -43
- package/dist/benchmarks/finsearchcomp.js.map +1 -1
- package/dist/benchmarks/frames.d.ts +2 -2
- package/dist/benchmarks/frames.js +66 -51
- package/dist/benchmarks/frames.js.map +1 -1
- package/dist/benchmarks/hotpotqa.d.ts +2 -2
- package/dist/benchmarks/hotpotqa.js +59 -47
- package/dist/benchmarks/hotpotqa.js.map +1 -1
- package/dist/benchmarks/humaneval.d.ts +3 -3
- package/dist/benchmarks/humaneval.js +39 -35
- package/dist/benchmarks/humaneval.js.map +1 -1
- package/dist/benchmarks/mcad-bench.d.ts +2 -2
- package/dist/benchmarks/mcad-bench.js +68 -56
- package/dist/benchmarks/mcad-bench.js.map +1 -1
- package/dist/benchmarks/mcad-cq-bench.d.ts +2 -2
- package/dist/benchmarks/mcad-cq-bench.js +69 -57
- package/dist/benchmarks/mcad-cq-bench.js.map +1 -1
- package/dist/benchmarks/mcad-cq-golds.d.ts +1 -1
- package/dist/benchmarks/mcad-cq-golds.js +1 -1
- package/dist/benchmarks/mcad-cq-golds.js.map +1 -1
- package/dist/benchmarks/mcad-golds.d.ts +1 -1
- package/dist/benchmarks/mcad-golds.js.map +1 -1
- package/dist/benchmarks/mind2web.d.ts +3 -3
- package/dist/benchmarks/mind2web.js +62 -49
- package/dist/benchmarks/mind2web.js.map +1 -1
- package/dist/benchmarks/nomiracl.d.ts +2 -2
- package/dist/benchmarks/nomiracl.js +43 -36
- package/dist/benchmarks/nomiracl.js.map +1 -1
- package/dist/benchmarks/open-rag-bench.d.ts +2 -2
- package/dist/benchmarks/open-rag-bench.js +37 -32
- package/dist/benchmarks/open-rag-bench.js.map +1 -1
- package/dist/benchmarks/programbench.d.ts +2 -2
- package/dist/benchmarks/programbench.js +28 -23
- package/dist/benchmarks/programbench.js.map +1 -1
- package/dist/benchmarks/rag-shared.d.ts +2 -2
- package/dist/benchmarks/rag-shared.js +15 -13
- package/dist/benchmarks/rag-shared.js.map +1 -1
- package/dist/benchmarks/ragbench.d.ts +2 -2
- package/dist/benchmarks/ragbench.js +34 -29
- package/dist/benchmarks/ragbench.js.map +1 -1
- package/dist/benchmarks/simpleqa.d.ts +2 -2
- package/dist/benchmarks/simpleqa.js +62 -51
- package/dist/benchmarks/simpleqa.js.map +1 -1
- package/dist/benchmarks/swe-bench.d.ts +4 -4
- package/dist/benchmarks/swe-bench.js +47 -41
- package/dist/benchmarks/swe-bench.js.map +1 -1
- package/dist/benchmarks/t2-ragbench.d.ts +2 -2
- package/dist/benchmarks/t2-ragbench.js +37 -32
- package/dist/benchmarks/t2-ragbench.js.map +1 -1
- package/dist/benchmarks/tau-bench-shared.d.ts +2 -2
- package/dist/benchmarks/tau-bench-shared.js +43 -36
- package/dist/benchmarks/tau-bench-shared.js.map +1 -1
- package/dist/benchmarks/tau2-bench.d.ts +2 -2
- package/dist/benchmarks/tau2-bench.js.map +1 -1
- package/dist/benchmarks/tau3-banking.d.ts +2 -2
- package/dist/benchmarks/tau3-banking.js.map +1 -1
- package/dist/benchmarks/terminal-bench.d.ts +2 -2
- package/dist/benchmarks/terminal-bench.js +29 -23
- package/dist/benchmarks/terminal-bench.js.map +1 -1
- package/dist/benchmarks/toollm.d.ts +2 -2
- package/dist/benchmarks/toollm.js +40 -34
- package/dist/benchmarks/toollm.js.map +1 -1
- package/dist/benchmarks/trata-hedge.d.ts +2 -2
- package/dist/benchmarks/trata-hedge.js +46 -38
- package/dist/benchmarks/trata-hedge.js.map +1 -1
- package/dist/benchmarks/types.d.ts +33 -63
- package/dist/benchmarks/types.js +36 -1
- package/dist/benchmarks/types.js.map +1 -0
- package/dist/benchmarks/webarena-verified.d.ts +2 -2
- package/dist/benchmarks/webarena-verified.js +29 -24
- package/dist/benchmarks/webarena-verified.js.map +1 -1
- package/dist/{cadbench-Byr5gO1M.js → cadbench-htzAmMaI.js} +39 -32
- package/dist/cadbench-htzAmMaI.js.map +1 -0
- package/dist/{cadgenbench-Tvk16YKT.js → cadgenbench-BLvEtnxU.js} +28 -22
- package/dist/cadgenbench-BLvEtnxU.js.map +1 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +667 -0
- package/dist/cli.js.map +1 -0
- package/dist/index.d.ts +9 -8
- package/dist/index.js +61 -56
- package/dist/index.js.map +1 -1
- package/package.json +7 -4
- package/scripts/enterpriseops-gym-run.sh +82 -0
- package/scripts/grade-recorded-evidence.mjs +6 -6
- package/scripts/harvey-lab-judge.py +50 -0
- package/scripts/harvey-lab-run.sh +53 -0
- package/scripts/harvey-lab-sandbox.sh +21 -0
- package/scripts/healthbench-professional-run.sh +30 -0
- package/scripts/healthbench_professional_run.py +112 -0
- package/scripts/mlcr-run.sh +17 -0
- package/scripts/mlcr_run.py +133 -0
- package/scripts/prbench-run.sh +39 -0
- package/scripts/prbench_run.py +53 -0
- package/scripts/verify-packed-consumer.mjs +32 -27
- package/src/adapters.ts +5 -7
- package/src/benchmarks/_harness.test.mts +18 -1
- package/src/benchmarks/_harness.ts +12 -7
- package/src/benchmarks/aec-bench.test.mts +14 -14
- package/src/benchmarks/aec-bench.ts +62 -56
- package/src/benchmarks/agent-eval-contract.test.mts +38 -0
- package/src/benchmarks/agentbench.ts +44 -37
- package/src/benchmarks/appworld.test.mts +7 -7
- package/src/benchmarks/appworld.ts +88 -75
- package/src/benchmarks/bfcl.ts +60 -53
- package/src/benchmarks/cad-design.ts +34 -32
- package/src/benchmarks/cadbench.ts +34 -32
- package/src/benchmarks/cadgenbench.ts +30 -28
- package/src/benchmarks/commit0.test.mts +9 -9
- package/src/benchmarks/commit0.ts +50 -43
- package/src/benchmarks/crag.ts +45 -40
- package/src/benchmarks/dabstep-official.test.mts +8 -8
- package/src/benchmarks/dabstep.test.mts +11 -11
- package/src/benchmarks/dabstep.ts +47 -40
- package/src/benchmarks/external-adapters.test.mts +43 -44
- package/src/benchmarks/finresearchbench.ts +57 -47
- package/src/benchmarks/finsearchcomp.ts +72 -67
- package/src/benchmarks/frames.ts +76 -69
- package/src/benchmarks/hotpotqa.ts +69 -64
- package/src/benchmarks/humaneval.ts +37 -35
- package/src/benchmarks/mcad-bench.test.mts +30 -30
- package/src/benchmarks/mcad-bench.ts +66 -60
- package/src/benchmarks/mcad-cq-bench.ts +69 -63
- package/src/benchmarks/mcad-cq-golds.ts +1 -1
- package/src/benchmarks/mcad-cq.test.mts +40 -40
- package/src/benchmarks/mcad-golds.ts +1 -1
- package/src/benchmarks/mind2web.ts +66 -58
- package/src/benchmarks/nomiracl.ts +53 -46
- package/src/benchmarks/open-rag-bench.ts +47 -42
- package/src/benchmarks/programbench.test.mts +10 -10
- package/src/benchmarks/programbench.ts +38 -33
- package/src/benchmarks/rag-benchmarks.test.mts +31 -31
- package/src/benchmarks/rag-shared.ts +13 -16
- package/src/benchmarks/ragbench.ts +44 -39
- package/src/benchmarks/simpleqa.ts +78 -73
- package/src/benchmarks/swe-bench.test.mts +3 -3
- package/src/benchmarks/swe-bench.ts +66 -61
- package/src/benchmarks/t2-ragbench.ts +47 -42
- package/src/benchmarks/tau-bench-shared.ts +51 -44
- package/src/benchmarks/tau-pin.test.mts +1 -1
- package/src/benchmarks/tau2-bench.ts +2 -2
- package/src/benchmarks/tau3-banking.ts +2 -2
- package/src/benchmarks/terminal-bench.test.mts +3 -3
- package/src/benchmarks/terminal-bench.ts +41 -36
- package/src/benchmarks/toollm.ts +54 -47
- package/src/benchmarks/trata-hedge.ts +57 -52
- package/src/benchmarks/types.ts +70 -59
- package/src/benchmarks/webarena-verified.ts +49 -42
- package/src/cli.ts +74 -0
- package/src/corpus-replay.mts +9 -9
- package/src/examples/benchmark-matrix.mts +13 -10
- package/src/gate-cli.mts +5 -5
- package/src/gate.test.mts +14 -12
- package/src/gate.ts +23 -22
- package/src/index.ts +17 -11
- package/src/published.test.mts +534 -0
- package/src/published.ts +524 -0
- package/src/run-benchmarks-cli.mts +2 -2
- package/src/run-benchmarks.test.mts +58 -48
- package/src/run-benchmarks.ts +64 -57
- package/src/swe-bench-env.ts +6 -6
- package/src/worker.ts +1 -1
- package/dist/benchmarks/enterpriseops-gym.d.ts +0 -6
- package/dist/benchmarks/enterpriseops-gym.js +0 -236
- package/dist/benchmarks/enterpriseops-gym.js.map +0 -1
- package/dist/cadbench-Byr5gO1M.js.map +0 -1
- package/dist/cadgenbench-Tvk16YKT.js.map +0 -1
- package/fixtures/enterpriseops-gym.json +0 -103
- package/scripts/enterpriseops_gym_judge.py +0 -281
- package/src/benchmarks/enterpriseops-gym.test.mts +0 -77
- package/src/benchmarks/enterpriseops-gym.ts +0 -343
- package/src/eops-skills/address-every-subtask.md +0 -5
- package/src/eops-skills/exact-tools-and-args.md +0 -5
- package/src/eops-skills/full-sequence-to-goal.md +0 -5
- package/src/eops-skills/ground-every-value.md +0 -5
- package/src/eops-skills/honor-the-policies.md +0 -5
package/src/gate.ts
CHANGED
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
*
|
|
13
13
|
* The gate's two non-negotiables, enforced structurally here:
|
|
14
14
|
* - DEPLOYABLE selector. Each fanout child SOLVES via the router, then is graded by the
|
|
15
|
-
* benchmark's OWN deterministic `adapter.
|
|
16
|
-
* the answer oracle). That `
|
|
15
|
+
* benchmark's OWN deterministic `adapter.evaluate` (a runnable checker — NOT an LLM judge, NOT
|
|
16
|
+
* the answer oracle). That `BenchEvaluation` becomes the child's `DefaultVerdict`, and `fanout`'s
|
|
17
17
|
* single-sourced `defaultSelectWinner` picks the best-scoring candidate. Selection therefore
|
|
18
18
|
* reads only the deployable verifier — selector ≠ oracle by construction.
|
|
19
19
|
* - EQUAL k. Both arms open the SAME number of children (k = strategies.length; blind = k
|
|
@@ -55,10 +55,10 @@ import {
|
|
|
55
55
|
runPersonified,
|
|
56
56
|
trajectoryReport,
|
|
57
57
|
} from '@tangle-network/agent-runtime/kernel'
|
|
58
|
-
import type {
|
|
58
|
+
import type { BenchTask, RuntimeBenchmark } from './benchmarks/types'
|
|
59
59
|
|
|
60
60
|
/** A fanout child's task: the prompt to solve with + the instance to grade against. The instance
|
|
61
|
-
* travels with the prompt so the solve-and-grade leaf can run `adapter.
|
|
61
|
+
* travels with the prompt so the solve-and-grade leaf can run `adapter.evaluate` without a closure
|
|
62
62
|
* over the per-task state (the registry closes only over the adapter + router config). */
|
|
63
63
|
export interface SolveTask {
|
|
64
64
|
readonly prompt: string
|
|
@@ -68,7 +68,7 @@ export interface SolveTask {
|
|
|
68
68
|
/** What `benchSolverRegistry` needs to build a solve-and-grade leaf. The router config is the
|
|
69
69
|
* cheapest leaf (one chat completion, no box); the adapter supplies the deployable judge. */
|
|
70
70
|
interface BenchSolverOptions {
|
|
71
|
-
readonly adapter:
|
|
71
|
+
readonly adapter: RuntimeBenchmark
|
|
72
72
|
readonly routerBaseUrl: string
|
|
73
73
|
readonly routerKey: string
|
|
74
74
|
}
|
|
@@ -93,16 +93,16 @@ const fnv = (prefix: string, value: unknown): string => {
|
|
|
93
93
|
* (e.g. the last fenced ```json block for a transcript bench), so the gate leaf honors
|
|
94
94
|
* `benchmark = adapter owns its deliverable`. Falls back to the trimmed reply when the adapter
|
|
95
95
|
* defines no output parser (the research/QA case). */
|
|
96
|
-
function extractArtifact(adapter:
|
|
97
|
-
if (!adapter.output) return content.trim()
|
|
96
|
+
function extractArtifact(adapter: RuntimeBenchmark, content: string): string {
|
|
97
|
+
if (!adapter.runtime.output) return content.trim()
|
|
98
98
|
const events = [{ type: 'agent', data: { finalText: content } }] as unknown as SandboxEvent[]
|
|
99
|
-
return adapter.output.parse(events)
|
|
99
|
+
return adapter.runtime.output.parse(events)
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
/**
|
|
103
103
|
* A single solve-and-grade leaf executor. Solves the task with ONE router completion, extracts
|
|
104
104
|
* the deliverable via the adapter, then grades it with the benchmark's deterministic judge and
|
|
105
|
-
* surfaces that `
|
|
105
|
+
* surfaces that `BenchEvaluation` as the child's `DefaultVerdict`. The verdict is what `fanout`'s
|
|
106
106
|
* deployable selector ranks on. Reports REAL token usage; a missing-usage provider records zero
|
|
107
107
|
* tokens but still one iteration (never a fabricated priced cost). Fail-loud: a router non-2xx or
|
|
108
108
|
* a judge throw rejects the leaf (the scope types it into a `down` settlement — never a silent 0).
|
|
@@ -118,14 +118,14 @@ function benchSolveLeaf(opts: BenchSolverOptions, spec: AgentSpec, ctx: Executor
|
|
|
118
118
|
const raw = result.out as { content?: unknown }
|
|
119
119
|
const content = typeof raw?.content === 'string' ? raw.content : ''
|
|
120
120
|
const candidate = extractArtifact(opts.adapter, content)
|
|
121
|
-
const score = await opts.adapter.
|
|
121
|
+
const score = await opts.adapter.evaluate(t.instance, candidate)
|
|
122
122
|
return {
|
|
123
123
|
outRef: fnv('bench', { id: t.instance.id, candidate }),
|
|
124
124
|
out: candidate,
|
|
125
125
|
verdict: {
|
|
126
|
-
valid: score.
|
|
126
|
+
valid: score.passed === true,
|
|
127
127
|
score: score.score,
|
|
128
|
-
...(score.
|
|
128
|
+
...(score.notes ? { notes: score.notes } : {}),
|
|
129
129
|
},
|
|
130
130
|
}
|
|
131
131
|
})
|
|
@@ -173,10 +173,10 @@ function defineSolverPersona(
|
|
|
173
173
|
/** The blind/diverse `fanout` over k children. Each item is a strategy directive appended to the
|
|
174
174
|
* task prompt; the blind arm passes k empty strategies (k identical prompts = the compute
|
|
175
175
|
* control). No `synthesize` → the deployable `defaultSelectWinner` returns the best-graded child. */
|
|
176
|
-
function solveFanout(strategies: ReadonlyArray<string>, instance: BenchTask): CombinatorShape<unknown, string> {
|
|
176
|
+
function solveFanout(strategies: ReadonlyArray<string>, instance: BenchTask, prompt: string): CombinatorShape<unknown, string> {
|
|
177
177
|
return fanout<unknown, string, string>(strategies, {
|
|
178
178
|
itemTask: (strategy): SolveTask => ({
|
|
179
|
-
prompt: strategy.length > 0 ? `${
|
|
179
|
+
prompt: strategy.length > 0 ? `${prompt}\n\n${strategy}` : prompt,
|
|
180
180
|
instance,
|
|
181
181
|
}),
|
|
182
182
|
label: (_s, i) => `solve:${i}`,
|
|
@@ -184,7 +184,7 @@ function solveFanout(strategies: ReadonlyArray<string>, instance: BenchTask): Co
|
|
|
184
184
|
}
|
|
185
185
|
|
|
186
186
|
interface RunGateOptions {
|
|
187
|
-
readonly adapter:
|
|
187
|
+
readonly adapter: RuntimeBenchmark
|
|
188
188
|
/** The ONE specificity: who the solver is (prompt / model / tools). */
|
|
189
189
|
readonly profile: AgentProfile
|
|
190
190
|
/**
|
|
@@ -198,7 +198,8 @@ interface RunGateOptions {
|
|
|
198
198
|
/** How many benchmark instances to run (the paired n). */
|
|
199
199
|
readonly n?: number
|
|
200
200
|
readonly ids?: string[]
|
|
201
|
-
|
|
201
|
+
/** The publisher's subset (domain, category, language), for benchmarks that have them. */
|
|
202
|
+
readonly subset?: string
|
|
202
203
|
/** Per-child token ceiling the conserved pool reserves. Default 60_000. */
|
|
203
204
|
readonly perChildTokens?: number
|
|
204
205
|
/** Per-child wall-clock deadline (ms) forwarded to the root budget. */
|
|
@@ -288,13 +289,13 @@ export async function runGate(opts: RunGateOptions): Promise<GateReport> {
|
|
|
288
289
|
throw new Error('runGate: need >= 2 strategies (k = strategies.length fixes both arms’ child count)')
|
|
289
290
|
}
|
|
290
291
|
const k = opts.strategies.length
|
|
291
|
-
await opts.adapter.preflight()
|
|
292
|
-
const tasks = await opts.adapter.
|
|
292
|
+
await opts.adapter.runtime.preflight?.()
|
|
293
|
+
const tasks = await opts.adapter.loadAll({
|
|
293
294
|
...(opts.n !== undefined ? { limit: opts.n } : {}),
|
|
294
295
|
...(opts.ids ? { ids: opts.ids } : {}),
|
|
295
|
-
...(opts.
|
|
296
|
+
...(opts.subset ? { subset: opts.subset } : {}),
|
|
296
297
|
})
|
|
297
|
-
if (tasks.length === 0) throw new Error('runGate: adapter.
|
|
298
|
+
if (tasks.length === 0) throw new Error('runGate: adapter.loadAll returned no tasks')
|
|
298
299
|
|
|
299
300
|
const registry = opts.solverRegistry ?? benchSolverRegistry(opts)
|
|
300
301
|
const perChildTokens = opts.perChildTokens ?? 60_000
|
|
@@ -330,7 +331,7 @@ export async function runGate(opts: RunGateOptions): Promise<GateReport> {
|
|
|
330
331
|
const runId = `gate:${armDef.label}:${task.id}`
|
|
331
332
|
const result: SupervisedResult<Outcome<string>> = await runPersonified<unknown, string>({
|
|
332
333
|
persona,
|
|
333
|
-
shape: solveFanout(armDef.strategies, task),
|
|
334
|
+
shape: solveFanout(armDef.strategies, task, opts.adapter.runtime.prompt(task)),
|
|
334
335
|
task: undefined,
|
|
335
336
|
budget,
|
|
336
337
|
shapeBudget: { fanout: k, perChild },
|
|
@@ -395,7 +396,7 @@ export async function runGate(opts: RunGateOptions): Promise<GateReport> {
|
|
|
395
396
|
const blind = arms.find((a) => a.label === 'blind')!
|
|
396
397
|
const diverse = arms.find((a) => a.label === 'diverse')!
|
|
397
398
|
return {
|
|
398
|
-
benchmark: opts.adapter.
|
|
399
|
+
benchmark: opts.adapter.id,
|
|
399
400
|
k,
|
|
400
401
|
n: tasks.length,
|
|
401
402
|
perTask,
|
package/src/index.ts
CHANGED
|
@@ -5,10 +5,12 @@
|
|
|
5
5
|
* and scores its agent's artifact against a real, deterministic judge — without owning the benchmark:
|
|
6
6
|
*
|
|
7
7
|
* import { resolveAdapter } from '@tangle-network/agent-bench'
|
|
8
|
-
* const verdict = await resolveAdapter('commit0').
|
|
8
|
+
* const verdict = await resolveAdapter('commit0').evaluate(task, myAgentsDiff)
|
|
9
9
|
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
10
|
+
* Every adapter is an agent-eval `BenchmarkAdapter` (`RuntimeBenchmark`: its `runtime` hooks, and
|
|
11
|
+
* `loadAll`, which ignores agent-eval's splits). Each fails loud in `runtime.preflight()` when its
|
|
12
|
+
* harness/deps (Docker, a venv, a dataset) are absent, so importing the registry is cheap; running a
|
|
13
|
+
* specific benchmark pulls only its deps.
|
|
12
14
|
*/
|
|
13
15
|
export { ADAPTERS, resolveAdapter } from './adapters'
|
|
14
16
|
export { createCragAdapter } from './benchmarks/crag'
|
|
@@ -17,7 +19,7 @@ export { createOpenRagBenchAdapter } from './benchmarks/open-rag-bench'
|
|
|
17
19
|
export { createRagBenchAdapter } from './benchmarks/ragbench'
|
|
18
20
|
export {
|
|
19
21
|
FINAL_ANSWER_SENTINEL,
|
|
20
|
-
|
|
22
|
+
answerScoreToEvaluation,
|
|
21
23
|
contextBlock,
|
|
22
24
|
contextsFrom,
|
|
23
25
|
normalizeAnswer,
|
|
@@ -46,13 +48,17 @@ export {
|
|
|
46
48
|
type StagedRunCaptureSpec,
|
|
47
49
|
type StagedRunSpec,
|
|
48
50
|
} from './benchmarks/_harness'
|
|
49
|
-
export
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
51
|
+
export {
|
|
52
|
+
runtimeBenchmark,
|
|
53
|
+
type BenchEvaluation,
|
|
54
|
+
type BenchPayload,
|
|
55
|
+
type BenchRuntime,
|
|
56
|
+
type BenchTask,
|
|
57
|
+
type JudgeArtifactFileReceipt,
|
|
58
|
+
type JudgeArtifactReceipt,
|
|
59
|
+
type LoadOptions,
|
|
60
|
+
type RuntimeBenchmark,
|
|
61
|
+
type RuntimeBenchmarkSpec,
|
|
56
62
|
} from './benchmarks/types'
|
|
57
63
|
|
|
58
64
|
/**
|