before learning agent