# ConversationMessage (@salmonui/chat/conversation)

> The ConversationMessage interface of @salmonui/chat/conversation.

Canonical: https://salmonui.dev/docs/reference/chat/conversation/ConversationMessage

```ts
import type { ConversationMessage } from '@salmonui/chat/conversation';
```

Entry index: https://salmonui.dev/docs/reference/chat/conversation (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/chat/conversation.md).

## Reference

Kind: interface

```ts
interface ConversationMessage {
    readonly id: string;
    readonly author: string;
    readonly text: string;
    readonly createdAt?: Date | string | number;
    readonly status?: ConversationMessageStatus;
    readonly replyTo?: string;
    readonly replyPreview?: ConversationReplyPreview;
    readonly pinned?: boolean;
    readonly forwarded?: boolean;
    readonly mentions?: readonly string[];
    readonly attachments?: readonly ConversationAttachment[];
    readonly parts?: readonly ConversationResponsePart[];
    readonly alternatives?: readonly string[];
    readonly feedback?: 'positive' | 'negative';
}
```

Members (14):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `id` | `readonly id: string;` |  | Stable id: the list key and the store key. |
| `author` | `readonly author: string;` |  | User id of the author. |
| `text` | `readonly text: string;` |  |  |
| `createdAt` | `readonly createdAt?: Date \| string \| number;` | optional |  |
| `status` | `readonly status?: ConversationMessageStatus;` | optional |  |
| `replyTo` | `readonly replyTo?: string;` | optional | Id of the message this one replies to. |
| `replyPreview` | `readonly replyPreview?: ConversationReplyPreview;` | optional | Preview of the reply target when it is not in `messages`. |
| `pinned` | `readonly pinned?: boolean;` | optional |  |
| `forwarded` | `readonly forwarded?: boolean;` | optional |  |
| `mentions` | `readonly mentions?: readonly string[];` | optional | User ids mentioned in `text` (rendered as mention tokens). |
| `attachments` | `readonly attachments?: readonly ConversationAttachment[];` | optional |  |
| `parts` | `readonly parts?: readonly ConversationResponsePart[];` | optional | Assistant responses: reasoning and tool parts, in arrival order. |
| `alternatives` | `readonly alternatives?: readonly string[];` | optional | Assistant responses: earlier responses to the same prompt, oldest first; `text` is the latest. |
| `feedback` | `readonly feedback?: 'positive' \| 'negative';` | optional | Assistant responses: the user's rating. |
