Alpha Notice: These docs cover the v1-alpha release. Content is incomplete and subject to change.For the latest stable version, see the current LangGraph Python or LangGraph JavaScript docs.
Your LangGraph StateGraph reached the maximum number of steps before hitting a stop condition.
This is often due to an infinite loop caused by code like the example below:
Copy
Ask AI
import { StateGraph } from "@langchain/langgraph";import { z } from "zod";const State = z.object({ someKey: z.string(),});const builder = new StateGraph(State) .addNode("a", ...) .addNode("b", ...) .addEdge("a", "b") .addEdge("b", "a") ...const graph = builder.compile();
However, complex graphs may hit the default limit naturally.