Interface: MapBotConfig
Defined in: packages/core/src/pipeline/types.ts:313
Configuration for mapBot step.
Template
TInput
Input type (object with array field or array itself)
Template
TOutput
Output type after mapping
Example
const config: MapBotConfig<typeof enrichPostBot> = {
bot: enrichPostBot,
parallel: true
};
Properties
bot
bot:
Processable<unknown,unknown>
Defined in: packages/core/src/pipeline/types.ts:327
Processable applied to each array element.
Processable, not Baleybot. Baleybot has private fields, so it is
nominally typed — a Baleybot<any, any> here rejected every other
primitive in the algebra (a pipeline, a graph, a deterministic step, a
ChatBot), all of which map 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?
optionalconcurrency?:number
Defined in: packages/core/src/pipeline/types.ts:339
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?
optionalparallel?:boolean
Defined in: packages/core/src/pipeline/types.ts:330
Process array elements in parallel (default: true)