mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-04-12 22:12:37 +00:00
The tools parameter in @before_tool_call and @after_tool_call decorators now auto-normalizes tool names using sanitize_tool_name() before comparison. This allows users to pass human-readable tool names (e.g., 'File Read Tool', 'ExaSearchTool') that match the sanitized tool_name in ToolCallHookContext at runtime, without needing to know the internal sanitization logic. Closes #5335 Co-Authored-By: João <joao@crewai.com>