mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-07-02 13:48:09 +00:00
When Bedrock returns tool calls as dicts with 'name' and 'input' keys
(no 'function' key), the fallback default '{}' string in
func_info.get('arguments', '{}') was truthy, causing the 'or' to
short-circuit and never reach tool_call.get('input', {}). This resulted
in empty arguments being passed to tools.
Changed to func_info.get('arguments') or tool_call.get('input') or {}
to match the pattern already used in extract_tool_call_info().
Co-Authored-By: João <joao@crewai.com>