For example, in a chatbot project, the inputs may be: “what do you want to eat” and the  outputs may be  “I want to eat apple”.
Then outputs(shifted right) is “BOS I want to eat apple”, and we expect the transformer to predict “I want to eat apple EOS”.
BOS means begin of sentence, EOS means end of sentence.