Skip to content

Interface: PipelineStageEvent

@providerprotocol/ai


@providerprotocol/ai / middleware/pipeline / 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.

delta: PipelineStageDelta

Defined in: src/middleware/pipeline/index.ts:30

Event-specific data payload

StreamEvent.delta


index: number

Defined in: src/types/stream.ts:160

Index of the content block this event belongs to

StreamEvent.index


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.

StreamEvent.type