Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/core / / EvalScorer
Interface: EvalScorer<TInput, TOutput>
Defined in: packages/core/src/contracts/eval-scorer.ts:14
Pluggable evaluation scorer. Generic over the input / output types carried by the eval dataset. Concrete implementations live in the separate @graphorin/evals package (post-MVP); the interface lives here so that:
- The minimal inline runner shipped with
@graphorin/observabilitycan type-check against it. - Custom application-level scorers can be defined without taking an evals dependency.
Stable
Type Parameters
| Type Parameter | Default type |
|---|---|
TInput | unknown |
TOutput | unknown |
Properties
| Property | Modifier | Type | Defined in |
|---|---|---|---|
description? | readonly | string | packages/core/src/contracts/eval-scorer.ts:16 |
id | readonly | string | packages/core/src/contracts/eval-scorer.ts:15 |
Methods
score()
ts
score(sample): Promise<EvalScore>;Defined in: packages/core/src/contracts/eval-scorer.ts:17
Parameters
| Parameter | Type |
|---|---|
sample | EvalSample<TInput, TOutput> |
Returns
Promise<EvalScore>