mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-05-04 16:52:37 +00:00
The dict branch in _parse_native_tool_call used a truthy default '{}' for
func_info.get('arguments', '{}'), which prevented the or-chain from ever
reaching tool_call.get('input'). Bedrock returns tool calls as
{name, input, toolUseId} dicts (no 'function' key), so every tool call
received an empty dict instead of its actual arguments.
Fix: remove the default from get('arguments') so it returns None (falsy)
when the key is absent, allowing the fallback to 'input'.
Co-Authored-By: João <joao@crewai.com>