Skip to content

monad.ai

monad.ai / selectMeshClaimant

# Function: selectMeshClaimant() ​

> selectMeshClaimant(`opts`): `Promise`<`MeshSelection` | `null`>

Defined in: kernel/meshSelect.ts:114

Selects the best mesh claimant for a namespace request.

Selection proceeds in this order:

1. explicit `monadSelector` lookup, if present
2. namespace claim filtering
3. selector constraint filtering
4. scoring via `computeScoreDetailed`
5. optional epsilon-greedy exploration for low-margin decisions

## Parameters ​

### opts ​

#### explorationRate? ​

`number`

#### extraScorers? ​

`Scorer`[]

#### monadSelector ​

`string`

#### namespace ​

`string`

#### now? ​

`number`

#### selectorConstraint? ​

`string` | `null`

#### selfEndpoint ​

`string`

#### selfMonadId ​

`string`

#### stalenessMs? ​

`number`

## Returns ​

`Promise`<`MeshSelection` | `null`>