fix: merge consecutive toolResult blocks into single user message#3957
fix: merge consecutive toolResult blocks into single user message#3957Wendong-Fan merged 2 commits intomasterfrom
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment Tip CodeRabbit can generate a title for your PR based on the changes with custom instructions.Set the |
There was a problem hiding this comment.
Code review is billed via overage credits. To resume reviews, an organization admin can raise the monthly limit in Settings → Usage.
Once credits are available, reopen this pull request to trigger a review.
from #3956
Fixes #3954
AWS Bedrock Converse API requires that all
toolResultblocks corresponding to a multi-tool-use assistant turn are grouped in a single immediately-following user message. The current code creates a separateusermessage pertoolresult, which causes:also release 0.2.90