flutter_native_ai library
Classes
- OnDeviceAi
- Entry point for checking local AI status and creating sessions.
- OnDeviceAiGenerationConfig
- Generation options forwarded to the native on-device model.
- OnDeviceAiGenerationResult
- Complete response from a non-streaming local AI request.
- OnDeviceAiSession
- A reusable native local AI model session.
- OnDeviceAiStatus
- Current host support and model readiness for on-device local AI generation.
- OnDeviceAiStreamChunk
- Incremental text update from a streaming local AI request.
Enums
- OnDeviceAiInitializationPolicy
- Policy for model initialization before readiness-sensitive operations.
Exceptions / Errors
- OnDeviceAiException
- Base class for all flutter_native_ai exceptions.
- OnDeviceAiGenerationFailedException
- Text generation failed in the native bridge.
- OnDeviceAiSessionDisposedException
- The OnDeviceAiSession has already been disposed.
- OnDeviceAiSessionNotFoundException
- The referenced session was not found in the native session store.
- On-device AI is supported but not currently available or ready.
- OnDeviceAiUnsupportedException
- The current platform or OS does not support on-device AI.