google / google/adk-python

Configure context compression per session

オープン
#4,132 コメント 3 件 リアクション 0 件 担当者 1 名 @klateefa が担当を希望しています GitHub で見る
core needs review
主要言語
Python
スター
21.5k
フォーク
4k
平均マージ
1日 14時間
マージ済み PR(30日)
37

説明

**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 を短くまとめたダイジェスト。