-
Stateful flows (#1931)
发布于
2025-01-20 16:30:09 +00:00 - 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 joao@crewai.com
- test: improve state restoration verification with has_set_count flag
Co-Authored-By: Joe Moura joao@crewai.com
- test: add has_set_count field to PoemState
Co-Authored-By: Joe Moura joao@crewai.com
-
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 joao@crewai.com
- test: improve state restoration verification with has_set_count flag
Co-Authored-By: Joe Moura joao@crewai.com
- test: add has_set_count field to PoemState
Co-Authored-By: Joe Moura joao@crewai.com
-
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 joao@crewai.com下载附件