plugins/hooks/context_compressor/cfg

Context compression configuration.

Values

pub fn enabled() -> Bool

Whether context compression is enabled.

pub fn load(toml: dict.Dict(String, tom.Toml)) -> Nil
pub fn protect_head() -> Int

Number of messages to protect at the head (system prompt + early context).

pub fn protect_tail() -> Int

Number of messages to protect at the tail (recent conversation).

pub fn summary_max_tokens() -> Int

Maximum tokens for the generated summary.

pub fn trigger_percent() -> Int

Context window fill percent that triggers preemptive compression.

Search Document