ReAct lets an agent reason and act by choosing among tools wrapped as Python functions and supplying their parameters. DSPy provides a built-in ReAct module for this pattern. section 9.7
Across iterations, the agent uses a trajectory of reasoning, selected tools, and execution outputs to choose what to do next. A long-running loop can keep an agent available; chatbots can use ReAct, RAG, or both. section 9.7










