FlutterGemmaConversation class final

Conversation wrapper used by FlutterGemmaInferenceBackend.

Implemented types

Constructors

FlutterGemmaConversation(InferenceChat _chat)

Properties

hashCode → int
The hash code for this object.
no setterinherited
history → List<OmnixMessage>
A provider-neutral snapshot of the currently replayable history.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → Future<void>
Releases the native session owned by this conversation.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
replaceHistory(List<OmnixMessage> messages) → Future<void>
Replaces native session history with messages.
override
send(String prompt, {Uint8List? imageBytes, Uint8List? audioBytes}) → Stream<OmnixConversationEvent>
Adds a user turn and streams the model response.
override
stop() → Future<void>
Requests cancellation of the active generation.
override
toString() → String
A string representation of this object.
inherited

Operators

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