Expand description
Content-type-aware compression pipeline.
The top-level compress function selects the right strategy based on
ContentType and enforces an optional token budget.
Use compress_with and CompressOptions to enable advanced modes
such as AST-based body stubbing (ast: true) or semantic near-duplicate
deduplication (smart: true).
Structs§
- Compress
Options - Options controlling the compression pipeline.
Functions§
- compress
- Compress
inputusing the strategy appropriate forcontent_type. - compress_
with - Compress
inputwith full control over compression options.