adding agent template with dy.rec.