UserLlamaMessage class

A class representing a chat message from a user.

This class extends the LlamaMessage class and overrides the role getter to return 'user', indicating that the message is from a user.

Example usage:

var message = UserLlamaMessage('Hello, world!');
print(message.role); // Output: user
print(message.content); // Output: Hello, world!

The UserLlamaMessage constructor takes the content of the message as a parameter.

Inheritance

Constructors

UserLlamaMessage.new(String content)
A class representing a user chat message.

Properties

content String
The content of the chat message.
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
role String
The role of the chat message sender.
no setteroverride
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
toMap() Map<String, String>
Converts the current LlamaMessage instance to a map.
inherited
toString() String
A string representation of this object.
inherited

Operators

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