FlutterGemmaPlugin class abstract
- Inheritance
-
- Object
- PlatformInterface
- FlutterGemmaPlugin
- Implementers
Constructors
- FlutterGemmaPlugin()
- Constructs a FlutterGemmaPlatform.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
isInitialized
→ Future<
bool> -
no setter
-
isLoaded
→ Future<
bool> -
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getChatResponse(
{required Iterable< Message> messages, int chatContextLength = 4}) → Future<String?> -
getChatResponseAsync(
{required Iterable< Message> messages, int chatContextLength = 4}) → Stream<String?> -
getResponse(
{required String prompt}) → Future< String?> -
getResponseAsync(
{required String prompt}) → Stream< String?> -
init(
{int maxTokens = 1024, double temperature = 1.0, int randomSeed = 1, int topK = 1, int? numOfSupportedLoraRanks, List< int> ? supportedLoraRanks, String? loraPath}) → Future<void> -
loadAssetModel(
{required String fullPath}) → Future< void> -
loadAssetModelWithProgress(
{required String fullPath}) → Stream< int> -
loadNetworkModel(
{required String url}) → Future< void> -
loadNetworkModelWithProgress(
{required String url}) → Stream< int> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ FlutterGemmaPlugin
-
The default instance of FlutterGemmaPlugin to use.
getter/setter pair