AgentCompaction
Per-agent context compaction policy.
enabledEnabled (boolean)
Whether conversation compaction is enabled for the agent.
기본값:
truetrigger_ratioTrigger Ratio (number)
Fraction of the input-token budget that triggers compaction.
Possible values: > 0 and < 1
기본값:
0.8target_ratioTarget Ratio (number)
Fraction of the input-token budget targeted after compaction. It must be lower than trigger_ratio.
Possible values: > 0 and < 1
기본값:
0.5summary_max_tokensSummary Max Tokens (integer)
Maximum number of tokens allowed in the generated compaction summary. Minimum: 128. Maximum: 8192.
Possible values: >= 128 and <= 8192
기본값:
1024AgentCompaction
{
"enabled": true,
"trigger_ratio": 0.8,
"target_ratio": 0.5,
"summary_max_tokens": 1024
}