SystemChatMessage class

A class representing a system-generated chat message.

This class extends the ChatMessage class and overrides the role property to return 'system', indicating that the message is generated by the system.

Example usage:

var systemMessage = SystemChatMessage('System maintenance scheduled.');
print(systemMessage.role); // Outputs: system
print(systemMessage.content); // Outputs: System maintenance scheduled.

The SystemChatMessage constructor takes a single parameter, content, which represents the content of the chat message.

Inheritance

Constructors

SystemChatMessage.new(String content)
Represents a system-generated 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 ChatMessage instance to a map.
inherited
toString() String
A string representation of this object.
inherited

Operators

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