class
Llama::KvCacheViewCell
- Llama::KvCacheViewCell
- Reference
- Object
Overview
Wrapper for the llama_kv_cache_view_cell structure Represents a single cell in the KV cache
Defined in:
llama/kv_cache_view.crConstructors
-
.new(cell : LibLlama::LlamaKvCacheViewCell)
Creates a new KvCacheViewCell instance
Instance Method Summary
-
#inspect(io : IO) : Nil
Returns a detailed string representation of the cell
-
#pos : Int32
Returns the position for this cell
-
#to_s(io : IO) : Nil
Returns a string representation of the cell
Constructor Detail
def self.new(cell : LibLlama::LlamaKvCacheViewCell)
#
Creates a new KvCacheViewCell instance
Parameters:
- cell: The raw llama_kv_cache_view_cell structure
Instance Method Detail
def inspect(io : IO) : Nil
#
Returns a detailed string representation of the cell
Returns:
- A detailed string representation of the cell
def to_s(io : IO) : Nil
#
Returns a string representation of the cell
Returns:
- A string representation of the cell