EvalOptions
Defined in: agents/src/evals/types.ts:318
Extends
Section titled “Extends”EvalDataset<E>.Omit<ScoringOptions<E>,"case">
Type Parameters
Section titled “Type Parameters”| Type Parameter | Default type |
|---|---|
T |
string |
E |
unknown |
Properties
Section titled “Properties”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.
allowJudge?
Section titled “allowJudge?”optional allowJudge?: boolean;Defined in: agents/src/evals/types.ts:309
Explicit opt-in, also required by scoreRun and createLiveScorer.
Inherited from
Section titled “Inherited from”allowSimulation?
Section titled “allowSimulation?”optional allowSimulation?: boolean;Defined in: agents/src/evals/types.ts:327
Separate paid-work consent from allowJudge. No default simulator provider.
budget?
Section titled “budget?”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.
tokens?
Section titled “tokens?”optional tokens?: number;optional usd?: number;cases: readonly EvalCase<E>[];Defined in: agents/src/evals/types.ts:115
Inherited from
Section titled “Inherited from”concurrency?
Section titled “concurrency?”optional concurrency?: number;Defined in: agents/src/evals/types.ts:335
Active case slots, default 1. External work that ignores abort may continue.
drivers?
Section titled “drivers?”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
includePrivateData?
Section titled “includePrivateData?”optional includePrivateData?: boolean;Defined in: agents/src/evals/types.ts:315
Includes raw data and reasons. Keep such reports in trusted storage. Default false.
Inherited from
Section titled “Inherited from”LiveScorerOptions.includePrivateData
optional k?: readonly number[];Defined in: agents/src/evals/types.ts:333
maxJudgeRuns?
Section titled “maxJudgeRuns?”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.
Inherited from
Section titled “Inherited from”LiveScorerOptions.maxJudgeRuns
name: string;Defined in: agents/src/evals/types.ts:114
Inherited from
Section titled “Inherited from”price?
Section titled “price?”optional price?: EvalPrice;Defined in: agents/src/evals/types.ts:306
Inherited from
Section titled “Inherited from”repeat?
Section titled “repeat?”optional repeat?: number;Defined in: agents/src/evals/types.ts:332
resolveAgent?
Section titled “resolveAgent?”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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
ref |
AgentRef |
Returns
Section titled “Returns”| Agent<T>
| Promise<Agent<T>>
optional run?: Pick<RunOptions, "context" | "modelSettings" | "enabledTools">;Defined in: agents/src/evals/types.ts:340
scorers?
Section titled “scorers?”optional scorers?: readonly Scorer<E>[];Defined in: agents/src/evals/types.ts:116
Inherited from
Section titled “Inherited from”signal?
Section titled “signal?”optional signal?: AbortSignal;Defined in: agents/src/evals/types.ts:307
Inherited from
Section titled “Inherited from”timeoutMs?
Section titled “timeoutMs?”optional timeoutMs?: number;Defined in: agents/src/evals/types.ts:313
Default 60 seconds, including custom scorers. Cancellation is cooperative.
Inherited from
Section titled “Inherited from”optional user?: object;Defined in: agents/src/evals/types.ts:328
modelSettings?
Section titled “modelSettings?”optional modelSettings?: Omit<ModelSettings, "maxAttempts" | "toolChoice" | "hostedTools">;provider
Section titled “provider”provider: Provider;