본문으로 건너뛰기

AgentCompaction

Per-agent context compaction policy.

enabled object

Whether conversation compaction is enabled for the agent.

하나 이상(anyOf)
boolean
trigger_ratio object

Fraction of the input-token budget that triggers compaction.

하나 이상(anyOf)
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.

하나 이상(anyOf)
number

Possible values: > 0 and < 1

summary_max_tokens object

Maximum number of tokens allowed in the generated compaction summary.

하나 이상(anyOf)
integer

Possible values: >= 128 and <= 8192

AgentCompaction
{
"enabled": true,
"trigger_ratio": 0,
"target_ratio": 0,
"summary_max_tokens": 0
}