diff --git a/libs/langgraph/langgraph/pregel/messages.py b/libs/langgraph/langgraph/pregel/messages.py index 300a882a1..dfb710d2a 100644 --- a/libs/langgraph/langgraph/pregel/messages.py +++ b/libs/langgraph/langgraph/pregel/messages.py @@ -160,8 +160,8 @@ class StreamMessagesHandler(BaseCallbackHandler, _StreamingCallbackHandler): if response is None: return - # Cap recursion depth at 5 - if depth >= 5: + # Cap recursion depth at 3 + if depth >= 3: return if isinstance(response, BaseMessage):