求解线段最值问题?---**Question Stem:**
如图,正方形 ABCD 的边长为 2. 点 E, F 在 BC 和 CD 上,∠EAF=45°,则 EF 的最小值是____.
**Translation of Question Stem:**
As shown in the figure, the side length of square ABCD is 2. Points E, F are on BC and CD respectively, ∠EAF=45°, then what is the minimum value of EF?
**Chart/Diagram Description:**
* **Type:** Geometric figure.
* **Main Elements:**
* A square named ABCD. The vertices are labeled counter-clockwise: A (top-left), B (bottom-left), C (bottom-right), D (top-right).
* A point E is located on the side BC.
* A point F is located on the side CD.
* Three line segments connect point A to E, A to F, and E to F, forming a triangle AEF inside the square.