Files
crewAI/tests
Devin AI cdf6717d5f feat: Add before_tool_call and after_tool_call governance hooks to Crew
Adds optional before_tool_call and after_tool_call callback parameters to the
Crew class, enabling governance middleware for tool call authorization.

- before_tool_call(agent, tool_name, tool_input): Runs before each tool
  execution. Raise an exception to block the call.
- after_tool_call(agent, tool_name, tool_input, tool_output): Runs after
  each tool execution for audit/logging.

Closes #5888

Co-Authored-By: João <joao@crewai.com>
2026-05-21 11:44:48 +00:00
..
2024-12-17 16:00:15 -05:00
2024-11-18 00:21:36 -03:00
2024-12-23 13:19:58 -05:00
2023-10-29 19:51:59 -03:00
2023-12-27 15:13:42 -05:00
2024-11-12 15:04:57 -03:00