# Class OrchestratorFactory

Factory for creating IOrchestrator instances.

Provides a unified entry point for all orchestration strategies:

- workflow: Static template-based execution
- tech_lead: LLM-based task decomposition and orchestration (OrchestratorAdapter)
- puppeteer: Policy-based step execution (PuppeteerAdapter)

#### Example

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

    const result = await orchestrator.execute(
      { type: 'workflow', templatePath: './templates/code-review.yaml' },
      { url: 'https://github.com/...' }
    );

#### Implements

- IOrchestratorFactory

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

##### Index

### Constructors

constructor

### Methods

create
listTypes

## Constructors

### constructor

- new OrchestratorFactory(
  config: OrchestratorFactoryConfig,
  workflowEngine?: IWorkflowEngine,
  ): OrchestratorFactory

  #### Parameters

  - config: OrchestratorFactoryConfig
  - `Optional` workflowEngine: IWorkflowEngine

  #### Returns OrchestratorFactory

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

## Methods

### create

- create(type: OrchestratorType, _config?: Record<string, unknown>): IOrchestrator

  Create an orchestrator instance.

  #### Parameters

  - type: OrchestratorType

    Orchestrator type

  - `Optional`_config: Record<string, unknown>

  #### Returns IOrchestrator

  New orchestrator instance

  Implementation of IOrchestratorFactory.create

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

### listTypes

- listTypes(): OrchestratorType[]

  List available orchestrator types.

  #### Returns OrchestratorType[]

  Implementation of IOrchestratorFactory.listTypes

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