mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-09-10 03:37:51 +02:00
lower depth
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user