# Function emitPipelineStageEvent

- emitPipelineStageEvent(
  prefix: string,
  stage: string,
  status: "failed" | "completed" | "started",
  details?: Record<string, unknown>,
  ): void

  Convenience wrapper matching agent-executor's original signature. Emits stage events using the global event bus with a prefixed executionId.

  #### Parameters

  - prefix: string
  - stage: string
  - status: "failed" | "completed" | "started"
  - `Optional` details: Record<string, unknown>

  #### Returns void

  - Defined in packages/nexus-agents/src/pipeline/pipeline-observability.ts:99