Type Alias: VectorStoreConstructorLike<O>
ts
type VectorStoreConstructorLike<O> = (options: O) => BaseVectorStore;Defined in: src/batteries/vector/vector_store_constructor.ts:17
Constructor signature for any BaseVectorStore adapter (the class itself or a subclass).
Type Parameters
| Type Parameter | Default type |
|---|---|
O extends BaseVectorStoreOptions | BaseVectorStoreOptions |
Parameters
| Parameter | Type |
|---|---|
options | O |
Returns
Remarks
Re-declared at the contract level so the factory's client resolver can recognise a valid adapter constructor without value-importing BaseVectorStore into modules where that would be awkward, mirroring SpooledArtifactConstructorLike.