# Function createOrchestrator

Agents exports - Agent framework, Orchestrator, Experts Split from index.ts for file size compliance (Issue #285)

- createOrchestrator(
  options?: Partial<BaseAgentOptions> & {
  orchestratorOptions?: OrchestratorOptions;
  },
  ): Orchestrator

  Creates a new Orchestrator agent with the given options. This is the preferred factory function for creating coordination agents.

  #### Parameters

  - `Optional` options: Partial<BaseAgentOptions> & { orchestratorOptions?: OrchestratorOptions }

    Agent configuration options

  #### Returns Orchestrator

  Orchestrator agent instance

  #### Example

      const orchestrator = createOrchestrator({
        orchestratorOptions: { maxSubtasks: 5 }
      });
      const result = await orchestrator.execute(task);

  - Defined in packages/nexus-agents/src/agents/tech-lead.ts:547