rnow-rewards
Installation
SKILL.md
Writing Reward Functions for ReinforceNow
Reward functions compute the training signal for reinforcement learning. They evaluate model responses and return a score between 0.0 and 1.0.
Basic Structure
Every reward function must:
- Be decorated with
@reward - Accept
(args: RewardArgs, messages: list)as parameters - Return a
floatbetween 0.0 and 1.0
from rnow.core import reward, RewardArgs