liveBook · Manning

ReAct

As explained in Building LLM Applications with DSPy

The ReAct pattern guides an agent to interleave reasoning with actions such as selecting and invoking tools.

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

How Building LLM Applications with DSPy covers it

How deep it goes
Explains iterative tool selection through trajectories of reasoning, tools, parameters, and execution outputs.
Examples
Uses tool-wrapped Python functions and a long-running chatbot loop as application patterns.
What you can do after
Apply it via DSPy to build an agent that selects tools and iterates from execution histories.
How it connects
Connects agents to Python functions, RAG chatbots, conversational memory, and MCP for remote tool definitions and execution.

Also explained in

Compare how 11 books explain ReAct →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Building LLM Applications with DSPy. The section links point to the parts of the book it draws on.