eve
Version:
Filesystem-first framework for durable backend AI agents that run anywhere.
17 lines (16 loc) • 948 B
TypeScript
import type { EveEvalConfig, EveEvalConfigInput } from "#evals/types.js";
/**
* Defines the run-wide configuration shared by every eval, authored as the
* default export of `evals.config.ts` at the root of the `evals/` directory.
*
* Exactly one `evals.config.ts` is required. It supplies the optional default
* `judge` model for `t.judge(...)` assertions (so individual evals need not
* repeat it), run-level `reporters`, `maxConcurrency` and `timeoutMs` defaults,
* and optional run-wide `setup` and `teardown`. CLI flags (`--max-concurrency`,
* `--timeout`) and per-eval values take precedence over the config defaults.
*
* Throws on invalid input: a non-positive or non-integer `maxConcurrency`,
* a negative or non-finite `timeoutMs`, non-array `reporters`, or a
* non-function `setup` or `teardown`.
*/
export declare function defineEvalConfig<TContext = undefined>(input: EveEvalConfigInput<TContext>): EveEvalConfig<TContext>;