Python: Create a ReAct Agent from Scratch