The trading upgrade enables automatic trading with merchants, such as villagers. It can be used in agents such as robots and drones and provides capabilities to identify available trades from nearby merchants, retrieve information on individual trade offers, and finally for performing trades.