# Function emitStepCompleted

- emitStepCompleted(
  ctx: StepContext,
  nodesExecuted: number,
  options?: GraphExecuteOptions,
  ): void

  Emits step_completed event after a super-step finishes.

  #### Parameters

  - ctx: StepContext
  - nodesExecuted: number
  - `Optional` options: GraphExecuteOptions

  #### Returns void

  - Defined in packages/nexus-agents/src/orchestration/graph/graph-events.ts:85