Add background prefix compaction prewarm

This commit is contained in:
Rohit Arunachalam
2026-04-09 18:43:38 -07:00
parent ff1ab61e4f
commit ebf13cda36
51 changed files with 1900 additions and 32 deletions

View File

@@ -832,6 +832,16 @@
"ContextCompactedNotification": {
"description": "Deprecated: Use `ContextCompaction` item type instead.",
"properties": {
"kind": {
"anyOf": [
{
"$ref": "#/definitions/ContextCompactionKind"
},
{
"type": "null"
}
]
},
"threadId": {
"type": "string"
},
@@ -845,6 +855,13 @@
],
"type": "object"
},
"ContextCompactionKind": {
"enum": [
"classic",
"prefix"
],
"type": "string"
},
"CreditsSnapshot": {
"properties": {
"balance": {
@@ -3181,6 +3198,16 @@
"id": {
"type": "string"
},
"kind": {
"anyOf": [
{
"$ref": "#/definitions/ContextCompactionKind"
},
{
"type": "null"
}
]
},
"type": {
"enum": [
"contextCompaction"

View File

@@ -7004,6 +7004,16 @@
"$schema": "http://json-schema.org/draft-07/schema#",
"description": "Deprecated: Use `ContextCompaction` item type instead.",
"properties": {
"kind": {
"anyOf": [
{
"$ref": "#/definitions/v2/ContextCompactionKind"
},
{
"type": "null"
}
]
},
"threadId": {
"type": "string"
},
@@ -7018,6 +7028,13 @@
"title": "ContextCompactedNotification",
"type": "object"
},
"ContextCompactionKind": {
"enum": [
"classic",
"prefix"
],
"type": "string"
},
"CreditsSnapshot": {
"properties": {
"balance": {
@@ -13363,6 +13380,16 @@
"id": {
"type": "string"
},
"kind": {
"anyOf": [
{
"$ref": "#/definitions/v2/ContextCompactionKind"
},
{
"type": "null"
}
]
},
"type": {
"enum": [
"contextCompaction"

View File

@@ -3652,6 +3652,16 @@
"$schema": "http://json-schema.org/draft-07/schema#",
"description": "Deprecated: Use `ContextCompaction` item type instead.",
"properties": {
"kind": {
"anyOf": [
{
"$ref": "#/definitions/ContextCompactionKind"
},
{
"type": "null"
}
]
},
"threadId": {
"type": "string"
},
@@ -3666,6 +3676,13 @@
"title": "ContextCompactedNotification",
"type": "object"
},
"ContextCompactionKind": {
"enum": [
"classic",
"prefix"
],
"type": "string"
},
"CreditsSnapshot": {
"properties": {
"balance": {
@@ -11218,6 +11235,16 @@
"id": {
"type": "string"
},
"kind": {
"anyOf": [
{
"$ref": "#/definitions/ContextCompactionKind"
},
{
"type": "null"
}
]
},
"type": {
"enum": [
"contextCompaction"

View File

@@ -1,7 +1,26 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"ContextCompactionKind": {
"enum": [
"classic",
"prefix"
],
"type": "string"
}
},
"description": "Deprecated: Use `ContextCompaction` item type instead.",
"properties": {
"kind": {
"anyOf": [
{
"$ref": "#/definitions/ContextCompactionKind"
},
{
"type": "null"
}
]
},
"threadId": {
"type": "string"
},

View File

@@ -195,6 +195,13 @@
],
"type": "string"
},
"ContextCompactionKind": {
"enum": [
"classic",
"prefix"
],
"type": "string"
},
"DynamicToolCallOutputContentItem": {
"oneOf": [
{
@@ -1106,6 +1113,16 @@
"id": {
"type": "string"
},
"kind": {
"anyOf": [
{
"$ref": "#/definitions/ContextCompactionKind"
},
{
"type": "null"
}
]
},
"type": {
"enum": [
"contextCompaction"

View File

@@ -195,6 +195,13 @@
],
"type": "string"
},
"ContextCompactionKind": {
"enum": [
"classic",
"prefix"
],
"type": "string"
},
"DynamicToolCallOutputContentItem": {
"oneOf": [
{
@@ -1106,6 +1113,16 @@
"id": {
"type": "string"
},
"kind": {
"anyOf": [
{
"$ref": "#/definitions/ContextCompactionKind"
},
{
"type": "null"
}
]
},
"type": {
"enum": [
"contextCompaction"

View File

@@ -331,6 +331,13 @@
],
"type": "string"
},
"ContextCompactionKind": {
"enum": [
"classic",
"prefix"
],
"type": "string"
},
"DynamicToolCallOutputContentItem": {
"oneOf": [
{
@@ -1249,6 +1256,16 @@
"id": {
"type": "string"
},
"kind": {
"anyOf": [
{
"$ref": "#/definitions/ContextCompactionKind"
},
{
"type": "null"
}
]
},
"type": {
"enum": [
"contextCompaction"

View File

@@ -396,6 +396,13 @@
],
"type": "string"
},
"ContextCompactionKind": {
"enum": [
"classic",
"prefix"
],
"type": "string"
},
"DynamicToolCallOutputContentItem": {
"oneOf": [
{
@@ -1763,6 +1770,16 @@
"id": {
"type": "string"
},
"kind": {
"anyOf": [
{
"$ref": "#/definitions/ContextCompactionKind"
},
{
"type": "null"
}
]
},
"type": {
"enum": [
"contextCompaction"

View File

@@ -334,6 +334,13 @@
],
"type": "string"
},
"ContextCompactionKind": {
"enum": [
"classic",
"prefix"
],
"type": "string"
},
"DynamicToolCallOutputContentItem": {
"oneOf": [
{
@@ -1521,6 +1528,16 @@
"id": {
"type": "string"
},
"kind": {
"anyOf": [
{
"$ref": "#/definitions/ContextCompactionKind"
},
{
"type": "null"
}
]
},
"type": {
"enum": [
"contextCompaction"

View File

@@ -334,6 +334,13 @@
],
"type": "string"
},
"ContextCompactionKind": {
"enum": [
"classic",
"prefix"
],
"type": "string"
},
"DynamicToolCallOutputContentItem": {
"oneOf": [
{
@@ -1521,6 +1528,16 @@
"id": {
"type": "string"
},
"kind": {
"anyOf": [
{
"$ref": "#/definitions/ContextCompactionKind"
},
{
"type": "null"
}
]
},
"type": {
"enum": [
"contextCompaction"

View File

@@ -334,6 +334,13 @@
],
"type": "string"
},
"ContextCompactionKind": {
"enum": [
"classic",
"prefix"
],
"type": "string"
},
"DynamicToolCallOutputContentItem": {
"oneOf": [
{
@@ -1521,6 +1528,16 @@
"id": {
"type": "string"
},
"kind": {
"anyOf": [
{
"$ref": "#/definitions/ContextCompactionKind"
},
{
"type": "null"
}
]
},
"type": {
"enum": [
"contextCompaction"

View File

@@ -396,6 +396,13 @@
],
"type": "string"
},
"ContextCompactionKind": {
"enum": [
"classic",
"prefix"
],
"type": "string"
},
"DynamicToolCallOutputContentItem": {
"oneOf": [
{
@@ -1763,6 +1770,16 @@
"id": {
"type": "string"
},
"kind": {
"anyOf": [
{
"$ref": "#/definitions/ContextCompactionKind"
},
{
"type": "null"
}
]
},
"type": {
"enum": [
"contextCompaction"

View File

@@ -334,6 +334,13 @@
],
"type": "string"
},
"ContextCompactionKind": {
"enum": [
"classic",
"prefix"
],
"type": "string"
},
"DynamicToolCallOutputContentItem": {
"oneOf": [
{
@@ -1521,6 +1528,16 @@
"id": {
"type": "string"
},
"kind": {
"anyOf": [
{
"$ref": "#/definitions/ContextCompactionKind"
},
{
"type": "null"
}
]
},
"type": {
"enum": [
"contextCompaction"

View File

@@ -396,6 +396,13 @@
],
"type": "string"
},
"ContextCompactionKind": {
"enum": [
"classic",
"prefix"
],
"type": "string"
},
"DynamicToolCallOutputContentItem": {
"oneOf": [
{
@@ -1763,6 +1770,16 @@
"id": {
"type": "string"
},
"kind": {
"anyOf": [
{
"$ref": "#/definitions/ContextCompactionKind"
},
{
"type": "null"
}
]
},
"type": {
"enum": [
"contextCompaction"

View File

@@ -334,6 +334,13 @@
],
"type": "string"
},
"ContextCompactionKind": {
"enum": [
"classic",
"prefix"
],
"type": "string"
},
"DynamicToolCallOutputContentItem": {
"oneOf": [
{
@@ -1521,6 +1528,16 @@
"id": {
"type": "string"
},
"kind": {
"anyOf": [
{
"$ref": "#/definitions/ContextCompactionKind"
},
{
"type": "null"
}
]
},
"type": {
"enum": [
"contextCompaction"

View File

@@ -334,6 +334,13 @@
],
"type": "string"
},
"ContextCompactionKind": {
"enum": [
"classic",
"prefix"
],
"type": "string"
},
"DynamicToolCallOutputContentItem": {
"oneOf": [
{
@@ -1521,6 +1528,16 @@
"id": {
"type": "string"
},
"kind": {
"anyOf": [
{
"$ref": "#/definitions/ContextCompactionKind"
},
{
"type": "null"
}
]
},
"type": {
"enum": [
"contextCompaction"

View File

@@ -331,6 +331,13 @@
],
"type": "string"
},
"ContextCompactionKind": {
"enum": [
"classic",
"prefix"
],
"type": "string"
},
"DynamicToolCallOutputContentItem": {
"oneOf": [
{
@@ -1249,6 +1256,16 @@
"id": {
"type": "string"
},
"kind": {
"anyOf": [
{
"$ref": "#/definitions/ContextCompactionKind"
},
{
"type": "null"
}
]
},
"type": {
"enum": [
"contextCompaction"

View File

@@ -331,6 +331,13 @@
],
"type": "string"
},
"ContextCompactionKind": {
"enum": [
"classic",
"prefix"
],
"type": "string"
},
"DynamicToolCallOutputContentItem": {
"oneOf": [
{
@@ -1249,6 +1256,16 @@
"id": {
"type": "string"
},
"kind": {
"anyOf": [
{
"$ref": "#/definitions/ContextCompactionKind"
},
{
"type": "null"
}
]
},
"type": {
"enum": [
"contextCompaction"

View File

@@ -331,6 +331,13 @@
],
"type": "string"
},
"ContextCompactionKind": {
"enum": [
"classic",
"prefix"
],
"type": "string"
},
"DynamicToolCallOutputContentItem": {
"oneOf": [
{
@@ -1249,6 +1256,16 @@
"id": {
"type": "string"
},
"kind": {
"anyOf": [
{
"$ref": "#/definitions/ContextCompactionKind"
},
{
"type": "null"
}
]
},
"type": {
"enum": [
"contextCompaction"