Files
crewAI/lib
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
..