# Function emitNodeResults

- emitNodeResults(
  ctx: StepContext,
  results: readonly NodeResult[],
  options?: GraphExecuteOptions,
  ): void

  Emits node_completed or node_error events for each result.

  #### Parameters

  - ctx: StepContext
  - results: readonly NodeResult[]
  - `Optional` options: GraphExecuteOptions

  #### Returns void

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