The yellow coloured liquid is waste from the mycelium called metabolites. It’s can also be produced as mushrooms fend off other bacteria. Usually this is also a sign to induce fruiting conditions as the mushroom bag may have been colonising for too long.