In a pan, brown onion, bacon and kernels, minced in oil and butter, when the onion is browned, add the wine and let it evaporate, then add the cream and a ladle of cooking water, and complete cooking for another 2 minutes. Drain the agnolotti and mix all, adding cheese and basil. Serve hot.
Vegetarian