Expand description
ACON failure-driven compression guidelines updater.
Runs as a background task. Periodically checks whether the number of unused
compression failure pairs exceeds a threshold; if so, calls the LLM to update
the compression guidelines document stored in SQLite.
Structs§
- Compression
Guidelines Config - Configuration for ACON failure-driven compression guidelines.
Functions§
- build_
guidelines_ update_ prompt - Build the LLM prompt for a guidelines update cycle.
- sanitize_
guidelines - Sanitize LLM-generated guidelines before injecting into prompts.
- start_
guidelines_ updater - Start the background guidelines updater loop.
- truncate_
to_ token_ budget - Truncate
textso it contains at mostmax_tokenstokens. - update_
guidelines_ once - Run a single guidelines update cycle.