@nhtio/adk/batteries/vector/validation
Runtime validation schemas and throwing wrappers for the vector battery.
Variables
| Variable | Description |
|---|---|
| baseVectorStoreOptionsSchema | Validator schema for @nhtio/adk/batteries/vector!BaseVectorStoreOptions; allows adapter-specific extra keys. |
| vectorRecordSchema | Validator schema for a single @nhtio/adk/batteries/vector!VectorRecord; rejects unknown keys. |
Functions
| Function | Description | | --------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | resolveClientCtor | Resolve the client (class | sync resolver | async resolver) down to the adapter constructor, then validate the resolved value is a BaseVectorStore subclass — throwing the same E_INVALID_VECTOR_STORE_CONFIG if a resolver hands back something that isn't one. | | validateCreateConfig | Validate a @nhtio/adk/batteries/vector!CreateVectorStoreConfig shape (client + options). | | validateRecords | Validate a batch of @nhtio/adk/batteries/vector!VectorRecords, including that vectors contain only finite numbers. |
References
vectorFilterSchema
Re-exports vectorFilterSchema