From 744f8f6aa0d3ac1e2ebe8f044a322269e01b6fad Mon Sep 17 00:00:00 2001 From: ymq Date: Tue, 11 Aug 2026 13:16:50 +0800 Subject: [PATCH] debug: raw text yield to test loop entry --- pipeline_service/agent_loop_v2.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pipeline_service/agent_loop_v2.py b/pipeline_service/agent_loop_v2.py index f1651dc..49ab95f 100644 --- a/pipeline_service/agent_loop_v2.py +++ b/pipeline_service/agent_loop_v2.py @@ -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)