본문으로 건너뛰기

AgentCompaction

Per-agent context compaction policy.

enabledEnabled (boolean)

Whether conversation compaction is enabled for the agent.

기본값: true
trigger_ratioTrigger Ratio (number)

Fraction of the input-token budget that triggers compaction.

Possible values: > 0 and < 1

기본값: 0.8
target_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.5
summary_max_tokensSummary Max Tokens (integer)

Maximum number of tokens allowed in the generated compaction summary. Minimum: 128. Maximum: 8192.

Possible values: >= 128 and <= 8192

기본값: 1024
AgentCompaction
{
"enabled": true,
"trigger_ratio": 0.8,
"target_ratio": 0.5,
"summary_max_tokens": 1024
}