diff --git a/astrbot/core/agent/runners/tool_loop_agent_runner.py b/astrbot/core/agent/runners/tool_loop_agent_runner.py index 8309e6674..9f80dae1c 100644 --- a/astrbot/core/agent/runners/tool_loop_agent_runner.py +++ b/astrbot/core/agent/runners/tool_loop_agent_runner.py @@ -357,6 +357,7 @@ class ToolLoopAgentRunner(BaseAgentRunner[TContext]): ), ), ) + return if not llm_resp.tools_call_name: # 如果没有工具调用,转换到完成状态