fix:修复记忆提取的一些问题

This commit is contained in:
SengokuCola
2025-09-29 00:22:34 +08:00
parent f3cbc6ed89
commit 0683f56e23
6 changed files with 189 additions and 169 deletions

View File

@@ -355,7 +355,7 @@ class DefaultReplyer:
content = tool_result.get("content", "")
result_type = tool_result.get("type", "tool_result")
tool_info_str += f"- 【{tool_name}{result_type}: {content}\n"
tool_info_str += f"- 【{tool_name}】: {content}\n"
tool_info_str += "以上是你获取到的实时信息,请在回复时参考这些信息。"
logger.info(f"获取到 {len(tool_results)} 个工具结果")