Tags: crewAIInc/crewAI
Tags
Stateful flows (#1931) * fix: ensure persisted state overrides class defaults - Remove early return in Flow.__init__ to allow proper state initialization - Add test_flow_default_override.py to verify state override behavior - Fix issue where default values weren't being overridden by persisted state Fixes the issue where persisted state values weren't properly overriding class defaults when restarting a flow with a previously saved state ID. Co-Authored-By: Joe Moura <[email protected]> * test: improve state restoration verification with has_set_count flag Co-Authored-By: Joe Moura <[email protected]> * test: add has_set_count field to PoemState Co-Authored-By: Joe Moura <[email protected]> * refactoring test * fix: ensure persisted state overrides class defaults - Remove early return in Flow.__init__ to allow proper state initialization - Add test_flow_default_override.py to verify state override behavior - Fix issue where default values weren't being overridden by persisted state Fixes the issue where persisted state values weren't properly overriding class defaults when restarting a flow with a previously saved state ID. Co-Authored-By: Joe Moura <[email protected]> * test: improve state restoration verification with has_set_count flag Co-Authored-By: Joe Moura <[email protected]> * test: add has_set_count field to PoemState Co-Authored-By: Joe Moura <[email protected]> * refactoring test * Fixing flow state * fixing peristed stateful flows * linter * type fix --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Joe Moura <[email protected]>
PreviousNext