ConversationWindow

org.llm4s.context.ConversationWindow
See theConversationWindow companion object
@Stable
final case class ConversationWindow

Result of token window processing

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

Sets the conversation after trimming.

Sets the conversation after trimming.

Attributes

def withRemovedMessageCount(removedMessageCount: Int): ConversationWindow

Sets how many messages were removed.

Sets how many messages were removed.

Attributes

Sets the token usage of the trimmed conversation.

Sets the token usage of the trimmed conversation.

Attributes

def withWasTrimmed(wasTrimmed: Boolean): ConversationWindow

Sets whether any messages were removed.

Sets whether any messages were removed.

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product