What is a ReAct agent in LangGraph?

A prebuilt graph that runs the ReAct pattern on structured tool calls: a model calling tools in a loop until a given task is complete, instead of a graph you wire node by node. It’s the quickest way to get a working agent, and the one most people reach for before they need a custom graph for branching, human approval, or multiple cooperating agents.

Its name has changed. create_react_agent, imported from langgraph.prebuilt, is deprecated as of LangGraph v1 in favor of LangChain’s create_agent, imported from langchain.agents. The call shape is almost identical, model and tools in, a runnable agent out, but the prompt argument is renamed system_prompt, and dynamic model or tool selection moves from a callable passed to model into the newer middleware interface instead.

What stays the same across the rename is the loop itself: the graph keeps calling the model and running whatever tools it returns until the model stops asking for one, which is the behavior the “ReAct” name describes regardless of which function builds the graph.

published

sources

keep reading

More on this.

Try Tessary on Cloud.

free · 10,000 traces a month · 1 GB · 30-day retention · $10 one-time credit for triage and RCA · no credit card