Skip to content

Conversation

@yarisoy
Copy link
Contributor

@yarisoy yarisoy commented Jan 30, 2026

Add tool_calls conversion and reconstruct missing assistant messages with toolUse blocks to prevent orphaned tool results that cause errors in Bedrock API.

Fixes #624

yarisoy and others added 2 commits January 30, 2026 20:36
Add tool_calls conversion and reconstruct missing assistant messages
with toolUse blocks to prevent orphaned tool results that cause
errors in Bedrock API.
@evalstate evalstate merged commit 5eeb735 into evalstate:main Jan 31, 2026
11 checks passed
@evalstate
Copy link
Owner

Thanks very much for this -- I made a small adjustment to the tool name/tracking logic. Will be in the next release - so please let us know if this solves the problems!

@yarisoy yarisoy deleted the fix/bedrock-tool-calling-multi-turn branch January 31, 2026 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Bedrock: Multi-turn tool calling fails - ValidationException: toolResult blocks exceed toolUse blocks

2 participants