How to build ReAct (self learning and reasoning

Does anyone know how to build self-reactive agents, like in LangGraph where there is built-in support for it? How can something similar be achieved using CrewAI — including self-learning and self-correction or self-removal? If anyone has any idea about this, please let me know.