Package-level declarations
Types
MemoryPressureObserver driven by Android's ComponentCallbacks2.onTrimMemory / onLowMemory.
Runtime compute configuration passed to every engine at construction time.
The requested compute backend cannot be used on this device or build.
The compute backend an engine executes on.
Native inference was aborted through its abort callback.
Common contract of every Kggml engine (WhisperEngine, LlamaEngine, DiffusionEngine, …).
Base class of every error surfaced by Kggml engines.
Marks Kggml plumbing shared between Kggml modules. Not part of the public API: it may change or disappear in any release.
The input (audio, prompt, image, grammar, …) was rejected as malformed or out of range.
A MemoryPressureObserver whose signals are pushed with emit.
Severity of an OS memory-pressure signal.
Receives memory-pressure signals from a MemoryPressureObserver.
Source of OS low-memory signals (Android ComponentCallbacks2.onTrimMemory, iOS UIApplicationDidReceiveMemoryWarningNotification, …). Engines and the model manager subscribe to it to evict KV caches, model weights, and download buffers.
The model file is missing, unreadable, corrupt, or incompatible with the engine.
Structured error codes returned by Kggml's extern "C" native entry points.
An unexpected native failure (including C++ exceptions caught at the FFI boundary).
Native code failed to allocate memory (model weights, KV cache, compute buffers, …).
Why text generation stopped. Cancellation is reported through coroutine cancellation, not here.
Events emitted by a streaming text-generation engine (e.g. Flow<TokenEvent>).
Events emitted by a streaming speech-to-text engine (e.g. Flow<TranscriptionEvent>).