Skip to content

Conversation

@copybara-service
Copy link

feat: Add event compaction framework in Java ADK

This change introduces the bases for event compaction to the ADK. It includes:

  • Adding an EventCompaction field to EventActions.
  • Defining BaseEventSummarizer and EventCompactor interfaces.
  • Implementing LlmEventSummarizer for LLM-based summarization.
  • Implementing SlidingWindowEventCompactor to manage compaction based on a sliding window configuration.
  • Adding tests for the new compaction logic.

This change introduces the bases for event compaction to the ADK. It includes:
- Adding an EventCompaction field to EventActions.
- Defining BaseEventSummarizer and EventCompactor interfaces.
- Implementing LlmEventSummarizer for LLM-based summarization.
- Implementing SlidingWindowEventCompactor to manage compaction based on a sliding window configuration.
- Adding tests for the new compaction logic.

PiperOrigin-RevId: 850228866
@copybara-service copybara-service bot merged commit dd68c85 into main Dec 30, 2025
@copybara-service copybara-service bot deleted the test_850208436 branch December 30, 2025 03:32
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