Agentic AI: From Generative Models to Intelligent Agents