# Function calculateRoutingDistribution

- calculateRoutingDistribution(
  routingHistory: readonly ObserverRoutingDecision[],
  ): Record<CliName, number>

  Calculates routing distribution from routing history.

  #### Parameters

  - routingHistory: readonly ObserverRoutingDecision[]

    The routing decision history

  #### Returns Record<CliName, number>

  A record mapping CLI names to counts

  - Defined in packages/nexus-agents/src/agents/observability/orchestration-observer-helpers.ts:179