Message constructor

const Message({
  1. required String id,
  2. required String object,
  3. required int createdAt,
  4. required String threadId,
  5. MessageStatus? status,
  6. IncompleteDetails? incompleteDetails,
  7. int? completedAt,
  8. int? incompleteAt,
  9. required String role,
  10. required List<MessageContent> content,
  11. String? assistantId,
  12. String? runId,
  13. required List<MessageAttachment> attachments,
  14. 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,
});