mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-13 10:08:29 +00:00
- Modified BaseEvent to set timestamp as Optional[datetime] = None instead of at creation time - Updated crewai_event_bus.emit() to set timestamp at emission time if not already set - Added comprehensive tests for chronological ordering of stream chunk events - Added test for preserving manually set timestamps - Added test for BaseEvent timestamp setting behavior Fixes GitHub issue #3008 where streaming chunk events were emitted out of chronological order due to variable processing delays between event creation and emission. Co-Authored-By: João <joao@crewai.com>