Skip to content

VertexaiSession service does not support EventCompaction yet #3465

Closed

Description

@maheshwaritanay

** Please make sure you read the contribution guide and file the issues in the right place. **
Contribution guide.

Is your feature request related to a problem? Please describe.
We want to use EventCompaction feature to optimize the token and latency of our invocations. However, while using vertexai session service I observed that compaction property of compacted events are not getting populated. This leads to compaction of all the events on every call and the compaction functionality isn't working. This also leads to wasted LLM calls for compaction. I see that its currently marked as TODO in the code -

# TODO: add requested_tool_confirmations, compaction, agent_state once

Describe the solution you'd like
Event compaction working with vertexai session service

Describe alternatives you've considered
None so far

Additional context
adk-python version 1.18

Activity

  1. added
    services
    on Nov 10, 2025
  2. added theissue type on Nov 10, 2025
  3. hangfei commented on Nov 14, 2025

    @hangfei
    Collaborator

    @DeanChensj to help take a look.

  4. klateefa commented on Nov 26, 2025

    @klateefa

    @maheshwaritanay Thank you for reporting this. I understand the request is currently under review. Please keep me posted if anything else is needed. Thanks for your patience.

  5. added
    needs review
    on Nov 26, 2025
  6. maheshwaritanay commented on Jan 20, 2026

    @maheshwaritanay
    Author

    @klateefa , is there any update on supporting this?

  7. bgautham-dev commented on Feb 13, 2026

    @bgautham-dev

    @klateefa any update on this issue

  8. alexplaka commented on Mar 2, 2026

    @alexplaka

    Also waiting on this. From what I remember, event compaction works with InMemorySessionService and DatabaseSessionService, so would expect it to work with VertexAiSessionService as well.

  9. added a commit that references this issue on Mar 3, 2026
    2e434ca
  10. added a commit that references this issue on Aug 11, 2026
    c64f3b4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

needs reviewservices

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions