# Function computeOutcomeReward

Learning exports - Closed-loop feedback and routing improvement Split from index.ts for file size compliance (Issue #285)

- computeOutcomeReward(
  collector: IOutcomeFeedback,
  outcome: TaskOutcome,
  ): ComputedReward

  Helper to compute reward from outcome.

  #### Parameters

  - collector: IOutcomeFeedback
  - outcome: TaskOutcome

  #### Returns ComputedReward

  - Defined in packages/nexus-agents/src/learning/feedback-integration.ts:519