From 07ca03ff152b40b606e6c0605604b658896b97c0 Mon Sep 17 00:00:00 2001 From: vbarda Date: Mon, 14 Apr 2025 14:12:40 -0400 Subject: [PATCH] lower depth --- libs/langgraph/langgraph/pregel/messages.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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):