RecentTurnsOnly

org.llm4s.agent.PruningStrategy.RecentTurnsOnly
case class RecentTurnsOnly(turns: Int) extends PruningStrategy

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

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product