discontinuedPackage vit_gpt_dart_api has been discontinued.

Message class

Constructors

Message({String? id, required DateTime date, required String text, required Role role, List<int>? audio, Usage? usage, String? itemId, String? previousItemId})
Message.assistant({required String message, Usage? usage, List<int>? audio, DateTime? date, String? itemId, String? previousItemId})
factory
Message.fromMap(Map<String, dynamic> map)
factory
Message.user({required String message, DateTime? date})
factory

Properties

audio → List<int>?
final
date ↔ DateTime
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
id ↔ String?
getter/setter pair
itemId ↔ String?
getter/setter pair
previousItemId ↔ String?
getter/setter pair
role → Role
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
text ↔ String
getter/setter pair
toGptMap → Map<String, dynamic>
no setter
usage → Usage?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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