struct

Crig::Memory::TemplateCompactor

Inherits Crig::Memory::Compactor < Struct < Value < Object

Constructors

new(header : String = "[Conversation summary so far]", max_bytes : Int32 | Nil = nil)
Source

Instance methods

compact(conversation_id : String, evicted : Array(Crig::Completion::Message), carry_over : Crig::Completion::Message | Nil) : Crig::Completion::Message
Source
header
Source
max_bytes
Source
with_header(header : String) : self
Source
with_max_bytes(max_bytes : Int32) : self
Source