Skip to main content

Interface: BatchConfig<TBot>

Defined in: packages/core/src/batch.ts:15

Type Parameters​

TBot​

TBot

Properties​

bot​

bot: TBot

Defined in: packages/core/src/batch.ts:16


concurrency?​

optional concurrency?: number

Defined in: packages/core/src/batch.ts:17


failFast?​

optional failFast?: boolean

Defined in: packages/core/src/batch.ts:18


providerBatch?​

optional providerBatch?: boolean | ProviderBatchOptions

Defined in: packages/core/src/batch.ts:25

Send the items' model calls to their providers' batch endpoints — asynchronous, roughly half price, results in minutes to hours. true uses the defaults; see ProviderBatchOptions. Providers without a batch endpoint make live calls unless fallback: 'error'.