google / google/adk-python

Configure context compression per session

未关闭
#4,132 3 条评论 0 个 reaction 已指派 1 人 已被 @klateefa 认领 在 GitHub 查看
core needs review
主要语言
Python
星标
21.5k
派生
4k
平均合并
1 天 22 小时
30 天内合并 PR
31

描述

**Is your feature request related to a problem? Please describe.**

Currently, context compression is defined on an `App` level. So every session on that app will share the same compression config (including on/off).

I want to control whether compression is turned on/off on a per session bases, based on the user/other metadata.

**Describe the solution you'd like**

Maybe have a lifecycle callback on the `App` layer to configure these options. Something `before_session_start`.

**Describe alternatives you've considered**

Create my own compaction events, using `after_agent` callback.

**Additional context**

I am deploying using Vertex AI AgentEngine, so want to be aligned with the possibilities there.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。