loom_ffi library

Classes

LlmPollEvent
Parsed LoomLib.llmPollToken JSON ({"s":…}).
LlmPollStatus
Status codes from LoomLib.llmPollToken (s field).
LoomLib
Singleton wrapper around the loom_cabi shared library.

Properties

loomAvailable bool
Returns true if the loom native library can be loaded.
no setter
loomLib LoomLib
The global LoomLib instance. Loaded lazily on first access. Throws if the native library cannot be found.
no setter
loomLibLastError String?
Text from the most recent failed FFI init; null after a successful loomLib load.
no setter

Functions

loomParseFloatArray(String json) List<double>?
Decode a JSON array result from loom (e.g. sequential forward output).
loomParseResult(String json) Map<String, dynamic>?
Decode a JSON result from loom. Returns null if it contains an "error" key.