Modifies, sorts, and packages proteins and lipids synthesized within the cell. Receives proteins and lipids from the endoplasmic reticulum, where they undergo further processing, including glycosylation and sorting into vesicles. Directs these molecules to their final destinations, such as secretion from the cell, incorporation into cellular membranes, or delivery to specific organelles. Participates in the synthesis of complex carbohydrates and the formation of lysosomes for intracellular digestion.