Function: validateRecords()
ts
function validateRecords(records: VectorRecord[]): void;Defined in: src/batteries/vector/validation.ts:114
Validate a batch of @nhtio/adk/batteries/vector!VectorRecords, including that vectors contain only finite numbers.
Parameters
| Parameter | Type | Description |
|---|---|---|
records | VectorRecord[] | The records to validate. |
Returns
void
Throws
@nhtio/adk/batteries/vector!E_INVALID_VECTOR_RECORD (carrying the offending index) on the first invalid record.