Refactor genai package to new modular interface

Reorganized the genai package by removing legacy LLM-related files and introducing a new modular interface under the 'interface' directory. Added provider-specific model classes, centralized constants, and updated the example to use the new API and data structures. Updated exports in genai.dart and improved dependency management.
This commit is contained in:
Ankit Mahato
2025-08-27 02:08:36 +05:30
parent 36f58ba26a
commit 72fea1ba65
54 changed files with 2470 additions and 1736 deletions

View File

@@ -0,0 +1,18 @@
import 'package:better_networking/better_networking.dart';
import '../models/models.dart';
abstract class ModelProvider {
ModelRequestData get defaultRequestData => throw UnimplementedError();
HttpRequestModel? createRequest(ModelRequestData? requestData) {
throw UnimplementedError();
}
String? outputFormatter(Map x) {
throw UnimplementedError();
}
String? streamOutputFormatter(Map x) {
throw UnimplementedError();
}
}