Devin AI
7c4df138e5
fix: ensure TaskOutput.pydantic is populated on first guardrail invocation
...
Previously, when a task had guardrails configured, _export_output() was
intentionally skipped on the first attempt, causing TaskOutput.pydantic
and TaskOutput.json_dict to be None. This made it difficult to write
guardrail functions that need to access the structured Pydantic output.
This fix removes the conditional skip of _export_output() in both
_execute_core() and _aexecute_core(), ensuring consistent behavior
across all guardrail invocations.
Fixes #4369
Co-Authored-By: João <joao@crewai.com >
2026-02-04 19:03:54 +00:00
..
2026-01-30 17:10:00 -05:00
2026-02-03 08:58:51 -05:00
2026-02-03 16:30:43 -08:00
2026-02-03 10:17:50 -05:00
2025-10-20 14:10:19 -07:00
2025-12-04 16:53:19 -05:00
2026-01-21 11:12:10 -05:00
2025-12-05 13:23:26 -05:00
2026-01-27 14:56:50 -08:00
2025-12-04 10:27:52 -08:00
2026-02-03 16:30:43 -08:00
2025-11-26 21:37:55 -08:00
2026-01-21 11:12:10 -05:00
2025-11-29 16:55:24 -05:00
2025-11-05 07:19:09 -05:00
2026-01-26 14:55:03 -08:00
2025-10-20 14:10:19 -07:00
2025-10-20 14:10:19 -07:00
2025-12-04 13:34:29 -08:00
2025-12-05 13:23:26 -05:00
2026-01-23 15:13:25 -05:00
2025-11-29 16:55:24 -05:00
2026-02-03 10:10:33 -03:00
2025-10-20 14:10:19 -07:00
2026-01-23 15:13:25 -05:00
2025-12-25 21:04:10 -03:00
2026-01-22 17:44:03 -08:00
2026-01-23 15:13:25 -05:00
2025-10-20 14:10:19 -07:00
2026-02-02 11:24:02 -05:00
2025-12-01 18:56:56 -05:00
2025-10-20 14:10:19 -07:00
2025-12-30 11:36:31 -08:00
2026-01-23 15:13:25 -05:00
2026-01-20 21:44:45 -08:00
2025-10-20 14:10:19 -07:00
2025-11-24 17:35:12 -05:00
2026-01-23 15:13:25 -05:00
2025-10-20 14:10:19 -07:00
2025-12-25 21:04:10 -03:00
2025-12-25 21:04:10 -03:00
2025-10-20 14:10:19 -07:00
2026-01-23 15:13:25 -05:00
2025-10-20 14:10:19 -07:00
2025-10-20 14:10:19 -07:00
2025-11-29 16:55:24 -05:00
2025-11-29 16:55:24 -05:00
2026-02-03 10:10:33 -03:00
2026-02-04 19:03:54 +00:00
2025-12-11 12:03:33 -05:00
2025-10-20 14:10:19 -07:00