# Interface IOrchestratorFactory

Factory for creating orchestrators.

interface IOrchestratorFactory {
create(
type: OrchestratorType,
config?: Record<string, unknown>,
): IOrchestrator;
listTypes(): OrchestratorType[];
}

#### Implemented by

- OrchestratorFactory

- Defined in packages/nexus-agents/src/core/types/orchestrator.ts:224

##### Index

### Methods

create
listTypes

## Methods

### create

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

  Create an orchestrator instance.

  #### Parameters

  - type: OrchestratorType

    Orchestrator type

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

    Optional configuration

  #### Returns IOrchestrator

  New orchestrator instance

  - Defined in packages/nexus-agents/src/core/types/orchestrator.ts:232

### listTypes

- listTypes(): OrchestratorType[]

  List available orchestrator types.

  #### Returns OrchestratorType[]

  - Defined in packages/nexus-agents/src/core/types/orchestrator.ts:237