# Function emitStateUpdated

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

  Emits state_updated event with deduplicated keys from successful results.

  #### Parameters

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

  #### Returns void

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