Skip to main content

MemOptions

@curiouslycory/memai-sdk


@curiouslycory/memai-sdk / MemOptions

Interface: MemOptions

Defined in: types.ts:14

Configuration options for initializing the MemClient. These options allow customization of the client's behavior, such as retry logic and timeouts.

Properties

baseUrl?

optional baseUrl: string

Defined in: types.ts:20

The base URL for the Mem API.

Default

'https://api.mem.ai/v1'
You generally don't need to change this unless instructed by Mem support or for testing purposes.

maxRetries?

optional maxRetries: number

Defined in: types.ts:27

The maximum number of times to retry a request if it fails due to transient issues (like network errors or rate limits).

Default

3

retryDelay?

optional retryDelay: number

Defined in: types.ts:40

The base delay in milliseconds for retrying requests. This delay will be increased exponentially for subsequent retries.

Default

1000 (1 second)

timeout?

optional timeout: number

Defined in: types.ts:33

The request timeout in milliseconds.

Default

30000 (30 seconds)