Package-level declarations
Types
Options of one LlamaEngine.generate call.
The outcome of LlamaEngine.generateText.
KV-cache and batching configuration of a LlamaEngine, fixed at construction time.
llama.cpp text-generation engine: streaming generation, KV-cache sessions, grammar / JSON-schema constrained decoding and embeddings.
LLM-specific construction options of a LlamaEngine.
A GBNF grammar constraining generation (llama.cpp llama_sampler_init_grammar).
An image attached to a multimodal prompt (LlamaEngine.generate with images). Images live in memory only: the bytes are handed to libmtmd zero-copy (pinned for the duration of tokenization, never copied by Kotlin, never written to a temporary file) and must not be modified until the generate collection has started evaluating.
Version information of the native llama library.
Pooling of token embeddings into a sequence embedding (llama_pooling_type).
Functions
Loads a GGUF model with llama.cpp and returns a ready LlamaEngine.