[](https://js.langchain.com/docs/how_to/migrate_agent/): LLM should read this page when migrating from legacy LangChain agents to LangGraph, accessing examples of using LangGraph with memory and streaming, and understanding how to handle parameters like maxIterations and returnIntermediateSteps. This page covers how to migrate from using LangChain's AgentExecutor to using LangGraph's createReactAgent function, including examples for handling memory, streaming, maxIterations, and returnIntermediateSteps. It explains how to use system messages, message modifiers, and checkpointers for handling memory in LangGraph. It also shows how to stream and access intermediate steps using LangGraph.

