org.llm4s.context.CompressionRule
See theCompressionRule companion object
Represents a named compression rule that transforms a sequence of messages.
Rules are applied sequentially by DeterministicCompressor until the token budget is met. Each rule is designed to be:
- '''Idempotent''': Applying twice produces the same result
- '''Safe''': Never removes critical semantic information
- '''Measurable''': Token reduction can be calculated
Value parameters
- apply
-
The transformation function
- name
-
Identifier for logging and debugging
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article