Skip to main content

JudgeCache

@forge/monorepo


@forge/monorepo / backend/src / JudgeCache

Interface: JudgeCache

Defined in: backend/src/evaluation/judge.ts:60

A memo of judgements, keyed on everything that could change the answer.

In-memory by default, which makes a single run reproducible. A deployment that wants reproducibility across runs supplies a durable one — and that is the honest boundary: without it, AC-3 holds within a run and depends on the provider between runs.

Methods

get()

get(key): Promise<EvalVerdict | null>

Defined in: backend/src/evaluation/judge.ts:61

Parameters

key

string

Returns

Promise<EvalVerdict | null>


set()

set(key, verdict): Promise<void>

Defined in: backend/src/evaluation/judge.ts:62

Parameters

key

string

verdict

EvalVerdict

Returns

Promise<void>