AgentCompaction
Per-agent context compaction policy.
enabled object
Whether conversation compaction is enabled for the agent.
- boolean
- null
boolean
trigger_ratio object
Fraction of the input-token budget that triggers compaction.
- number
- null
number
Possible values: > 0 and < 1
target_ratio object
Fraction of the input-token budget targeted after compaction. It must be lower than trigger_ratio.
- number
- null
number
Possible values: > 0 and < 1
summary_max_tokens object
Maximum number of tokens allowed in the generated compaction summary.
- integer
- null
integer
Possible values: >= 128 and <= 8192
AgentCompaction
{
"enabled": true,
"trigger_ratio": 0,
"target_ratio": 0,
"summary_max_tokens": 0
}