chore: sync core logic updates

This commit is contained in:
Jiaqing Liang
2026-02-05 17:36:30 +08:00
parent 52558c7f60
commit b37b56a780
4 changed files with 47 additions and 28 deletions

View File

@@ -26,7 +26,7 @@ class BaseHandler:
return ret
else:
yield f"❌ 未知工具: {tool_name}\n"
return StepOutcome(None, "未知工具", "ERROR")
return StepOutcome(None, next_prompt=f"未知工具 {tool_name}", should_exit=False)
def json_default(o):
if isinstance(o, set): return list(o)