Skip to content

monad.ai

monad.ai / Scorer

# Type Alias: Scorer ​

> Scorer = `object`

Defined in: kernel/scoring.ts:56

A pluggable scorer in the mesh decision pipeline.

Scorers should return a value in `[0, 1]`. The engine clamps invalid or out-of-range values, so custom scorers cannot corrupt normalized mode.

## Properties ​

### defaultWeight ​

> defaultWeight: `number`

Defined in: kernel/scoring.ts:58

### fn ​

> fn: (`m`, `meta`, `ctx`) => `number`

Defined in: kernel/scoring.ts:59

#### Parameters ​

##### m ​

`MonadIndexEntry`

##### meta ​

`ClaimMeta`

##### ctx ​

`ScoringContext`

#### Returns ​

`number`

### name ​

> name: `string`

Defined in: kernel/scoring.ts:57