import 'llm_service.dart'; /// Stub for the real `flutter_gemma` integration. /// /// Wired up only after OQ-1 (exact model URL + SHA + flutter_gemma API /// surface) is confirmed in Developer phase. Today this throws /// `UnimplementedError` from every method — the rest of the system /// (suggestFrame, ModelLifecycle, Riverpod providers) is built against the /// `LlmService` abstract above and runs end-to-end with `MockLlmService`. /// /// When the package is added, replace the bodies with calls into /// FlutterGemma.init / generateWithFunctionCalling per the package docs. /// Existing tests + UI hooks remain unchanged. class GemmaLlmService implements LlmService { final String modelPath; GemmaLlmService({required this.modelPath}); bool _loaded = false; @override bool get isLoaded => _loaded; @override Future load() async { throw UnimplementedError( 'GemmaLlmService.load: pending OQ-1 (model URL + flutter_gemma).', ); } @override Future unload() async { _loaded = false; } @override Future> generateStructured( String prompt, Map schema, ) async { throw UnimplementedError( 'GemmaLlmService.generateStructured: pending OQ-1.', ); } }