Skip to content

Commit 29f05cb

Browse files
chore: generate
1 parent 48acab4 commit 29f05cb

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

packages/sdk/js/src/v2/gen/types.gen.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -885,6 +885,7 @@ export type CompactionPart = {
885885
type: "compaction"
886886
auto: boolean
887887
overflow?: boolean
888+
tail_start_id?: string
888889
}
889890

890891
export type Part =
@@ -1642,6 +1643,14 @@ export type Config = {
16421643
* Enable pruning of old tool outputs (default: true)
16431644
*/
16441645
prune?: boolean
1646+
/**
1647+
* Number of recent user turns, including their following assistant/tool responses, to keep verbatim during compaction (default: 2)
1648+
*/
1649+
tail_turns?: number
1650+
/**
1651+
* Token budget for retained recent turn spans during compaction
1652+
*/
1653+
tail_tokens?: number
16451654
/**
16461655
* Token buffer for compaction. Leaves enough window to avoid overflow during compaction.
16471656
*/

packages/sdk/openapi.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9945,6 +9945,10 @@
99459945
},
99469946
"overflow": {
99479947
"type": "boolean"
9948+
},
9949+
"tail_start_id": {
9950+
"type": "string",
9951+
"pattern": "^msg.*"
99489952
}
99499953
},
99509954
"required": ["id", "sessionID", "messageID", "type", "auto"]
@@ -11868,6 +11872,18 @@
1186811872
"description": "Enable pruning of old tool outputs (default: true)",
1186911873
"type": "boolean"
1187011874
},
11875+
"tail_turns": {
11876+
"description": "Number of recent user turns, including their following assistant/tool responses, to keep verbatim during compaction (default: 2)",
11877+
"type": "integer",
11878+
"minimum": 0,
11879+
"maximum": 9007199254740991
11880+
},
11881+
"tail_tokens": {
11882+
"description": "Token budget for retained recent turn spans during compaction",
11883+
"type": "integer",
11884+
"minimum": 0,
11885+
"maximum": 9007199254740991
11886+
},
1187111887
"reserved": {
1187211888
"description": "Token buffer for compaction. Leaves enough window to avoid overflow during compaction.",
1187311889
"type": "integer",

0 commit comments

Comments
 (0)