nexus-agents - v2.80.0
    Preparing search index...

    Function createWorkflowEngineDepsAsync

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

    • 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

      Returns Promise<WorkflowEngineDeps>

      Promise resolving to WorkflowEngineDeps

      // 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,
      });