Files
crewAI/tests
Devin AI 6d0158495b Fix LLMStreamChunkEvent chronological ordering issue
- 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>
2025-06-13 23:27:09 +00:00
..
2025-06-10 13:32:32 -04:00
2025-03-14 03:00:30 -03:00
2023-10-29 19:51:59 -03:00