From 6e6a3f66ca890884218bc202f4d759c9c62f0d31 Mon Sep 17 00:00:00 2001 From: goulustis Date: Thu, 29 Jan 2026 10:04:48 +0800 Subject: [PATCH] if found msg break --- lang_agent/graphs/react.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lang_agent/graphs/react.py b/lang_agent/graphs/react.py index fe2a9be..439073e 100644 --- a/lang_agent/graphs/react.py +++ b/lang_agent/graphs/react.py @@ -70,6 +70,7 @@ class ReactGraph(GraphBase): for msg in msgs: if isinstance(msg, HumanMessage): candidate_hum_msg = msg + break assert isinstance(candidate_hum_msg, HumanMessage), "not a human message"