google / google/adk-python

Configure context compression per session

Đang mở
#4,132 3 bình luận 0 reaction 1 người được giao Được @klateefa nhận Xem trên GitHub
core needs review
Ngôn ngữ chính
Python
Star
21.5k
Fork
4k
Merge trung bình
1 ngày 22 giờ
Pull request đã merge (30 ngày)
31

Mô tả

**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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.