Errors¶
GraphRecursionError
¶
Bases:
Raised when the graph has exhausted the maximum number of steps.
This prevents infinite loops. To increase the maximum number of steps,
run your graph with a config specifying a higher recursion_limit
.
Troubleshooting Guides:
Examples:
graph = builder.compile()
graph.invoke(
{"messages": [("user", "Hello, world!")]},
# The config is the second positional argument
{"recursion_limit": 1000},
)
Source code in libs/langgraph/langgraph/errors.py
InvalidUpdateError
¶
Bases:
Raised when attempting to update a channel with an invalid set of updates.
Troubleshooting Guides:
Source code in libs/langgraph/langgraph/errors.py
GraphInterrupt
¶
Bases:
Raised when a subgraph is interrupted, suppressed by the root graph. Never raised directly, or surfaced to the user.
Source code in libs/langgraph/langgraph/errors.py
NodeInterrupt
¶
GraphDelegate
¶
Bases:
Raised when a graph is delegated (for distributed mode).
Source code in libs/langgraph/langgraph/errors.py
EmptyInputError
¶
TaskNotFound
¶
CheckpointNotLatest
¶
MultipleSubgraphsError
¶
Bases:
Raised when multiple subgraphs are called inside the same node.
Troubleshooting guides: