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

pull/18945/head
cooper.wu 1 year ago committed by GitHub
parent eb92dd59f9
commit 7a62202392
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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:

Loading…
Cancel
Save