Files
crewAI/lib
Devin AI d5100a54c7 feat: add GuardrailProvider interface for pre-tool-call authorization (#4877)
- Add GuardrailRequest dataclass for tool call context
- Add GuardrailDecision dataclass for allow/deny verdicts
- Add GuardrailProvider runtime-checkable protocol
- Add enable_guardrail() adapter wiring providers into BeforeToolCallHook
- Add disable() callable returned by enable_guardrail for cleanup
- Support fail_closed (default) and fail_open exception handling
- Export new types from crewai.hooks
- Add 29 comprehensive tests covering all scenarios

Co-Authored-By: João <joao@crewai.com>
2026-03-14 18:18:37 +00:00
..
2026-03-14 00:34:12 -04:00