PupauMessage constructor
PupauMessage({
- required String id,
- required String answer,
- required String assistantId,
- required AssistantType assistantType,
- String groupId = '',
- String query = '',
- required DateTime createdAt,
- required MessageStatus status,
- MessageType? type,
- bool isInitialMessage = false,
- List<
KbReference> kbReferences = const [], - ContextInfo? contextInfo,
- List<
UrlInfo> urls = const [], - List<
OrganicInfo> organicInfo = const [], - List<
WebSearchImage> images = const [], - List<
WebSearchNews> news = const [], - GraphInfo? graphInfo,
- Reaction? reaction,
- SourceType sourceType = SourceType.llm,
- AttachmentTrimmingInfo? attachmentTrimming,
- AttachmentTrimmingInfo? emergencyTrimming,
- ToolUseAgent? toolUseAgent,
- ToolUseMessage? toolUseMessage,
- UiToolMessage? uiToolMessage,
- bool webBased = false,
- bool isExternalSearch = false,
- bool isCancelled = false,
- bool isNarrating = false,
- String? error,
- int? code,
- String? forbidden,
- String? websearchQuery,
- WebSearchType? webSearchType,
- String? toolName,
- ToolUseType? toolUseType,
- bool? isLast,
- bool? showTool,
- String? toolMessage,
- String? title,
- List<
Attachment> attachments = const [], - bool isAudioInput = false,
- 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,
});