Skip to content

Conversation

@copybara-service
Copy link

feat: Integrate event compaction in Java ADK runner

This change integrates the event compaction mechanism into the ADK Runner. The Contents class is updated to filter out events that fall within the timestamp range of a compaction event, replacing them with the compacted summary. The Runner now uses a SlidingWindowEventCompactor to periodically summarize events based on the provided EventsCompactionConfig. Tests are added to verify the compaction logic in both Contents and Runner.

@copybara-service copybara-service bot force-pushed the test_851559226 branch 2 times, most recently from 6e1076b to 9e0b229 Compare January 9, 2026 20:40
This change integrates the event compaction mechanism into the ADK Runner. The Contents class is updated to filter out events that fall within the timestamp range of a compaction event, replacing them with the compacted summary. The Runner now uses a SlidingWindowEventCompactor to periodically summarize events based on the provided EventsCompactionConfig. Tests are added to verify the compaction logic in both Contents and Runner.

PiperOrigin-RevId: 854310265
@copybara-service copybara-service bot merged commit 54c826c into main Jan 9, 2026
@copybara-service copybara-service bot deleted the test_851559226 branch January 9, 2026 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant