Attributes
- Companion
- trait
- Graph
-
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
PruningStrategy.type
Members list
Type members
Classlikes
Custom pruning function. Receives all messages and returns the subset to keep. The function should be pure (no side effects) and deterministic.
Custom pruning function. Receives all messages and returns the subset to keep. The function should be pure (no side effects) and deterministic.
Value parameters
- fn
-
Function that takes messages and returns pruned messages
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait PruningStrategyclass Objecttrait Matchableclass AnyShow all
Remove messages from the middle, keeping start and end. Useful for preserving both initial context and recent exchanges.
Remove messages from the middle, keeping start and end. Useful for preserving both initial context and recent exchanges.
Attributes
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait PruningStrategyclass Objecttrait Matchableclass AnyShow all
- Self type
-
MiddleOut.type
Remove oldest messages first (FIFO). Preserves system message (if configured) and most recent messages.
Remove oldest messages first (FIFO). Preserves system message (if configured) and most recent messages.
Attributes
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait PruningStrategyclass Objecttrait Matchableclass AnyShow all
- Self type
-
OldestFirst.type
Keep only the most recent N complete turns (user+assistant pairs). Drops everything older than the specified number of turns.
Keep only the most recent N complete turns (user+assistant pairs). Drops everything older than the specified number of turns.
Value parameters
- turns
-
Number of recent turns to keep
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait PruningStrategyclass Objecttrait Matchableclass AnyShow all
Inherited and Abstract types
The names of the product elements
The names of the product elements
Attributes
- Inherited from:
- Mirror
The name of the type
The name of the type
Attributes
- Inherited from:
- Mirror