mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-04-15 07:22:44 +00:00
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>