I was implementing a bot with the ADK framework and managing sessions with DatabaseSessionService. However, the apparently EventCompactionConfig compacts the sessions as dict type, not a Content type, which the data type adk expects.
The first message of a session works (event compaction does not run the first time), but the second message triggers the event compaction, leading to the following error: AttributeError: ‘dict’ object has no attribute ‘start_timestamp’