mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-09-01 04:39:01 +02:00
31 lines
819 B
Python
31 lines
819 B
Python
class GraphRecursionError(RecursionError):
|
|
"""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`.
|
|
|
|
Examples:
|
|
|
|
graph = builder.compile()
|
|
graph.invoke(
|
|
{"messages": [("user", "Hello, world!")]},
|
|
# The config is the second positional argument
|
|
{"recursion_limit": 1000},
|
|
)
|
|
"""
|
|
|
|
pass
|
|
|
|
|
|
class EmptyChannelError(Exception):
|
|
"""Raised when attempting to get the value of a channel that hasn't been updated
|
|
for the first time yet."""
|
|
|
|
pass
|
|
|
|
|
|
class InvalidUpdateError(Exception):
|
|
"""Raised when attempting to update a channel with an invalid sequence of updates."""
|
|
|
|
pass
|