fix(core): correct duplicate word in agent logger warning (#4390)

- Fix duplicate '没有' in logger warning message
- Improve punctuation and readability of tool response comments
This commit is contained in:
letr
2026-01-11 15:00:35 +08:00
committed by GitHub
parent 8dfe43f22f
commit 86e9b41dde

View File

@@ -469,10 +469,10 @@ class ToolLoopAgentRunner(BaseAgentRunner[TContext]):
elif resp is None:
# Tool 直接请求发送消息给用户
# 这里我们将直接结束 Agent Loop
# 发送消息逻辑在 ToolExecutor 中处理了
# 这里我们将直接结束 Agent Loop
# 发送消息逻辑在 ToolExecutor 中处理了
logger.warning(
f"{func_tool_name} 没有没有返回值或者将结果直接发送给用户。"
f"{func_tool_name} 没有返回值或者将结果直接发送给用户。"
)
self._transition_state(AgentState.DONE)
self.stats.end_time = time.time()