class Llama::SessionSnapshot

Overview

Portable canonical transcript state for Session.

Native KV bytes are deliberately excluded: Session currently rebuilds the checked native state from this text, making snapshots portable across processes while still rejecting a different model or llama.cpp release.

Included Modules

Defined in:

llama/session_snapshot.cr

Constant Summary

FORMAT_VERSION = 1
MAX_SERIALIZED_BYTES = (64 * 1024) * 1024

Constructors

Instance Method Summary

Constructor Detail

def self.new(transcript : String, model_fingerprint : String, llama_cpp_version : String = Llama.llama_cpp_version, wrapper_version : String = Llama::VERSION, format_version : Int32 = FORMAT_VERSION) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[View source]

Instance Method Detail

def format_version : Int32 #

[View source]
def llama_cpp_version : String #

[View source]
def model_fingerprint : String #

[View source]
def transcript : String #

[View source]
def wrapper_version : String #

[View source]