runtime library
Public entry point for package:syni's Dart FFI runtime.
Re-exports the runtime surface so consumers can import 'package:syni/runtime.dart'
without reaching into src/. Today the only intended consumer is
package:synheart_core's SyniModule; app developers should not import
this directly.
Classes
- SyniRuntime
-
Async, isolate-backed wrapper around
libsyni_ffi. - SyniRuntimeFFI
- SyniRuntimeRequest
- A single inference request.
- SyniRuntimeResponse
- Schema-validated response from the runtime.
- SyniRuntimeStreamChunk
- One chunk in a streaming inference response.
- SyniRuntimeStreamDelta
- An incremental token (or token batch) emitted during generation.
- SyniRuntimeStreamFinal
- Final accumulated JSON response, emitted exactly once when generation completes. Always the last element of the stream before close.
Enums
- SyniPreset
-
Performance preset (mirrors
syni_preset_tinc_api.h).
Typedefs
-
SyniEngineNative
= Pointer<
Void> -
Opaque engine handle. Matches
struct syni_engine_tinc_api.h.
Exceptions / Errors
- SyniRuntimeError
- Thrown when the runtime, model, or inference call fails.