1.
Select the next token according to the configured decoding rule.
2.
Process the current sequence containing the instructions, customer message and any reply tokens already generated.
3.
Append the selected token to the sequence used for the following generation cycle.
4.
Compute probabilities for possible next tokens using the neural network's current parameters.