Interface: PipelineStageEvent
@providerprotocol/ai / middleware/pipeline / PipelineStageEvent
Interface: PipelineStageEvent
Section titled “Interface: PipelineStageEvent”Defined in: src/middleware/pipeline/index.ts:28
Stream event for pipeline stage progress. Extends StreamEvent with pipeline-specific delta containing stage and payload.
Extends
Section titled “Extends”Properties
Section titled “Properties”delta:
PipelineStageDelta
Defined in: src/middleware/pipeline/index.ts:30
Event-specific data payload
Overrides
Section titled “Overrides”index:
number
Defined in: src/types/stream.ts:160
Index of the content block this event belongs to
Inherited from
Section titled “Inherited from”type:
"pipeline_stage"
Defined in: src/middleware/pipeline/index.ts:29
Event type discriminator.
Uses StreamEventType | (string & Record<never, never>) to allow custom
event types (like ‘flow_stage’) while preserving autocomplete for known types.
The (string & Record<never, never>) pattern is a TypeScript idiom that
widens the type to accept any string without losing the literal type union
in IDE autocomplete suggestions.