Compression Strategies
FIFO (First In, First Out)
Removes oldest messages. Simple and fast (under 10ms).Priority-Based
Removes lowest priority messages. Ideal for complex conversations (under 30ms).Semantic Retention
Removes redundant content using embeddings. Best for long-form content (under 50ms).Token Limits
Manual Compression
Best Practices
Compression is non-destructive when archiving is enabled. Removed messages can be retrieved from the archive.