xybrid_flutter library
Xybrid Flutter SDK for hybrid cloud-edge ML inference.
This is the main entry point for the xybrid_flutter package.
See xybrid.dart for detailed API documentation.
Classes
- ConversationContext
- Manages multi-turn conversation history for LLM models.
- GenerationConfig
- Generation parameters for LLM inference.
- LoadComplete
- Model loading completed successfully.
- LoadError
- Model loading failed with an error.
- LoadEvent
- Event emitted during model loading with progress tracking.
- LoadProgress
- Download progress update (0.0 to 1.0).
- StreamToken
- A single token emitted during streaming generation.
- Xybrid
- Main entry point for the Xybrid SDK.
- XybridEnvelope
- Envelope containing input data for model inference.
- XybridModel
- A loaded model ready for inference.
- XybridModelLoader
- Prepares a model for loading from registry or local bundle.
- XybridPipeline
- A loaded pipeline ready for multi-stage inference.
- XybridResult
- Result of a model inference operation.
Enums
- MessageRole
- Message role for conversation turns.
Functions
-
wrapInWavHeader(
Uint8List pcmBytes, {required int sampleRate, required int channels}) → Uint8List - Wraps raw PCM audio bytes in a WAV header for playback.
Exceptions / Errors
- XybridException
- Exception thrown when Xybrid operations fail.