# Function selectExperts

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

- selectExperts(
  task: Task,
  registry: SelectionExpertRegistry,
  options?: SelectionOptions,
  ): Result<SelectionResult, SelectionError>

  Selects the best experts for a task.

  #### Parameters

  - task: Task

    The task to select experts for

  - registry: SelectionExpertRegistry

    Registry of available experts

  - `Optional` options: SelectionOptions

    Optional selection configuration

  #### Returns Result<SelectionResult, SelectionError>

  - Defined in packages/nexus-agents/src/agents/experts/expert-selector.ts:370