Skip to content
masterclass Buddy

AI Agents · Concept

ReAct

A ReAct agent uses an LLM to decide when to call tools while processing messages. In LangGraph.js, createReactAgent connects the model and tool list into an executable agent.

Last updated

Syntax

createReactAgent({ llm: model, tools: [tool] })

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

Subscribe
  • tool
  • StateGraph
  • CompiledStateGraph
  • Messages
  • Graph API
  • streaming
  • human-in-the-loop

Source: langgraph | LangGraph.js API Reference. Checked 2026-11-03.