Files
crewAI/tests
lorenzejay c0e49e8d3b Enhance Task Class with Guardrail Support
- Added a new `guardrails` field to the Task class to allow for multiple guardrail functions or string descriptions for output validation.
- Implemented a model validator to ensure guardrails are processed correctly, supporting both callable functions and string descriptions.
- Updated the task execution flow to invoke guardrails sequentially, handling validation and retry logic.
- Added comprehensive tests for various guardrail scenarios, including sequential processing, validation failures, and mixed return types.

This update improves the flexibility and robustness of task output validation, ensuring better control over task execution outcomes.
2025-10-15 13:05:04 -07:00
..
2025-09-20 15:29:25 -03:00
2025-03-14 03:00:30 -03:00
2025-09-10 15:20:21 -07:00
2023-10-29 19:51:59 -03:00