compress_context
Compress text using n-gram abbreviation and generate a legend, reducing token count for efficient context loading while retaining meaning.
Instructions
Compress text using n-gram abbreviation with a legend for token-efficient context loading. Unlike format_with_salience_budget (which allocates token budget), this does text-level compression.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to compress | |
| level | No | Compression level (default: medium) |