ContextStep

org.llm4s.context.ContextStep
See theContextStep companion object
@Stable
final case class ContextStep

Represents a single step in the context management pipeline

Attributes

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

Members list

Value members

Concrete methods

def compressionRatio: Double
def summary: String
def tokensSaved: Int
def withApplied(applied: Boolean): ContextStep

Sets whether the step changed the conversation.

Sets whether the step changed the conversation.

Attributes

Sets the conversation after the step.

Sets the conversation after the step.

Attributes

def withName(name: String): ContextStep

Sets the step name.

Sets the step name.

Attributes

def withTokensAfter(tokensAfter: Int): ContextStep

Sets the token count after the step.

Sets the token count after the step.

Attributes

def withTokensBefore(tokensBefore: Int): ContextStep

Sets the token count before the step.

Sets the token count before the step.

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product