fix(compaction): budget retained tail with media

This commit is contained in:
Shoubhit Dash
2026-04-16 17:30:29 +05:30
parent 2e18a603f0
commit 42771c1db3
4 changed files with 84 additions and 30 deletions
+4 -2
View File
@@ -1009,13 +1009,15 @@ export const Info = z
.int()
.min(0)
.optional()
.describe("Number of recent real user turns to keep verbatim during compaction (default: 2)"),
.describe(
"Number of recent user turns, including their following assistant/tool responses, to keep verbatim during compaction (default: 2)",
),
tail_tokens: z
.number()
.int()
.min(0)
.optional()
.describe("Token budget for retained recent turns during compaction"),
.describe("Token budget for retained recent turn spans during compaction"),
reserved: z
.number()
.int()