Message constructor
const
Message({
- required String id,
- required String object,
- required int createdAt,
- required String threadId,
- MessageStatus? status,
- IncompleteDetails? incompleteDetails,
- int? completedAt,
- int? incompleteAt,
- required String role,
- required List<
MessageContent> content, - String? assistantId,
- String? runId,
- required List<
MessageAttachment> attachments, - required Map<
String, String> metadata,
Creates a Message.
Implementation
const Message({
required this.id,
required this.object,
required this.createdAt,
required this.threadId,
this.status,
this.incompleteDetails,
this.completedAt,
this.incompleteAt,
required this.role,
required this.content,
this.assistantId,
this.runId,
required this.attachments,
required this.metadata,
});