Scorer
Defined in: agents/src/evals/types.ts:270
Type Parameters
Section titled “Type Parameters”| Type Parameter | Default type |
|---|---|
E |
unknown |
Properties
Section titled “Properties”readonly optional gate?: boolean;Defined in: agents/src/evals/types.ts:273
readonly name: string;Defined in: agents/src/evals/types.ts:271
threshold?
Section titled “threshold?”readonly optional threshold?: ScoreThreshold;Defined in: agents/src/evals/types.ts:272
Methods
Section titled “Methods”score()
Section titled “score()”score(context): | ScorerOutput| Promise<ScorerOutput>;Defined in: agents/src/evals/types.ts:274
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
context |
ScoreContext<E> |
Returns
Section titled “Returns”| ScorerOutput
| Promise<ScorerOutput>