# Function createPreferenceRouter

CLI Adapters exports - CLI integration with defensive parsing Split from index.ts for file size compliance (Issue #285)

- createPreferenceRouter(
  config?: Partial<PreferenceRouterConfig>,
  dataStore?: IPreferenceDataStore,
  ): PreferenceRouter

  Create a PreferenceRouter instance.

  #### Parameters

  - `Optional` config: Partial<PreferenceRouterConfig>
  - `Optional` dataStore: IPreferenceDataStore

  #### Returns PreferenceRouter

  - Defined in packages/nexus-agents/src/cli-adapters/preference-router.ts:243