MethodChannelMnnllm class

An implementation of MnnllmPlatform that uses method channels.

Inheritance

Constructors

MethodChannelMnnllm()

Properties

eventChannel EventChannel
final
hashCode int
The hash code for this object.
no setterinherited
methodChannel MethodChannel
The method channel used to interact with the native platform.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

destroyLLM() Future<int?>
override
download(String modelId) Future<String?>
override
finalAnswer() Future<String?>
override
generateAnswer(String input, {bool stream = false}) Future<void>
override
getConfig() Future<String?>
override
getDownloaderProvider() Future<String?>
override
getTokens() Future<String?>
override
initModel(String modelId, String modelName, String modelDir, String sessionId, bool keepHistory) Future<int?>
override
isGenerateFinished() Future<int?>
override
modelInitState() Future<int?>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onListenGeneration(dynamic onData, dynamic onError) → void
override
performance() Future<String?>
override
resetLLM() Future<int?>
override
setConfig(String config) Future<int?>
override
setDownloadProvider(String repo) Future<int?>
override
setMaxTokens(int maxTokens) Future<int?>
override
setSystemPrompt(String systemPrompt) Future<int?>
override
setThinking(String modelName, bool think) Future<int?>
override
stopGenerate() Future<int?>
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited