Interface: PipelineConfig
@providerprotocol/ai / middleware/pipeline / PipelineConfig
Interface: PipelineConfig<TData>
Section titled “Interface: PipelineConfig<TData>”Defined in: src/middleware/pipeline/index.ts:130
Pipeline middleware configuration.
Type Parameters
Section titled “Type Parameters”TData = unknown
Type of the turn’s structured data
Properties
Section titled “Properties”continueOnError?
Section titled “continueOnError?”
optionalcontinueOnError:boolean
Defined in: src/middleware/pipeline/index.ts:141
Continue running subsequent stages even if one fails (default: false). In parallel mode, all stages run regardless; this only affects error propagation.
onStageError()?
Section titled “onStageError()?”
optionalonStageError: (details) =>void|Promise<void>
Defined in: src/middleware/pipeline/index.ts:147
Called when a stage throws an error. Useful for logging or cleanup. Does not prevent error propagation unless continueOnError is true.
Parameters
Section titled “Parameters”details
Section titled “details”PipelineStageError<TData>
Returns
Section titled “Returns”void | Promise<void>
parallel?
Section titled “parallel?”
optionalparallel:boolean
Defined in: src/middleware/pipeline/index.ts:135
Run stages in parallel instead of sequential (default: false)
stages
Section titled “stages”stages:
PipelineStage<TData>[]
Defined in: src/middleware/pipeline/index.ts:132
Stages to run after turn completion, executed in order