Files
crewAI/tests/utilities
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
..
2024-12-10 11:18:45 -05:00
2025-05-16 15:18:11 -04:00
2024-05-02 05:00:29 -03:00