You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
[FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
Please do not modify this template :) and fill in all the required fields.
Dify version
0.11.2
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
Use a tool that outputs only more than one ToolInvokeMessage.MessageType.JSON.
Check tool output on tracing. Only the "json" output should be filled, the "text" output should be empty or an empty string.
✔️ Expected Behavior
Only the "json" output should be filled, the "text" output should be empty or an empty string.
❌ Actual Behavior
The "json" output should is filled, but the "text" output is an list of "\n".
The text was updated successfully, but these errors were encountered:
The issue you're experiencing with the extract_tool_response_text function is due to the way the list comprehension is structured in the _extract_tool_response_text method. Specifically, it adds an empty string "" for any ToolInvokeMessage that is not of type TEXT or LINK. This results in a list of empty strings, which when joined with "\n", produces a string of newline characters.
Self Checks
Dify version
0.11.2
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
Use a tool that outputs only more than one ToolInvokeMessage.MessageType.JSON.
Check tool output on tracing. Only the "json" output should be filled, the "text" output should be empty or an empty string.
✔️ Expected Behavior
Only the "json" output should be filled, the "text" output should be empty or an empty string.
❌ Actual Behavior
The "json" output should is filled, but the "text" output is an list of "\n".
The text was updated successfully, but these errors were encountered: