# Function calculateVoteWeight

- calculateVoteWeight(performance: AgentPerformance | undefined): number

  Calculate vote weight for an agent based on their performance history. Weight ranges from 0.5 (no history) to 1.0 (perfect track record).

  #### Parameters

  - performance: AgentPerformance | undefined

  #### Returns number

  - Defined in packages/nexus-agents/src/consensus/strategies.ts:264