# Function createOrchestratorFactory

Orchestration exports - Factory, graph workflows, and spec-driven execution Split from index.ts for file size compliance (Issue #285)

- createOrchestratorFactory(
  config?: OrchestratorFactoryConfig,
  ): Promise<IOrchestratorFactory>

  Creates an OrchestratorFactory with async initialization.

  This is the recommended way to create an OrchestratorFactory as it properly initializes all async dependencies like the WorkflowEngine.

  #### Parameters

  - `Optional` config: OrchestratorFactoryConfig

    Factory configuration

  #### Returns Promise<IOrchestratorFactory>

  Promise resolving to initialized OrchestratorFactory

  #### Example

      const factory = await createOrchestratorFactory();
      const types = factory.listTypes(); // ['workflow']

      const orchestrator = factory.create('workflow');
      const result = await orchestrator.execute(...);

  - Defined in packages/nexus-agents/src/orchestration/orchestrator-factory.ts:375