---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/vector/validation/functions/resolveClientCtor.md
---

# Function: resolveClientCtor()

```ts
function resolveClientCtor(client: unknown): Promise<(options: any) => any>;
```

Defined in: [batteries/vector/validation.ts:75](https://github.com/NHTIO/ADK/blob/v1.20260607.0/src/batteries/vector/validation.ts#L75)

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.

## Parameters

| Parameter | Type      |
| --------- | --------- |
| `client`  | `unknown` |

## Returns

`Promise`<(`options`: `any`) => `any`>
