Skip to content

BatchOptions

Defined in: src/provider/batching.ts:3

optional batchSize?: number

Defined in: src/provider/batching.ts:4


optional delayMs?: number

Defined in: src/provider/batching.ts:6

pause between chunks (not after the last)


optional onProgress?: (done, total) => void

Defined in: src/provider/batching.ts:12

number

number

void


optional retries?: number

Defined in: src/provider/batching.ts:8

retries per chunk on RateLimitError; other errors propagate immediately


optional retryBackoffMs?: number

Defined in: src/provider/batching.ts:10

multiplied by the attempt number; err.retryAfterMs wins if larger


optional sleep?: (ms) => Promise<void>

Defined in: src/provider/batching.ts:11

number

Promise<void>