Skip to content
providerkit
GitHub

Scorer

Defined in: agents/src/evals/types.ts:270

Type Parameter Default type
E unknown
readonly optional gate?: boolean;

Defined in: agents/src/evals/types.ts:273


readonly name: string;

Defined in: agents/src/evals/types.ts:271


readonly optional threshold?: ScoreThreshold;

Defined in: agents/src/evals/types.ts:272

score(context):
| ScorerOutput
| Promise<ScorerOutput>;

Defined in: agents/src/evals/types.ts:274

Parameter Type
context ScoreContext<E>

| ScorerOutput | Promise<ScorerOutput>