LiteMessage class
A simplified message model used in lite generation.
Constructors
-
LiteMessage({required String id, required String from, required List<
LiteGenPart> parts, required String sessionId}) -
LiteMessage.fromJson(Map<
String, dynamic> json) -
Creates a LiteMessage from a JSON map.
factory
Properties
- from → String
-
The originator of the message. Typically "user" or "assistant".
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Unique identifier for the message.
final
-
parts
→ List<
LiteGenPart> -
The content components of the message.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sessionId → String
-
The session identifier this message belongs to.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts the message to a JSON-compatible map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited