Skip to content
masterclass Buddy

LangGraph · Function

create_react_agent

create_react_agent builds a graph that lets a language model call tools in a loop. It returns the complete message history after the model stops requesting tools.

Last updated

Since
v0.1

Syntax

create_react_agent(model, tools, *, prompt=None, response_format=None, pre_model_hook=None, post_model_hook=None, state_schema=None, ... )

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • create_agent
  • ToolNode
  • AgentState
  • LangGraph v1 migration guide
  • Migrate from langgraph-supervisor

Source: create_react_agent | langgraph.prebuilt | LangChain Reference. Checked 2026-11-03.