Copybara import of the project:

--
709e1dd079d03d7eb4d742b9448ed3d1b946ff30 by joao.campista <joaocampista@proton.me>:

feat: add ordering to recent events in database session service
COPYBARA_INTEGRATE_REVIEW=https://github.com/google/adk-python/pull/454 from lugui-co:main 912503f972c9cbd8982f2b7f8b210d4e0fe08b69
PiperOrigin-RevId: 753013663
This commit is contained in:
João Campista 2025-04-29 22:13:04 -07:00 committed by Copybara-Service
parent 27ce65ff50
commit acbbdb7266

View File

@ -386,6 +386,7 @@ class DatabaseSessionService(BaseSessionService):
else True
)
.limit(config.num_recent_events if config else None)
.order_by(StorageEvent.timestamp.asc())
.all()
)