Skip to content
1 min read · 59 words

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

ParameterTypeDescription
recordsVectorRecord[]The records to validate.

Returns

void

Throws

@nhtio/adk/batteries/vector!E_INVALID_VECTOR_RECORD (carrying the offending index) on the first invalid record.