flutter_gemma_interface library

Classes

EmbeddingModel
Represents an embedding model instance.
FlutterGemmaPlugin
Interface for the FlutterGemma plugin.
InferenceModel
Represents an LLM model instance.
InferenceModelSession
Session managing response generation from the model.

Enums

TaskType
Task type for embedding generation, following Google RAG SDK convention.

Mixins

RawSdkResponseSession
Mixin for sessions that surface the SDK's structured raw JSON response (LiteRT-LM Gemma 4 path with tool_calls). Allows InferenceChat to read the structured tool calls without a hard dependency on a concrete session type, and lets non-FFI sessions opt out by simply not implementing this mixin.

Constants

supportedLoraRanks → const List<int>