defineScorer
function defineScorer<E>( name, score, options?): Scorer<E>;Defined in: agents/src/evals/scorers.ts:60
Type Parameters
Section titled “Type Parameters”| Type Parameter | Default type |
|---|---|
E |
unknown |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
name |
string |
score |
(context) => | ScorerOutput | Promise<ScorerOutput> |
options |
Pick<Scorer, "threshold" | "gate"> |
Returns
Section titled “Returns”Scorer<E>