Building AI Agents with LLMs RAG and Knowledge Graphs A practical guide to autonomous and modern AI agents