This code works correctly. It is a version of constructor to let the agent speak and at the same time display two different prompts.