LlamaLibraryMessage class
Represents a single message in a chat conversation
Constructors
- LlamaLibraryMessage({required LlamaLibraryRole role, required String content})
-
General Library Documentation Undocument By General Corporation & Global Corporation & General Developer
const
-
LlamaLibraryMessage.fromJson(Map<
String, dynamic> json) -
Creates a Message from JSON
factory
Properties
- content → String
-
General Library Documentation Undocument By General Corporation & Global Corporation & General Developer
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- role → LlamaLibraryRole
-
General Library Documentation Undocument By General Corporation & Global Corporation & General Developer
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts Message to JSON
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited