answer_by_chain_of_thought function

Set chain of thought mode for a prompt