From b7e87e40f3abeff90125f3c166026ac6fda366f3 Mon Sep 17 00:00:00 2001 From: shuiyu67 Date: Thu, 6 Aug 2026 23:59:44 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20FC=20=E5=B7=A5=E5=85=B7=E7=BB=93?= =?UTF-8?q?=E6=9E=9C=E7=BB=AD=E8=BD=AE=E4=B8=8D=E5=86=8D=E4=B8=8B=E5=8F=91?= =?UTF-8?q?=20schema=EF=BC=8C=E7=9C=81=E6=AF=8F=E8=BD=AE=E9=87=8D=E5=8F=91?= =?UTF-8?q?=20token?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xcli_core/cli_core.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xcli_core/cli_core.py b/xcli_core/cli_core.py index b41bf1b..124eb26 100644 --- a/xcli_core/cli_core.py +++ b/xcli_core/cli_core.py @@ -922,6 +922,10 @@ multi 操作支持一次修改多处: return None except Exception: return None + # 工具结果续轮:模型只需决定「继续/收尾」,不需要 FC schema,省下每轮重发的 token。 + # 若模型仍想调工具,走纯 JSON action(无需 schema 即可),行为等价、成本更低。 + if current_input and str(current_input).lstrip().startswith("工具执行结果"): + return None try: from .fc_tools import mcp_to_openai_tools, prune_tools all_tools = mcp_to_openai_tools(self.liugin_manager)