ChatMessage

A single finalized chat message composed of one or more content blocks.

Declared in src/libs/libwidgets/widgets/chat/ChatMessageModel.hpp
Group libwidgets

Detailed description

ChatMessage is a value type. It carries the sender's role, a timestamp, an ordered list of content blocks, each with its own MIME type, and a map of optional metadata, such as the sender name and bubble colors that ChatBubbleDelegate reads.

Messages are added to ChatMessageModel once they are fully formed; streaming tokens are handled separately by ChatStreamWidget.

See also ChatMessageModel.

In this section