The agents and learning part of MIDAS