From 9aad1581f0294915cf91001a7b4219d89438150b Mon Sep 17 00:00:00 2001 From: goulustis Date: Mon, 26 Jan 2026 17:40:35 +0800 Subject: [PATCH] break out of loop --- lang_agent/graphs/routing.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lang_agent/graphs/routing.py b/lang_agent/graphs/routing.py index cb0e99d..9d7e158 100644 --- a/lang_agent/graphs/routing.py +++ b/lang_agent/graphs/routing.py @@ -135,6 +135,7 @@ class RoutingGraph(GraphBase): for msg in msgs: if isinstance(msg, HumanMessage): candidate_hum_msg = msg + break assert isinstance(candidate_hum_msg, HumanMessage), "not a human message"