ConversationHandle class abstract

Per-conversation operations a session needs from the FFI layer.

LiteRtLmConversationHandle is the real implementation backed by a native LiteRtLmConversation*. Tests inject a fake implementing this interface so FfiInferenceModelSession orchestration (query buffering, raw-response capture, Gemma 4 tool-call extraction) can be exercised on the host VM with no native engine.

Implementers

Constructors

ConversationHandle()

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

cancelGeneration() → void
chat(String text, {List<Uint8List>? imageBytes, Uint8List? audioBytes, bool enableThinking}) Stream<String>
chatRaw(String text, {List<Uint8List>? imageBytes, Uint8List? audioBytes, bool enableThinking}) Stream<String>
close() → void
getSessionMetrics() SessionMetrics
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