if found msg break

This commit is contained in:
2026-01-29 10:04:48 +08:00
parent 8a5b061ab2
commit 6e6a3f66ca

View File

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