Skip to main content

Interface: MapBotConfig

Defined in: packages/core/src/pipeline/types.ts:273

Configuration for mapBot step.

Example​

const config: MapBotConfig = {
bot: enrichPostBot,
parallel: true
};

Properties​

bot​

bot: Processable<unknown, unknown>

Defined in: packages/core/src/pipeline/types.ts:287

Processable applied to each array element.

Processable, not Baleybot. Baleybot has private fields, so it is nominally typed — a Baleybot<any, any> here would reject every other primitive in the algebra (a pipeline, a graph, a deterministic step, a ChatBot, a plain function), all of which work perfectly well at runtime. Naming one concrete primitive in a position that means "anything composable" is ASK-DONT-SNIFF in type form.

The per-item output type is recovered by mapBot, which infers it from the bot you pass rather than from this interface.


concurrency?​

optional concurrency?: number

Defined in: packages/core/src/pipeline/types.ts:299

Most elements in flight at once (default: unbounded).

Not consulted when parallel is false — that path is concurrency: 1 — but still validated, so a bad limit is reported wherever it came from rather than lying dormant until someone flips parallel back on.


parallel?​

optional parallel?: boolean

Defined in: packages/core/src/pipeline/types.ts:290

Process array elements in parallel (default: true)