The Evolution of AI: From Philosophy to AGI