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)