bindings library
Low-level entrypoint: the raw ffigen bindings to the LiteRT-LM C API.
NO stability guarantees — these mirror native/litert_lm/include/engine.h
and change whenever the native header does. Use package:litertlm_dart/ litertlm_dart.dart for the stable, typed runtime API. This entrypoint
exists for consumers that need direct C-API access the typed layer doesn't
expose.
Classes
- LiteRtLmBenchmarkInfo
- LiteRtLmBindings
- FFI bindings for LiteRT-LM C API
- LiteRtLmConversation
- LiteRtLmConversationConfig
- LiteRtLmConversationOptionalArgs
- LiteRtLmDetokenizeResult
- LiteRtLmEngine
- LiteRtLmEngineSettings
- LiteRtLmInputData
- LiteRtLmJsonResponse
- LiteRtLmResponses
- LiteRtLmSamplerParams
- LiteRtLmSession
- LiteRtLmSessionConfig
- LiteRtLmTokenizeResult
- LiteRtLmTokenUnion
- LiteRtLmTokenUnions
Typedefs
-
DartLiteRtLmStreamCallbackFunction
= void Function(Pointer<
Void> callback_data, Pointer<Char> chunk, bool is_final, Pointer<Char> error_msg) -
LiteRtLmStreamCallback
= Pointer<
NativeFunction< LiteRtLmStreamCallbackFunction> > -
LiteRtLmStreamCallbackFunction
= Void Function(Pointer<
Void> callback_data, Pointer<Char> chunk, Bool is_final, Pointer<Char> error_msg)