Files
crewAI/lib
Devin AI 901475e78c fix: wire _extract_tool_name into codebase and add regression tests for #5244
- 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>
2026-04-02 23:02:55 +00:00
..
2026-04-02 22:16:05 +08:00