Skip to content

Conversation

@copybara-service
Copy link

feat: Add event compaction framework in Java ADK (part 1)

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: 850147930
@copybara-service copybara-service bot closed this Dec 30, 2025
@copybara-service copybara-service bot deleted the test_850147930 branch December 30, 2025 02:59
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