Skip to content
providerkit
GitHub

ScoreContext

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

Type Parameter Default type
E unknown
case: EvalCase<E>;

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


optional expected?: E;

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


run: EvalRun;

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


runs: readonly EvalRun[];

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


signal: AbortSignal;

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


optional turn?: number;

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

One-based case turn. Absent for scoreRun on a stored journal.

runAgent<R>(agent, input): Promise<RunOutcome<R>>;

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

Only available with allowJudge. Shares this case’s cancellation and spend accounting. Helpers are serial and maxJudgeRuns bounds their number. No automatic resume or retry.

Type Parameter
R
Parameter Type
agent Agent<R>
input AgentInput

Promise<RunOutcome<R>>