@nhtio/adk/batteries/vector/validation
Runtime validation schemas and throwing wrappers for the vector battery.
Variables
| Variable | Description |
|---|---|
| baseVectorStoreOptionsSchema | - |
| vectorRecordSchema | - |
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 | - | | validateRecords | - |
References
vectorFilterSchema
Re-exports vectorFilterSchema