In general relativity, the first two terms
are lumped together into the matter action
(also containing the rest mass contribution in GR), and the last term is generalized by the Einstein–Hilbert
action.