|
|
@@ -9945,6 +9945,10 @@
|
|
|
},
|
|
|
"overflow": {
|
|
|
"type": "boolean"
|
|
|
+ },
|
|
|
+ "tail_start_id": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^msg.*"
|
|
|
}
|
|
|
},
|
|
|
"required": ["id", "sessionID", "messageID", "type", "auto"]
|
|
|
@@ -11868,6 +11872,18 @@
|
|
|
"description": "Enable pruning of old tool outputs (default: true)",
|
|
|
"type": "boolean"
|
|
|
},
|
|
|
+ "tail_turns": {
|
|
|
+ "description": "Number of recent user turns, including their following assistant/tool responses, to keep verbatim during compaction (default: 2)",
|
|
|
+ "type": "integer",
|
|
|
+ "minimum": 0,
|
|
|
+ "maximum": 9007199254740991
|
|
|
+ },
|
|
|
+ "tail_tokens": {
|
|
|
+ "description": "Token budget for retained recent turn spans during compaction",
|
|
|
+ "type": "integer",
|
|
|
+ "minimum": 0,
|
|
|
+ "maximum": 9007199254740991
|
|
|
+ },
|
|
|
"reserved": {
|
|
|
"description": "Token buffer for compaction. Leaves enough window to avoid overflow during compaction.",
|
|
|
"type": "integer",
|