mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
Errors caused by parallel tool calls due to removed tool message that not expected #911
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @leslie2046 on GitHub (Dec 30, 2025).
Self Checks
Dify version
1.11.2
Plugin version
0.0.8
Cloud or Self Hosted
Self Hosted (Source)
Steps to reproduce
✔️ Error log
@dosubot[bot] commented on GitHub (Dec 30, 2025):
This error is caused by how parallel tool calls are handled in the plugin/agent strategy: previously, each tool call could result in an unexpected empty assistant message, or tool calls weren't merged into a single assistant message, which breaks the protocol expected by the LLM API and leads to the "insufficient tool messages following tool_calls message" error.
This is a known issue and has been fixed in the dify-official-plugins repository. The relevant fix is in PR #2351, which merges all tool calls into a single assistant message and ensures the correct sequence and formatting for tool call responses. The fix is available starting from plugin/strategy version 0.0.29. You are currently on version 0.0.8, so upgrading to at least 0.0.29 should resolve this error. You can see the details of the fix here: dify-official-plugins PR #2351.
If you can't upgrade right away, a temporary workaround is to avoid parallel tool calls in your workflow and serialize them instead.
Let me know if you need help with upgrade steps or further troubleshooting.
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other