PupauMessage class

Constructors

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, List<String> relatedSearches = const [], Reaction? reaction, SourceType sourceType = SourceType.llm, 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? isBrowserTool, bool? isLast, bool? showTool, String? toolMessage, String? title, List<Attachment> attachments = const []})
PupauMessage.fromLoadedChat(Map<String, dynamic> json)
factory
PupauMessage.fromSseStream(Map<String, dynamic> json)
factory

Properties

answer String
getter/setter pair
assistantId String
getter/setter pair
assistantType AssistantType
getter/setter pair
attachments List<Attachment>
getter/setter pair
code int?
getter/setter pair
contextInfo ContextInfo?
getter/setter pair
createdAt DateTime
getter/setter pair
error String?
getter/setter pair
forbidden String?
getter/setter pair
graphInfo GraphInfo?
getter/setter pair
groupId String
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String
getter/setter pair
images List<WebSearchImage>
getter/setter pair
isBrowserTool bool?
getter/setter pair
isCancelled bool
getter/setter pair
isExternalSearch bool
getter/setter pair
isInitialMessage bool
getter/setter pair
isLast bool?
getter/setter pair
isMessageFromAssistant bool
no setter
isNarrating bool
getter/setter pair
kbReferences List<KbReference>
getter/setter pair
news List<WebSearchNews>
getter/setter pair
organicInfo List<OrganicInfo>
getter/setter pair
query String
getter/setter pair
reaction Reaction?
getter/setter pair
relatedSearches List<String>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showTool bool?
getter/setter pair
sourceType SourceType
getter/setter pair
status MessageStatus
getter/setter pair
title String?
getter/setter pair
toolMessage String?
getter/setter pair
toolName String?
getter/setter pair
toolUseAgent ToolUseAgent?
getter/setter pair
toolUseMessage ToolUseMessage?
getter/setter pair
toolUseType ToolUseType?
getter/setter pair
type MessageType?
getter/setter pair
uiToolMessage UiToolMessage?
getter/setter pair
urls List<UrlInfo>
getter/setter pair
webBased bool
getter/setter pair
websearchQuery String?
getter/setter pair
webSearchType WebSearchType?
getter/setter pair

Methods

mergeWith(PupauMessage messageFromSse) → void
Merges the current SSE message with a new SSE message. This method updates the current message with data from the new message, concatenating the message text and updating other fields as needed.
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