From Agmon–Kannai Expansion to Korteweg–de Vries Hierarchy