PupauMessage constructor

PupauMessage({
  1. required String id,
  2. required String answer,
  3. required String assistantId,
  4. required AssistantType assistantType,
  5. String groupId = '',
  6. String query = '',
  7. required DateTime createdAt,
  8. required MessageStatus status,
  9. MessageType? type,
  10. bool isInitialMessage = false,
  11. List<KbReference> kbReferences = const [],
  12. ContextInfo? contextInfo,
  13. List<UrlInfo> urls = const [],
  14. List<OrganicInfo> organicInfo = const [],
  15. List<WebSearchImage> images = const [],
  16. List<WebSearchNews> news = const [],
  17. GraphInfo? graphInfo,
  18. List<String> relatedSearches = const [],
  19. Reaction? reaction,
  20. SourceType sourceType = SourceType.llm,
  21. AttachmentTrimmingInfo? attachmentTrimming,
  22. AttachmentTrimmingInfo? emergencyTrimming,
  23. ToolUseAgent? toolUseAgent,
  24. ToolUseMessage? toolUseMessage,
  25. UiToolMessage? uiToolMessage,
  26. bool webBased = false,
  27. bool isExternalSearch = false,
  28. bool isCancelled = false,
  29. bool isNarrating = false,
  30. String? error,
  31. int? code,
  32. String? forbidden,
  33. String? websearchQuery,
  34. WebSearchType? webSearchType,
  35. String? toolName,
  36. ToolUseType? toolUseType,
  37. bool? isLast,
  38. bool? showTool,
  39. String? toolMessage,
  40. String? title,
  41. List<Attachment> attachments = const [],
  42. bool isAudioInput = false,
  43. String? transcription,
})

Implementation

PupauMessage({
  required this.id,
  required this.answer,
  required this.assistantId,
  required this.assistantType,
  this.groupId = '',
  this.query = '',
  required this.createdAt,
  required this.status,
  this.type,
  this.isInitialMessage = false,
  this.kbReferences = const [],
  this.contextInfo,
  this.urls = const [],
  this.organicInfo = const [],
  this.images = const [],
  this.news = const [],
  this.graphInfo,
  this.relatedSearches = const [],
  this.reaction,
  this.sourceType = SourceType.llm,
  this.attachmentTrimming,
  this.emergencyTrimming,
  this.toolUseAgent,
  this.toolUseMessage,
  this.uiToolMessage,
  this.webBased = false,
  this.isExternalSearch = false,
  this.isCancelled = false,
  this.isNarrating = false,
  this.error,
  this.code,
  this.forbidden,
  this.websearchQuery,
  this.webSearchType,
  this.toolName,
  this.toolUseType,
  this.isLast,
  this.showTool,
  this.toolMessage,
  this.title,
  this.attachments = const [],
  this.isAudioInput = false,
  this.transcription,
});