debug: show raw LLM output
This commit is contained in:
parent
0e94c230ee
commit
c091e98df1
@ -128,6 +128,14 @@ class AgentExecutor:
|
|||||||
# 5b. LLM 调用
|
# 5b. LLM 调用
|
||||||
raw = await self._call_llm()
|
raw = await self._call_llm()
|
||||||
|
|
||||||
|
# debug: show raw LLM output
|
||||||
|
yield json.dumps({
|
||||||
|
"type": "debug_raw",
|
||||||
|
"turn": self._turn_count,
|
||||||
|
"raw_len": len(raw) if raw else 0,
|
||||||
|
"raw_preview": (raw or "")[:200],
|
||||||
|
}, ensure_ascii=False) + "\n"
|
||||||
|
|
||||||
# 5c. 解析 LLM 输出
|
# 5c. 解析 LLM 输出
|
||||||
actions = self._parse_actions(raw)
|
actions = self._parse_actions(raw)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user