discontinuedPackage flutter_gemma has been discontinued and replaced by flutter_edge_ai.

InferenceModelSession class abstract

Session managing response generation from the model.

Implementers

Constructors

InferenceModelSession()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

addQueryChunk(Message message) → Future<void>
close() → Future<void>
getResponse() → Future<String>
getResponseAsync() → Stream<String>
getSessionMetrics() → SessionMetrics
Get session metrics including token usage and performance stats.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sizeInTokens(String text) → Future<int>
stopGeneration() → Future<void>
toString() → String
A string representation of this object.
inherited

Operators

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