Commit Graph

2 Commits

Author SHA1 Message Date
Devin AI
3e240f269c fix: Add type check for guardrail result and remove unused import
Co-Authored-By: Joe Moura <joao@crewai.com>
2024-12-12 04:34:11 +00:00
Devin AI
8bfadec4bf feat: Add task guardrails feature
Add support for custom code guardrails in tasks that validate outputs
before proceeding to the next task. Features include:

- Optional task-level guardrail function
- Pre-next-task execution timing
- Tuple return format (success, data)
- Automatic result/error routing
- Configurable retry mechanism
- Comprehensive documentation and tests

Link to Devin run: https://app.devin.ai/sessions/39f6cfd6c5a24d25a7bd70ce070ed29a

Co-Authored-By: Joe Moura <joao@crewai.com>
2024-12-12 04:33:48 +00:00