08 Compress#
Script: example/08_compress.py.
flow.Compressor runs run_session_compress(...) to replace a long transcript with a smaller summary session.
python example/08_compress.py
Step |
Behavior |
|---|---|
Build history |
Run an agent turn to create assistant chunks. |
Count rows |
Inspect |
Compress |
Call |
Continue |
Use the compressed session as the next user-side context. |
Compression disables tools and expects the model to return text only.