Japan and the United States have agreed to cooperate in fields such as artificial intelligence, 6G, and more.