# Function createAgentPairKey

- createAgentPairKey(agentA: string, agentB: string): `${string}:${string}`

  Creates a canonical agent pair key for correlation lookup. Orders agents lexicographically to ensure consistent keys.

  #### Parameters

  - agentA: string
  - agentB: string

  #### Returns `${string}:${string}`

  - Defined in packages/nexus-agents/src/consensus/higher-order-types.ts:31