Skip to content
providerkit
GitHub

EvalOptions

Defined in: agents/src/evals/types.ts:318

Type Parameter Default type
T string
E unknown
agent:
| Agent<T>
| ((context) =>
| Agent<T>
| Promise<Agent<T>>);

Defined in: agents/src/evals/types.ts:321

Cases start from an agent. Its delegated tree may contain workflows and remote agents.


optional allowJudge?: boolean;

Defined in: agents/src/evals/types.ts:309

Explicit opt-in, also required by scoreRun and createLiveScorer.

LiveScorerOptions.allowJudge


optional allowSimulation?: boolean;

Defined in: agents/src/evals/types.ts:327

Separate paid-work consent from allowJudge. No default simulator provider.


optional budget?: object;

Defined in: agents/src/evals/types.ts:339

Admission/spend thresholds, NOT hard monetary or token caps. On reaching one, no new case/helper starts and in-flight work is signalled to stop. SDK limits still bound each tree. Provider retries, hosted charges and ignored cancellation can exceed thresholds.

optional tokens?: number;
optional usd?: number;

cases: readonly EvalCase<E>[];

Defined in: agents/src/evals/types.ts:115

EvalDataset.cases


optional concurrency?: number;

Defined in: agents/src/evals/types.ts:335

Active case slots, default 1. External work that ignores abort may continue.


optional drivers?: Readonly<Record<string, EvalDriver>>;

Defined in: agents/src/evals/types.ts:325

Trusted scripts keyed by case id. Dataset files cannot set these.


optional host?: EvalHost;

Defined in: agents/src/evals/types.ts:341


optional includePrivateData?: boolean;

Defined in: agents/src/evals/types.ts:315

Includes raw data and reasons. Keep such reports in trusted storage. Default false.

LiveScorerOptions.includePrivateData


optional k?: readonly number[];

Defined in: agents/src/evals/types.ts:333


optional maxJudgeRuns?: number;

Defined in: agents/src/evals/types.ts:311

Helper agent runs per case, default 3. Each built-in judge also has SDK model-call limits.

LiveScorerOptions.maxJudgeRuns


name: string;

Defined in: agents/src/evals/types.ts:114

EvalDataset.name


optional price?: EvalPrice;

Defined in: agents/src/evals/types.ts:306

LiveScorerOptions.price


optional repeat?: number;

Defined in: agents/src/evals/types.ts:332


optional resolveAgent?: (ref) =>
| Agent<T>
| Promise<Agent<T>>;

Defined in: agents/src/evals/types.ts:323

Explicit routing after a handoff, by both id and version. Missing targets stop the case.

Parameter Type
ref AgentRef

| Agent<T> | Promise<Agent<T>>


optional run?: Pick<RunOptions, "context" | "modelSettings" | "enabledTools">;

Defined in: agents/src/evals/types.ts:340


optional scorers?: readonly Scorer<E>[];

Defined in: agents/src/evals/types.ts:116

EvalDataset.scorers


optional signal?: AbortSignal;

Defined in: agents/src/evals/types.ts:307

LiveScorerOptions.signal


optional timeoutMs?: number;

Defined in: agents/src/evals/types.ts:313

Default 60 seconds, including custom scorers. Cancellation is cooperative.

LiveScorerOptions.timeoutMs


optional user?: object;

Defined in: agents/src/evals/types.ts:328

optional modelSettings?: Omit<ModelSettings, "maxAttempts" | "toolChoice" | "hostedTools">;
provider: Provider;