Integration overview
Integration patterns
- Python
- OpenAI
- LangChain
- curl / HTTP
The core Track the sustainability impact of each compression call with the built-in metrics helper:
compress_for_turn() function accepts a list of context blocks (strings) and a user query, then returns compressed text and a stats object. This is the lowest-level entry point and works in any Python environment — backend services, Jupyter notebooks, or batch scripts.Policy selection quick reference
Use thepolicy argument to override the default SuperCompress learned policy with an explicit baseline, or omit it to let the library choose the best available option.