# Interface PipelineContext

Read-only pipeline context passed to every stage.

interface PipelineContext {
executionId: string;
task: string;
templateId: string;
state: Readonly<Record<string, unknown>>;
sharedMemory: SharedMemoryStore;
}

- Defined in packages/nexus-agents/src/pipeline/stage-types.ts:15

##### Index

### Properties

executionId
task
templateId
state
sharedMemory

## Properties

### `Readonly` executionId

executionId: string

Unique pipeline execution ID.

- Defined in packages/nexus-agents/src/pipeline/stage-types.ts:17

### `Readonly` task

task: string

The original task/prompt that started the pipeline.

- Defined in packages/nexus-agents/src/pipeline/stage-types.ts:19

### `Readonly` templateId

templateId: string

Pipeline template being executed.

- Defined in packages/nexus-agents/src/pipeline/stage-types.ts:21

### `Readonly` state

state: Readonly<Record<string, unknown>>

Accumulated state from prior stages.

- Defined in packages/nexus-agents/src/pipeline/stage-types.ts:23

### `Readonly` sharedMemory

sharedMemory: SharedMemoryStore

Cross-stage knowledge store for discoveries, decisions, constraints (#1764).

- Defined in packages/nexus-agents/src/pipeline/stage-types.ts:25