mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
Bedrock Plugin: Claude Thinking Chain Fails with Tool Calls - ValidationException #627
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 @qiqizjl on GitHub (Sep 5, 2025).
Self Checks
Dify version
2.0.0-beta
Plugin version
0.0.35
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
✔️ Error log
@dosubot[bot] commented on GitHub (Sep 5, 2025):
This error happens because the Bedrock plugin doesn't prepend a
thinking(orredacted_thinking) block beforetool_useblocks in the assistant's message when extended thinking is enabled, which is required by Anthropic Claude's API. As a result, Claude returns a ValidationException when it encounters a message that starts withtool_useinstead ofthinkingin this mode. This is a known issue and has been reported by other users as well (example).Currently, there are two practical workarounds:
thinkingblock before anytool_useortool_resultblocks. This would require changes in how the plugin constructs messages (details in code).If you need to keep extended thinking enabled, you’ll need to patch the plugin to enforce this message structure. Otherwise, disabling extended thinking is the quickest way to resolve the error for now.
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

@qiqizjl commented on GitHub (Sep 26, 2025):
Is this a bug? Is there any plan to fix it?
@dosubot[bot] commented on GitHub (Sep 26, 2025):
@crazywoola The user qiqizjl has indicated that the issue marked stale and closed is still relevant and is asking if it is a bug and whether there are plans to fix it. Could you please assist?
@chrisesposito92 commented on GitHub (Nov 19, 2025):
i am running into the same issue. it's hard to find any models that actually do work in the Agent nodes