Files
agent-framework/python/packages
T
L. Elaine Dazzio b6a1315386 fix: omit toolConfig when tool_choice="none" in BedrockChatClient (#4535)
Bedrock's Converse API only accepts "auto", "any", or "tool" as valid
toolChoice keys. The previous code mapped tool_choice="none" to
{"none": {}}, which causes a botocore.exceptions.ParamValidationError.

When tool_choice="none" (set by FunctionInvocationLayer after exhausting
max iterations), the fix now omits toolConfig entirely so the model
won't attempt tool calls.

Added tests for tool_choice="none", "auto", and "required" modes.

Fixes #4529

Co-authored-by: Eduard van Valkenburg <eavanvalkenburg@users.noreply.github.com>
b6a1315386 ยท 2026-03-12 18:49:08 +00:00
History
..
2026-03-11 18:53:38 +00:00
2026-03-11 18:53:38 +00:00
2026-03-11 18:53:38 +00:00
2026-03-11 18:53:38 +00:00
2026-03-11 18:53:38 +00:00
2026-03-11 18:53:38 +00:00
2026-03-11 18:53:38 +00:00
2026-03-11 18:53:38 +00:00
2026-03-11 18:53:38 +00:00
2026-03-11 18:53:38 +00:00
2026-03-11 18:53:38 +00:00
2026-03-11 18:53:38 +00:00
2026-03-11 18:53:38 +00:00
2026-03-11 18:53:38 +00:00
2026-03-11 18:53:38 +00:00