AI Explained: From LLMs to Agentic AI