Share via


ChatHistoryMessage interface

Represents a single message in the chat history.

Properties

content

The content of the chat message.

id

The unique identifier for the chat message.

role

The role of the message sender (e.g., "user", "assistant", "system").

timestamp

The timestamp of when the message was sent.

Property Details

content

The content of the chat message.

content: string

Property Value

string

id

The unique identifier for the chat message.

id: string

Property Value

string

role

The role of the message sender (e.g., "user", "assistant", "system").

role: string

Property Value

string

timestamp

The timestamp of when the message was sent.

timestamp: Date

Property Value

Date