# Interface ComputedReward

Computed reward for bandit update.

interface ComputedReward {
reward: number;
components: {
baseReward: number;
qualityBonus: number;
speedBonus: number;
efficiencyBonus: number;
retryPenalty: number;
};
explanation: string;
}

- Defined in packages/nexus-agents/src/learning/outcome-feedback-types.ts:155

##### Index

### Properties

reward
components
explanation

## Properties

### `Readonly` reward

reward: number

The reward value (0-1)

- Defined in packages/nexus-agents/src/learning/outcome-feedback-types.ts:157

### `Readonly` components

components: {
baseReward: number;
qualityBonus: number;
speedBonus: number;
efficiencyBonus: number;
retryPenalty: number;
}

Components that contributed to the reward

- Defined in packages/nexus-agents/src/learning/outcome-feedback-types.ts:159

### `Readonly` explanation

explanation: string

Explanation of reward computation

- Defined in packages/nexus-agents/src/learning/outcome-feedback-types.ts:167