HistoryDigest

org.llm4s.context.HistoryDigest
See theHistoryDigest companion object
@Stable
final case class HistoryDigest

Compressed digest representation of a history block.

Contains the formatted summary text and metadata about the original block.

Value parameters

blockId

Original semantic block ID

blockType

Type of the block (UserAssistantPair, StandaloneTool, etc.)

content

Formatted digest text for inclusion in conversation

originalTokens

Estimated token count of original content

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 withBlockId(blockId: String): HistoryDigest

Sets the original semantic block ID.

Sets the original semantic block ID.

Attributes

def withBlockType(blockType: String): HistoryDigest

Sets the type of the original block.

Sets the type of the original block.

Attributes

def withContent(content: String): HistoryDigest

Sets the formatted digest text.

Sets the formatted digest text.

Attributes

def withOriginalTokens(originalTokens: Int): HistoryDigest

Sets the estimated token count of the original content.

Sets the estimated token count of the original content.

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product