A stateful local conversation owned by an inference backend.
- Implementers
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
history
→ List<
OmnixMessage> -
A provider-neutral snapshot of the currently replayable history.
no setter
- 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.
-
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. -
send(
String prompt, {Uint8List? imageBytes, Uint8List? audioBytes}) → Stream< OmnixConversationEvent> - Adds a user turn and streams the model response.
-
stop(
) → Future< void> - Requests cancellation of the active generation.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited