ModelAiMessage class

Minimal conversational message for AI interactions.

Inheritance

Constructors

ModelAiMessage({required ModelAiMessageRoleEnum role, required String content})
const
ModelAiMessage.fromJson(Map<String, dynamic> json)
factory

Properties

content String
final
hashCode int
Gets the hash code for this entity model.
no setteroverride
role ModelAiMessageRoleEnum
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({ModelAiMessageRoleEnum? role, String? content}) ModelAiMessage
Creates a copy of the entity model.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts the entity model to a JSON Map.
override
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
Checks whether the given other object is equal to this entity model.
override