mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-05-05 09:12:39 +00:00
- Add _resolve_original_tool() to centralize tool lookup via _tool_name_mapping - Refactor _should_parallelize_native_tool_calls() to use _extract_tool_name() - Refactor _execute_single_native_tool_call() to use _resolve_original_tool() - Add 20 regression tests covering: - Tool name extraction (OpenAI, Gemini, Anthropic, dict formats) - Tool name collision resolution with _tool_name_mapping - _resolve_original_tool() with mapping, fallback, and unknown tools - Error handling with collision-renamed tools - result_as_answer and max_usage_count with renamed tools - _should_parallelize_native_tool_calls integration with _extract_tool_name Closes #5244 Co-Authored-By: João <joao@crewai.com>