Skip to content
providerkit
GitHub

defineScorer

function defineScorer<E>(
name,
score,
options?
): Scorer<E>;

Defined in: agents/src/evals/scorers.ts:60

Type Parameter Default type
E unknown
Parameter Type
name string
score (context) => | ScorerOutput | Promise<ScorerOutput>
options Pick<Scorer, "threshold" | "gate">

Scorer<E>