Files
crewAI/lib/crewai/tests
Lorenze Jay 4ae8c36815 feat: enhance flow event state management (#3952)
* feat: enhance flow event state management

- Added `state` attribute to `FlowFinishedEvent` to capture the flow's state as a JSON-serialized dictionary.
- Updated flow event emissions to include the serialized state, improving traceability and debugging capabilities during flow execution.

* fix: improve state serialization in Flow class

- Enhanced the `_copy_and_serialize_state` method to handle exceptions during JSON serialization of Pydantic models, ensuring robustness in state management.
- Updated test assertions to access the state as a dictionary, aligning with the new state structure.

---------

Co-authored-by: Greyson LaLonde <greyson.r.lalonde@gmail.com>
2025-11-24 15:55:49 -08:00
..
2025-11-24 13:15:24 -08:00
2025-10-20 14:10:19 -07:00
2025-10-20 14:10:19 -07:00
2025-11-13 10:11:50 -08:00
2025-10-20 14:10:19 -07:00
2025-10-20 14:10:19 -07:00
2025-11-24 16:51:28 -05:00
2025-10-20 14:10:19 -07:00
2025-10-20 14:10:19 -07:00
2025-10-20 14:10:19 -07:00
2025-10-20 14:10:19 -07:00
2025-11-15 20:48:40 -05:00
2025-10-20 14:10:19 -07:00
2025-11-19 01:28:25 -05:00
2025-10-20 14:10:19 -07:00
2025-10-20 14:10:19 -07:00
2025-10-20 14:10:19 -07:00
2025-11-15 20:48:40 -05:00
2025-10-20 14:10:19 -07:00