Automatic-compaction behavior for a conversation.
Properties
clipChars
integer
Optional
Maximum characters kept in the conversation window before compaction.
minimum: 0mode
string
Optional
Compact the whole history, or only the oldest fraction beyond the sliding window.
all, sliding_windowmodel
string
Optional
Optional model override for the summarization call.
maxLength: 256 bytesmodelSettings
unknown
Optional
Free-form settings for the summarization model.
prompt
string
Optional
Custom summarization prompt. Null/absent uses the default.
maxLength: 100000 bytesslidingWindowPercentage
number
Optional
Fraction of the context window retained after a sliding-window compaction.
minimum: 0maximum: 1View raw schema
{
"type": "object",
"properties": {
"mode": {
"type": "string",
"description": "Compact the whole history, or only the oldest fraction beyond the sliding window.",
"knownValues": [
"all",
"sliding_window"
]
},
"model": {
"type": "string",
"maxLength": 256,
"description": "Optional model override for the summarization call."
},
"prompt": {
"type": "string",
"maxLength": 100000,
"description": "Custom summarization prompt. Null/absent uses the default."
},
"clipChars": {
"type": "integer",
"minimum": 0,
"description": "Maximum characters kept in the conversation window before compaction."
},
"modelSettings": {
"type": "unknown",
"description": "Free-form settings for the summarization model."
},
"slidingWindowPercentage": {
"type": "number",
"maximum": 1,
"minimum": 0,
"description": "Fraction of the context window retained after a sliding-window compaction."
}
},
"description": "Automatic-compaction behavior for a conversation."
}