From 7a622023921c4b7c48611afc57184d6b81b442f0 Mon Sep 17 00:00:00 2001 From: "cooper.wu" Date: Mon, 28 Apr 2025 09:27:46 +0800 Subject: [PATCH] fix: when cot_agent call tool like searxng lost some response content (#16781) --- api/core/tools/tool_engine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/core/tools/tool_engine.py b/api/core/tools/tool_engine.py index 997917f31c..3dce1ca293 100644 --- a/api/core/tools/tool_engine.py +++ b/api/core/tools/tool_engine.py @@ -246,7 +246,7 @@ class ToolEngine: + "you do not need to create it, just tell the user to check it now." ) elif response.type == ToolInvokeMessage.MessageType.JSON: - result = json.dumps( + result += json.dumps( cast(ToolInvokeMessage.JsonMessage, response.message).json_object, ensure_ascii=False ) else: