My impression is that you might be looking for a clever solution when that does not exist.
It is the very mundane that you are asked to do: You feed the input and the decoder just runs in a loop with one sequence index at a time (starting from some bos token).