fix: when cot_agent call tool like searxng lost some response content (#16781)

This commit is contained in:
cooper.wu
2025-04-28 09:27:46 +08:00
committed by GitHub
parent 2a3a588f05
commit 3f51b0ed7b
+1 -1
View File
@@ -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: