Replies: 3 comments 1 reply
|
+1 |
0 replies
|
Hi We just added token based compaction and intra invocation compaction! |
1 reply
|
Hoping this issue is resolved, marking it as closed. Please feel free reach out for any further issue. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Problem Statement
While using the current invocation-based compaction in Google ADK, I've encountered two significant pain points:
Context Length Overflow Before Reaching Invocation Threshold
The context length can exceed the model's limit before the invocation count reaches the compaction threshold. Since compaction only triggers after a fixed number of invocations, there's no protection against context overflow when individual invocations contain large amounts of content.
Unnecessary Compaction Triggers
Compaction is triggered even when the actual token count is relatively small, simply because the invocation count reached the threshold.
Summary
Suggestion
All reactions