# Function runIterativeConsensus

- runIterativeConsensus(
  initialPlan: string,
  revisePlan: (plan: string, feedback: string) => Promise<string>,
  config?: IterativeConsensusConfig,
  ): Promise<IterativeConsensusResult>

  #### Parameters

  - initialPlan: string
  - revisePlan: (plan: string, feedback: string) => Promise<string>
  - `Optional` config: IterativeConsensusConfig

  #### Returns Promise<IterativeConsensusResult>

  - Defined in packages/nexus-agents/src/pipeline/iterative-consensus.ts:95