The Emirates Team New Zealand has won the America's Cup for the second time in four years, thanks to the help of a new AI agent developed by McKinsey's QuantumBlack using Ray and RLlib. The AI agent was trained on simulations of various sailing scenarios, allowing it to learn from trial and error and refine its performance over time. This enabled the team to iterate through design iterations much faster than humans, compressing hours into days. The use of reinforcement learning and Python framework built on Ray has successfully accelerated the design process by a factor of 10 for complex problems like sailing hydrofoil designs.