What Was The Purpose Of The Gentlemen Agreement With Japan In 1907

I had a conversation with the Japanese ambassador before leaving for Panama; read to him what I had to say in my annual message, which he obviously liked very much; then told him that, in my opinion, the only way to avoid constant friction between the United States and Japan is to limit as much as possible the movement of citizens from each country to students, travelers, businessmen and others; Since no American workers were trying to get to Japan, it was necessary to prevent any immigration of Japanese workers – that is, the Coolie class – to the United States; that I sincerely hoped that his government would prevent their coolies, all their workers, from coming to the United States or Hawaii. He shared this view from the bottom of his heart, saying that he had always been against allowing Japanese coolies to go to America or Hawaii.