mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-05-05 09:12:39 +00:00
Task fields `guardrail` and `guardrails` store callable references that caused PydanticSerializationError when RuntimeState serialized entities during checkpointing. Add PlainSerializer annotations that convert callables to their dotted-path strings via callable_to_string, matching the existing pattern used for callback fields. Fixes #5620 Co-Authored-By: João <joao@crewai.com>