It is a prefabricated structural element that collects and drains rain and snow water.
It sits at the top of the columns and helps connect the system with purlins.
It can also be used as a moment-transmitting beam with a special design in buildings that require moment transfer in the roof truss plane.