This concept is known as a direct exchange.
Companies that build geothermal thermal pumps make this in one of two ways: water-air or water-water. Water-to-air pumps resemble standard air conditioners, they use the heat pump source for cooling and heating, adjusting the air temperature through ventilation.