mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-15 00:05:54 +08:00
fix: when cot_agent call tool like searxng lost some response content (#16781)
This commit is contained in:
parent
eb92dd59f9
commit
7a62202392
@ -246,7 +246,7 @@ class ToolEngine:
|
|||||||
+ "you do not need to create it, just tell the user to check it now."
|
+ "you do not need to create it, just tell the user to check it now."
|
||||||
)
|
)
|
||||||
elif response.type == ToolInvokeMessage.MessageType.JSON:
|
elif response.type == ToolInvokeMessage.MessageType.JSON:
|
||||||
result = json.dumps(
|
result += json.dumps(
|
||||||
cast(ToolInvokeMessage.JsonMessage, response.message).json_object, ensure_ascii=False
|
cast(ToolInvokeMessage.JsonMessage, response.message).json_object, ensure_ascii=False
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user