Skip to content
providerkit
GitHub

schema

function schema<V>(validate, options?): Scorer;

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

A validator returns a value or throws. Reuse your existing runtime schema validator.

Type Parameter
V
Parameter Type
validate (value) => V
options { from?: "text" | "value"; }
options.from? "text" | "value"

Scorer