CompressionRule

org.llm4s.context.CompressionRule
See theCompressionRule companion class

Built-in compression rules for common scenarios.

==Available Rules==

  • '''removeRedundantPhrases''': Removes "as I mentioned before", "like I said"
  • '''compressRepetitiveContent''': Deduplicates repeated sentences with "×N" markers
  • '''truncateVerboseResponses''': Summarizes very long assistant responses
  • '''removeFillerWords''': Cleans "um", "well", "you know" from transcripts
  • '''consolidateExamples''': Merges multiple example messages
  • '''compressToolOutputs''': Compresses large tool outputs (see ToolOutputCompressor)

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

Concrete fields

Removes phrases like "as I mentioned before", "like I said", etc.

Removes phrases like "as I mentioned before", "like I said", etc.

Attributes