Building Agent From Scratch

I think this is a good place to start for a very clear explanation/example implementation of the ReAct pattern—I think this would be a good starting point for what you’re looking to learn: