API
Message

Message

DMessage

An object containing message data.


id
required
Unique identifier for the message.
Type: string | number


content
required
Text content of the message.
Type: MessageUserContent | MessageAssistantContent


role
required
Owner of the message (e.g., user or assistant).
Type: 'assistant' | 'user'


info
Additional information about the message.
Type: string


parentId
Identifier of the parent message (if this message is a reply).
Type: string | number


time
Timestamp of the message.
Type: number

MessageUserContent

An object containing content data for messages with role: 'user'.

Type: string | (Attachment | TextContent)[]


MessageAssistantContent

An object containing content data for messages with role: 'assistant'.

Type: string | TextContent[]


TextContent

type
required
Content type.
Type: 'text'


text
required
Message text.
Type: string


Attachment

id
required
Unique identifier for the attachment.
Type: string | number


type
required
Attachment type
Type: 'file' | 'video' | 'image'


file
Attached file.
Type: File


url
Link to load a file in case of type: 'file' or source for type: 'video' | 'image'
Type: string