ScoreContext
Defined in: agents/src/evals/types.ts:257
Type Parameters
Section titled “Type Parameters”| Type Parameter | Default type |
|---|---|
E |
unknown |
Properties
Section titled “Properties”case: EvalCase<E>;Defined in: agents/src/evals/types.ts:258
expected?
Section titled “expected?”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
Section titled “signal”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.
Methods
Section titled “Methods”runAgent()
Section titled “runAgent()”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 Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
R |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
agent |
Agent<R> |
input |
AgentInput |
Returns
Section titled “Returns”Promise<RunOutcome<R>>