# Function createWorkflowEngineDepsAsync

Workflows exports - Workflow engine with parallel execution Split from index.ts for file size compliance (Issue #285)

- createWorkflowEngineDepsAsync(
  config?: WorkflowEngineFactoryConfig,
  ): Promise<WorkflowEngineDeps>

  Creates WorkflowEngineDeps asynchronously with auto-detected model adapter.

  This function attempts to auto-detect an available model adapter (CLI or API) and configures the workflow engine to use the real StepExecutor with ExpertFactory. Use this when you want production-ready workflow execution with real agent experts.

  #### Parameters

  - `Optional` config: WorkflowEngineFactoryConfig

    Factory configuration (modelAdapter will be auto-detected if not provided)

  #### Returns Promise<WorkflowEngineDeps>

  Promise resolving to WorkflowEngineDeps

  #### Example

      // Auto-detect adapter and create deps with real execution
      const deps = await createWorkflowEngineDepsAsync();
      const engine = new WorkflowEngine(deps);

      // Or with custom config
      const deps = await createWorkflowEngineDepsAsync({
        logger: customLogger,
        useMockExecutor: false,
      });

  - Defined in packages/nexus-agents/src/workflows/workflow-engine-factory.ts:636