class Llama::KvCacheViewCell

Overview

Wrapper for the llama_kv_cache_view_cell structure Represents a single cell in the KV cache

Defined in:

llama/kv_cache_view.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(cell : LibLlama::LlamaKvCacheViewCell) #

Creates a new KvCacheViewCell instance

Parameters:

  • cell: The raw llama_kv_cache_view_cell structure

[View source]

Instance Method Detail

def inspect(io : IO) : Nil #

Returns a detailed string representation of the cell

Returns:

  • A detailed string representation of the cell

[View source]
def pos : Int32 #

Returns the position for this cell

Returns:

  • The position for this cell

[View source]
def to_s(io : IO) : Nil #

Returns a string representation of the cell

Returns:

  • A string representation of the cell

[View source]