break out of loop

This commit is contained in:
2026-01-26 17:40:35 +08:00
parent 3d76179a01
commit 9aad1581f0

View File

@@ -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"