debug: raw text yield to test loop entry

This commit is contained in:
ymq 2026-08-11 13:16:50 +08:00
parent bf4413b81c
commit 744f8f6aa0

View File

@ -128,8 +128,7 @@ class AgentExecutor:
# 5b. LLM 调用
raw = await self._call_llm()
import sys
print(f"AGENT_LOOP turn={self._turn_count} raw_len={len(raw) if raw else 0}", file=sys.stderr, flush=True)
yield "DEBUG_RAW turn=" + str(self._turn_count) + " len=" + str(len(raw) if raw else 0) + "\n"
# 5c. 解析 LLM 输出
actions = self._parse_actions(raw)