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.