bedrock: Add placeholder tool when summarising threads with tool history#48863
Merged
benbrandt merged 1 commit intozed-industries:mainfrom Feb 16, 2026
Merged
Conversation
|
Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: David Turnbull.
|
d6d19a2 to
9cbcd35
Compare
Bedrock Converse API requires toolConfig whenever messages have tool use or result blocks. PR zed-industries#33174 handled the case where tools are defined but tool_choice is None. This change addresses another case: the tools array is empty (e.g. thread summarisation) but messages still have tool blocks from conversation history. A placeholder tool satisfies the requirement. Release Notes: - Fixed Bedrock thread summarisation failing when conversation had tools
9cbcd35 to
332b925
Compare
rtfeldman
pushed a commit
that referenced
this pull request
Feb 17, 2026
…ory (#48863) Bedrock Converse API requires toolConfig whenever messages have tool use or result blocks. PR #33174 handled the case where tools are defined but tool_choice is None. This change addresses another case: the tools array is empty (e.g. thread summarisation) but messages still have tool blocks from conversation history. A placeholder tool satisfies the requirement. Testing: Tested manually by: 1. Starting a conversation with Bedrock that uses tools 2. Triggering thread summarisation 3. Confirming summarisation now succeeds instead of failing with an API error Release Notes: - Fixed Bedrock thread summarization failing when conversation had tools
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Testing:
Tested manually by:
Release Notes: