ChatMessageData
Defined in: src/components/editor/ChatPanel/ChatPanel.types.ts:95
A single message in the chat conversation.
This is a data type — the component library does not manage
message creation or persistence. The consumer provides messages
as props or via the useChatMessages UI state hook.
Properties
Section titled “Properties”attachments?
Section titled “attachments?”
optionalattachments?:ChatAttachmentData[]
Defined in: src/components/editor/ChatPanel/ChatPanel.types.ts:107
Attached files or editor context
avatar?
Section titled “avatar?”
optionalavatar?:string
Defined in: src/components/editor/ChatPanel/ChatPanel.types.ts:111
Avatar URL or initials fallback
content
Section titled “content”content:
string
Defined in: src/components/editor/ChatPanel/ChatPanel.types.ts:101
Text content (may contain markdown)
displayName?
Section titled “displayName?”
optionaldisplayName?:string
Defined in: src/components/editor/ChatPanel/ChatPanel.types.ts:113
Display name
id:
string
Defined in: src/components/editor/ChatPanel/ChatPanel.types.ts:97
Unique message identifier
role:
ChatMessageRole
Defined in: src/components/editor/ChatPanel/ChatPanel.types.ts:99
Who sent the message
status
Section titled “status”status:
ChatMessageStatus
Defined in: src/components/editor/ChatPanel/ChatPanel.types.ts:103
Visual/delivery status
timestamp
Section titled “timestamp”timestamp:
string
Defined in: src/components/editor/ChatPanel/ChatPanel.types.ts:105
ISO 8601 timestamp
toolCalls?
Section titled “toolCalls?”
optionaltoolCalls?:ChatToolCallData[]
Defined in: src/components/editor/ChatPanel/ChatPanel.types.ts:109
Tool invocations within this message (assistant role only)