Organisms that assemble their own organic molecules from water and elements that they absorb from their environment are which of the following?

Is this detritivore or decomposer? I am confused by these two. thanks

detritiVORE is the answer