Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ def _get_tool_config() -> dict[str, Any] | None:
tool_config["toolChoice"] = {"any": {}}
elif tool_choice == "auto":
tool_config["toolChoice"] = {"auto": {}}
else:
return None
# tool_choice="none" means no forced tool use; omit toolChoice but keep toolConfig
# so AWS does not raise ValidationException when tool use/result blocks are present

return tool_config

Expand Down